@lovrabet/rabetbase-cli 2.4.5 → 2.4.6-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- 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/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/get.js +1 -1
- package/lib/commands/config/index.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/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/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-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/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/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.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/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/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/{standard-page-status.d.ts → create.d.ts} +1 -1
- package/lib/commands/page/create.js +1 -0
- package/lib/commands/page/{react → custom}/detail.d.ts +1 -1
- package/lib/commands/page/custom/detail.js +1 -0
- package/lib/commands/page/{react → custom}/list.d.ts +1 -1
- package/lib/commands/page/custom/list.js +1 -0
- package/lib/commands/page/{react → custom}/publish.d.ts +1 -1
- package/lib/commands/page/custom/publish.js +1 -0
- package/lib/commands/page/{react → custom}/shared.d.ts +15 -15
- package/lib/commands/page/custom/shared.js +1 -0
- package/lib/commands/page/{react → custom}/syntax.d.ts +2 -2
- package/lib/commands/page/custom/syntax.js +1 -0
- package/lib/commands/page/custom/template.js +1 -0
- package/lib/commands/page/{react → custom}/update.d.ts +1 -1
- package/lib/commands/page/custom/update.js +1 -0
- package/lib/commands/page/data-list-status.d.ts +2 -0
- package/lib/commands/page/data-list-status.js +1 -0
- 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.d.ts +18 -18
- 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/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/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/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/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +43 -43
- 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.d.ts +3 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.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/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.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/rules-cdn.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 +34 -34
- package/skills/rabetbase/guides/backend-function.md +63 -18
- package/skills/rabetbase/guides/bff-creation-workflow.md +2 -0
- package/skills/rabetbase/guides/{react-custom-page-workflow.md → custom-page-workflow.md} +45 -45
- package/skills/rabetbase/guides/page-development-workflow.md +22 -22
- package/skills/rabetbase/knowledge/{react-page → custom-page}/components.md +2 -2
- package/skills/rabetbase/knowledge/{react-page → custom-page}/generation-standards.md +6 -6
- package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +6 -6
- package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-create.md +2 -0
- package/skills/rabetbase/references/{rabetbase-standard-page-status.md → rabetbase-data-list-status.md} +6 -6
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +1 -1
- package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +1 -1
- package/skills/rabetbase/references/rabetbase-dataset-relations.md +1 -1
- package/skills/rabetbase/references/rabetbase-dataset-restore.md +1 -1
- package/skills/rabetbase/references/rabetbase-menu-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-create.md +31 -0
- package/skills/rabetbase/references/{rabetbase-page-react-detail.md → rabetbase-page-custom-detail.md} +5 -5
- package/skills/rabetbase/references/{rabetbase-page-react-list.md → rabetbase-page-custom-list.md} +4 -4
- package/skills/rabetbase/references/{rabetbase-page-react-publish.md → rabetbase-page-custom-publish.md} +6 -6
- package/skills/rabetbase/references/{rabetbase-page-react-update.md → rabetbase-page-custom-update.md} +6 -6
- package/skills/rabetbase/references/rabetbase-page-generate-start.md +5 -4
- package/skills/rabetbase/references/rabetbase-page-generate-status.md +4 -4
- package/skills/rabetbase/references/rabetbase-page-pull.md +2 -2
- package/skills/rabetbase/references/rabetbase-page-relation-binding.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-restore.md +7 -7
- package/skills/rabetbase/references/rabetbase-page-sync.md +3 -3
- package/skills/rabetbase.manifest.json +12 -12
- package/lib/commands/page/react/create.d.ts +0 -2
- package/lib/commands/page/react/create.js +0 -1
- package/lib/commands/page/react/detail.js +0 -1
- package/lib/commands/page/react/list.js +0 -1
- package/lib/commands/page/react/publish.js +0 -1
- package/lib/commands/page/react/shared.js +0 -1
- package/lib/commands/page/react/syntax.js +0 -1
- package/lib/commands/page/react/template.js +0 -1
- package/lib/commands/page/react/update.js +0 -1
- package/lib/commands/page/standard-page-status.js +0 -1
- package/skills/rabetbase/references/rabetbase-page-react-create.md +0 -29
- /package/lib/commands/page/{react → custom}/template.d.ts +0 -0
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a207_0x3ba76c=a207_0x772d;(function(_0x11fb30,_0x595379){const _0x12d4a8=a207_0x772d,_0x4f227f=_0x11fb30();while(!![]){try{const _0x39bed9=parseInt(_0x12d4a8(0x19e))/0x1+parseInt(_0x12d4a8(0x1c3))/0x2*(-parseInt(_0x12d4a8(0x20a))/0x3)+-parseInt(_0x12d4a8(0x1fc))/0x4+-parseInt(_0x12d4a8(0x1be))/0x5+-parseInt(_0x12d4a8(0x1cc))/0x6+parseInt(_0x12d4a8(0x1a6))/0x7*(parseInt(_0x12d4a8(0x1e6))/0x8)+-parseInt(_0x12d4a8(0x19f))/0x9*(-parseInt(_0x12d4a8(0x200))/0xa);if(_0x39bed9===_0x595379)break;else _0x4f227f['push'](_0x4f227f['shift']());}catch(_0x48c832){_0x4f227f['push'](_0x4f227f['shift']());}}}(a207_0x428a,0x5f1f2));export const CLI_BIN_NAME=a207_0x3ba76c(0x1b9);function a207_0x772d(_0x463470,_0x3ad230){_0x463470=_0x463470-0x19b;const _0x428a6b=a207_0x428a();let _0x772d8e=_0x428a6b[_0x463470];return _0x772d8e;}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a207_0x3ba76c(0x1c7);function a207_0x428a(){const _0x407b99=['expectPath','Override\x20appcode','sort','Clear','clear','confirm','Use\x20global\x20config\x20scope','enable-bff-save','db-id','JSON\x20params','fromEnv','Show\x20help','Description','Expected\x20current\x20child\x20count','force','help','Skip\x20confirmation\x20for\x20high-risk\x20writes','<name>','rabetbase','page','Environment','Confirm\x20destructive\x20action','name','1103210SKxTiy','Type\x20filter','format','stdin','function-node','78lTlXNT','Force\x20overwrite','reveal','Description\x20file','@lovrabet/rabetbase-cli','expect-parent-id','Dataset\x20code','Menu\x20label','SQL\x20name','2719482AMTvfp','Config\x20value','DB\x20ID','target','expectedCount','Title','dbId','keyword','non-interactive','nonInteractive','Enable\x20BFF\x20save','schemas','sqlname','app','enableBffSave','Config\x20key','expectedChildrenCount','Expected\x20current\x20parent\x20menu\x20id','string','Page\x20size','menu-ids','skipImports','from-env','Reveal\x20sensitive\x20value','Read\x20value\x20from\x20environment\x20variable','Tags','24GFoveU','expectParentId','dry-run','output','datasetcode','params','Parent\x20menu\x20id','Force\x20non-interactive\x20mode\x20(CI)','functionNode','Operation\x20type','yes','fromEntries','Skip\x20import\x20generation','Function\x20node','operationType','Read\x20value\x20from\x20stdin','sqlName','label','expected-children-count','project','value','operation-type','1751392YApPsI','watch','Output\x20format','env','930tNeXXk','pagesize','Name','json\x20|\x20pretty\x20|\x20compress','title','parentId','descriptionFile','SQL\x20code','type','sql-name','3681eNXfVG','map','boolean','global','Page\x20number','sql','verbose','remote','all','Use\x20remote','Watch\x20mode','Expected\x20affected\x20count','key','Menu\x20sort\x20value','385781rZIKGv','106218tGbaws','operation','appcode','<code>','tags','Keyword\x20filter','code','153629SGtvmu'];a207_0x428a=function(){return _0x407b99;};return a207_0x428a();}export const GLOBAL_FLAGS=[{'name':a207_0x3ba76c(0x1a1),'meowKey':'appcode','type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1a8),'hint':a207_0x3ba76c(0x1a2)},{'name':a207_0x3ba76c(0x1d9),'meowKey':a207_0x3ba76c(0x1d9),'type':a207_0x3ba76c(0x1de),'description':'Select\x20app\x20profile\x20by\x20name','hint':a207_0x3ba76c(0x1b8)},{'name':a207_0x3ba76c(0x1ff),'meowKey':a207_0x3ba76c(0x1ff),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1bb),'hint':'production\x20|\x20daily'},{'name':a207_0x3ba76c(0x1c0),'meowKey':a207_0x3ba76c(0x1c0),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1fe),'hint':a207_0x3ba76c(0x203)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':'<expr>'},{'name':a207_0x3ba76c(0x1e8),'meowKey':'dryRun','type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':a207_0x3ba76c(0x1f0),'meowKey':'yes','type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1b7)},{'name':a207_0x3ba76c(0x1d4),'meowKey':a207_0x3ba76c(0x1d5),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1ed)},{'name':a207_0x3ba76c(0x20d),'meowKey':a207_0x3ba76c(0x20d),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1ad)},{'name':a207_0x3ba76c(0x1f9),'meowKey':a207_0x3ba76c(0x1f9),'type':'boolean','description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a207_0x3ba76c(0x20c),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a207_0x3ba76c(0x1b6),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1b2)},{'name':a207_0x3ba76c(0x1bd),'meowKey':a207_0x3ba76c(0x1bd),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x202),'hidden':!![]},{'name':a207_0x3ba76c(0x204),'meowKey':'title','type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1d1),'hidden':!![]},{'name':a207_0x3ba76c(0x1ab),'meowKey':a207_0x3ba76c(0x1ab),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1aa),'hidden':!![]},{'name':a207_0x3ba76c(0x1fd),'meowKey':a207_0x3ba76c(0x1fd),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x214),'hidden':!![]},{'name':'output','meowKey':a207_0x3ba76c(0x1e9),'type':'string','description':'Output\x20path','hidden':!![]},{'name':a207_0x3ba76c(0x1eb),'meowKey':a207_0x3ba76c(0x1eb),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1b0),'hidden':!![]},{'name':a207_0x3ba76c(0x1ea),'meowKey':a207_0x3ba76c(0x1ea),'type':'string','description':a207_0x3ba76c(0x1c9),'hidden':!![]},{'name':a207_0x3ba76c(0x212),'meowKey':a207_0x3ba76c(0x212),'type':a207_0x3ba76c(0x20c),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a207_0x3ba76c(0x1ae),'meowKey':a207_0x3ba76c(0x1da),'type':'boolean','description':a207_0x3ba76c(0x1d6),'hidden':!![]},{'name':'id','meowKey':'id','type':a207_0x3ba76c(0x1de),'description':'Record\x20ID','hidden':!![]},{'name':a207_0x3ba76c(0x208),'meowKey':a207_0x3ba76c(0x208),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1bf),'hidden':!![]},{'name':'file','meowKey':'file','type':a207_0x3ba76c(0x1de),'description':'File\x20path','hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x207),'hidden':!![]},{'name':a207_0x3ba76c(0x209),'meowKey':a207_0x3ba76c(0x1f6),'type':'string','description':a207_0x3ba76c(0x1cb),'hidden':!![]},{'name':'sqlname','meowKey':a207_0x3ba76c(0x1d8),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1cb),'hidden':!![]},{'name':a207_0x3ba76c(0x1af),'meowKey':a207_0x3ba76c(0x1d2),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ce),'hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ce),'hidden':!![]},{'name':'description','meowKey':'description','type':'string','description':a207_0x3ba76c(0x1b3),'hidden':!![]},{'name':'description-file','meowKey':a207_0x3ba76c(0x206),'type':'string','description':a207_0x3ba76c(0x1c6),'hidden':!![]},{'name':a207_0x3ba76c(0x1ba),'meowKey':a207_0x3ba76c(0x1ba),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x20e),'hidden':!![]},{'name':a207_0x3ba76c(0x201),'meowKey':a207_0x3ba76c(0x201),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1df),'hidden':!![]},{'name':a207_0x3ba76c(0x1d3),'meowKey':a207_0x3ba76c(0x1d3),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1a4),'hidden':!![]},{'name':a207_0x3ba76c(0x1a5),'meowKey':a207_0x3ba76c(0x1a5),'type':a207_0x3ba76c(0x1de),'description':'Code\x20filter','hidden':!![]},{'name':a207_0x3ba76c(0x20f),'meowKey':a207_0x3ba76c(0x20f),'type':a207_0x3ba76c(0x1de),'description':'SQL\x20string','hidden':!![]},{'name':a207_0x3ba76c(0x1d7),'meowKey':'schemas','type':'string','description':'Schemas','hidden':!![]},{'name':a207_0x3ba76c(0x1a0),'meowKey':a207_0x3ba76c(0x1a0),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ef),'hidden':!![]},{'name':a207_0x3ba76c(0x1cf),'meowKey':a207_0x3ba76c(0x1cf),'type':'string','description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':a207_0x3ba76c(0x1e1),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1f2),'hidden':!![]},{'name':'key','meowKey':a207_0x3ba76c(0x19c),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1db),'hidden':!![]},{'name':'value','meowKey':a207_0x3ba76c(0x1fa),'type':'string','description':a207_0x3ba76c(0x1cd),'hidden':!![]},{'name':a207_0x3ba76c(0x1a3),'meowKey':a207_0x3ba76c(0x1a3),'type':'string','description':a207_0x3ba76c(0x1e5),'hidden':!![]},{'name':a207_0x3ba76c(0x1c1),'meowKey':'stdin','type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1f5),'hidden':!![]},{'name':a207_0x3ba76c(0x1e2),'meowKey':a207_0x3ba76c(0x1b1),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1e4),'hidden':!![]},{'name':'reveal','meowKey':a207_0x3ba76c(0x1c5),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1e3),'hidden':!![]},{'name':a207_0x3ba76c(0x1b5),'meowKey':a207_0x3ba76c(0x1b5),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1c4),'hidden':!![]},{'name':a207_0x3ba76c(0x1ac),'meowKey':'confirm','type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1bc),'hidden':!![]},{'name':a207_0x3ba76c(0x211),'meowKey':a207_0x3ba76c(0x211),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x213),'hidden':!![]},{'name':a207_0x3ba76c(0x210),'meowKey':a207_0x3ba76c(0x210),'type':a207_0x3ba76c(0x20c),'description':'Verbose\x20output','hidden':!![]},{'name':'expected-count','meowKey':a207_0x3ba76c(0x1d0),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x19b),'hidden':!![]},{'name':a207_0x3ba76c(0x1f7),'meowKey':a207_0x3ba76c(0x1f7),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ca),'hidden':!![]},{'name':'parent-id','meowKey':a207_0x3ba76c(0x205),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ec),'hidden':!![]},{'name':a207_0x3ba76c(0x1a9),'meowKey':a207_0x3ba76c(0x1a9),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x19d),'hidden':!![]},{'name':a207_0x3ba76c(0x1c8),'meowKey':a207_0x3ba76c(0x1e7),'type':'string','description':a207_0x3ba76c(0x1dd),'hidden':!![]},{'name':'expect-path','meowKey':a207_0x3ba76c(0x1a7),'type':'string','description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a207_0x3ba76c(0x1f8),'meowKey':a207_0x3ba76c(0x1dc),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1b4),'hidden':!![]},{'name':a207_0x3ba76c(0x1e0),'meowKey':'menuIds','type':a207_0x3ba76c(0x1de),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a207_0x3ba76c(0x1de),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a207_0x3ba76c(0x1fb),'meowKey':a207_0x3ba76c(0x1f4),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ef),'hidden':!![]},{'name':a207_0x3ba76c(0x1c2),'meowKey':a207_0x3ba76c(0x1ee),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1f3),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a207_0x3ba76c(0x1a1),'app',a207_0x3ba76c(0x1ff),a207_0x3ba76c(0x1c0),'jq',a207_0x3ba76c(0x1e8),'yes',a207_0x3ba76c(0x1d4),'ci']);export function buildMeowFlags(){const _0x296f55=a207_0x3ba76c;return Object[_0x296f55(0x1f1)](GLOBAL_FLAGS[_0x296f55(0x20b)](_0x4bb19d=>[_0x4bb19d['meowKey'],{'type':_0x4bb19d[_0x296f55(0x208)]}]));}
|
|
1
|
+
const a207_0x42256b=a207_0x88cc;function a207_0x88cc(_0x474345,_0x2448a3){_0x474345=_0x474345-0x167;const _0x2d1bce=a207_0x2d1b();let _0x88ccb0=_0x2d1bce[_0x474345];return _0x88ccb0;}function a207_0x2d1b(){const _0x4ece88=['SQL\x20code','description-file','SQL\x20name','output','app','<name>','Keyword\x20filter','Tags','Config\x20value','key','keyword','skip-imports','Expected\x20affected\x20count','operationType','SQL\x20string','dbId','parent-id','expect-parent-id','all','schemas','expected-children-count','Output\x20format','appcode','verbose','Preview\x20operation\x20without\x20executing','skipImports','descriptionFile','map','file','Description','6336520JPcIIa','format','global','Config\x20key','expect-path','3281340NqBHms','<expr>','task-id','function-node','Enable\x20BFF\x20save','sql','operation-type','fromEntries','Expected\x20current\x20menu\x20path','Schemas','Description\x20file','boolean','help','Verbose\x20output','9037070vcEdrB','expectedChildrenCount','Dataset\x20code','pagesize','label','db-id','fromEnv','850TlvYUh','dry-run','operation','remote','Show\x20help','name','tags','Name','1uLkfPz','page','Output\x20path','Function\x20node','type','functionNode','Operation\x20type','36eBiHTm','Apply\x20to\x20all','DB\x20ID','taskId','clear','datasetcode','Skip\x20confirmation\x20for\x20high-risk\x20writes','expectedCount','nonInteractive','reveal','Expected\x20current\x20parent\x20menu\x20id','Skip\x20import\x20generation','yes','params','Environment','Confirm\x20destructive\x20action','Target\x20path','Alias\x20for\x20--non-interactive','confirm','Override\x20appcode','Clear','Rabetbase\x20CLI','Menu\x20label','non-interactive','env','298179KwCPxg','sort','Select\x20app\x20profile\x20by\x20name','File\x20path','watch','description','json\x20|\x20pretty\x20|\x20compress','meowKey','Read\x20value\x20from\x20stdin','sql-name','sqlcode','menu-ids','Force\x20overwrite','JSON\x20params','<code>','Expected\x20current\x20child\x20count','Title','title','Read\x20value\x20from\x20environment\x20variable','dbid','expected-count','stdin','value','99775rinDkH','project','code','string','Watch\x20mode','Use\x20remote','Page\x20size','sqlname','enableBffSave','1333802qJXUzD','Use\x20project\x20config\x20scope','2583628OPuWxs','Record\x20ID','Reveal\x20sensitive\x20value'];a207_0x2d1b=function(){return _0x4ece88;};return a207_0x2d1b();}(function(_0xff8d0f,_0x4c1934){const _0x2117c0=a207_0x88cc,_0x40a88c=_0xff8d0f();while(!![]){try{const _0x2633b5=-parseInt(_0x2117c0(0x171))/0x1*(-parseInt(_0x2117c0(0x1b1))/0x2)+-parseInt(_0x2117c0(0x1d9))/0x3+parseInt(_0x2117c0(0x1b3))/0x4+parseInt(_0x2117c0(0x1a8))/0x5*(-parseInt(_0x2117c0(0x178))/0x6)+-parseInt(_0x2117c0(0x1e7))/0x7+-parseInt(_0x2117c0(0x1d4))/0x8+-parseInt(_0x2117c0(0x191))/0x9*(-parseInt(_0x2117c0(0x169))/0xa);if(_0x2633b5===_0x4c1934)break;else _0x40a88c['push'](_0x40a88c['shift']());}catch(_0x47652a){_0x40a88c['push'](_0x40a88c['shift']());}}}(a207_0x2d1b,0xcb366));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a207_0x42256b(0x18d);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a207_0x42256b(0x1cc),'meowKey':a207_0x42256b(0x1cc),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x18b),'hint':a207_0x42256b(0x19f)},{'name':a207_0x42256b(0x1ba),'meowKey':a207_0x42256b(0x1ba),'type':'string','description':a207_0x42256b(0x193),'hint':a207_0x42256b(0x1bb)},{'name':a207_0x42256b(0x190),'meowKey':a207_0x42256b(0x190),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x186),'hint':'production\x20|\x20daily'},{'name':a207_0x42256b(0x1d5),'meowKey':a207_0x42256b(0x1d5),'type':'string','description':a207_0x42256b(0x1cb),'hint':a207_0x42256b(0x197)},{'name':'jq','meowKey':'jq','type':a207_0x42256b(0x1ab),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a207_0x42256b(0x1da)},{'name':a207_0x42256b(0x16a),'meowKey':'dryRun','type':a207_0x42256b(0x1e4),'description':a207_0x42256b(0x1ce)},{'name':a207_0x42256b(0x184),'meowKey':a207_0x42256b(0x184),'type':a207_0x42256b(0x1e4),'description':a207_0x42256b(0x17e)},{'name':a207_0x42256b(0x18f),'meowKey':a207_0x42256b(0x180),'type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a207_0x42256b(0x1d6),'type':a207_0x42256b(0x1e4),'description':'Use\x20global\x20config\x20scope'},{'name':a207_0x42256b(0x1a9),'meowKey':'project','type':a207_0x42256b(0x1e4),'description':a207_0x42256b(0x1b2)},{'name':'ci','meowKey':'ci','type':a207_0x42256b(0x1e4),'description':a207_0x42256b(0x189),'hidden':!![]},{'name':a207_0x42256b(0x1e5),'meowKey':a207_0x42256b(0x1e5),'type':a207_0x42256b(0x1e4),'description':a207_0x42256b(0x16d)},{'name':a207_0x42256b(0x16e),'meowKey':a207_0x42256b(0x16e),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x170),'hidden':!![]},{'name':a207_0x42256b(0x1a2),'meowKey':a207_0x42256b(0x1a2),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1a1),'hidden':!![]},{'name':'clear','meowKey':a207_0x42256b(0x17c),'type':a207_0x42256b(0x1e4),'description':a207_0x42256b(0x18c),'hidden':!![]},{'name':a207_0x42256b(0x195),'meowKey':a207_0x42256b(0x195),'type':a207_0x42256b(0x1e4),'description':a207_0x42256b(0x1ac),'hidden':!![]},{'name':'output','meowKey':a207_0x42256b(0x1b9),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x173),'hidden':!![]},{'name':a207_0x42256b(0x185),'meowKey':a207_0x42256b(0x185),'type':'string','description':a207_0x42256b(0x19e),'hidden':!![]},{'name':a207_0x42256b(0x17d),'meowKey':a207_0x42256b(0x17d),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1e9),'hidden':!![]},{'name':'all','meowKey':a207_0x42256b(0x1c8),'type':a207_0x42256b(0x1e4),'description':a207_0x42256b(0x179),'hidden':!![]},{'name':'enable-bff-save','meowKey':a207_0x42256b(0x1b0),'type':a207_0x42256b(0x1e4),'description':a207_0x42256b(0x1dd),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a207_0x42256b(0x1b4),'hidden':!![]},{'name':a207_0x42256b(0x175),'meowKey':a207_0x42256b(0x175),'type':a207_0x42256b(0x1ab),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':a207_0x42256b(0x1d2),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x194),'hidden':!![]},{'name':a207_0x42256b(0x19b),'meowKey':a207_0x42256b(0x19b),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1b6),'hidden':!![]},{'name':a207_0x42256b(0x19a),'meowKey':'sqlName','type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1b8),'hidden':!![]},{'name':a207_0x42256b(0x1af),'meowKey':a207_0x42256b(0x1af),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1b8),'hidden':!![]},{'name':a207_0x42256b(0x167),'meowKey':a207_0x42256b(0x1c5),'type':a207_0x42256b(0x1ab),'description':'DB\x20ID','hidden':!![]},{'name':a207_0x42256b(0x1a4),'meowKey':a207_0x42256b(0x1a4),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x17a),'hidden':!![]},{'name':a207_0x42256b(0x196),'meowKey':'description','type':'string','description':a207_0x42256b(0x1d3),'hidden':!![]},{'name':a207_0x42256b(0x1b7),'meowKey':a207_0x42256b(0x1d0),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1e3),'hidden':!![]},{'name':a207_0x42256b(0x172),'meowKey':a207_0x42256b(0x172),'type':a207_0x42256b(0x1ab),'description':'Page\x20number','hidden':!![]},{'name':a207_0x42256b(0x1ea),'meowKey':a207_0x42256b(0x1ea),'type':'string','description':a207_0x42256b(0x1ae),'hidden':!![]},{'name':a207_0x42256b(0x1c0),'meowKey':a207_0x42256b(0x1c0),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1bc),'hidden':!![]},{'name':a207_0x42256b(0x1aa),'meowKey':a207_0x42256b(0x1aa),'type':a207_0x42256b(0x1ab),'description':'Code\x20filter','hidden':!![]},{'name':a207_0x42256b(0x1de),'meowKey':a207_0x42256b(0x1de),'type':'string','description':a207_0x42256b(0x1c4),'hidden':!![]},{'name':a207_0x42256b(0x1c9),'meowKey':a207_0x42256b(0x1c9),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1e2),'hidden':!![]},{'name':a207_0x42256b(0x16b),'meowKey':a207_0x42256b(0x16b),'type':a207_0x42256b(0x1ab),'description':'Operation\x20type','hidden':!![]},{'name':'target','meowKey':'target','type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x188),'hidden':!![]},{'name':a207_0x42256b(0x1c1),'meowKey':a207_0x42256b(0x1cf),'type':'boolean','description':a207_0x42256b(0x183),'hidden':!![]},{'name':a207_0x42256b(0x1bf),'meowKey':a207_0x42256b(0x1bf),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1d7),'hidden':!![]},{'name':a207_0x42256b(0x1a7),'meowKey':a207_0x42256b(0x1a7),'type':'string','description':a207_0x42256b(0x1be),'hidden':!![]},{'name':'tags','meowKey':a207_0x42256b(0x16f),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1bd),'hidden':!![]},{'name':a207_0x42256b(0x1a6),'meowKey':a207_0x42256b(0x1a6),'type':a207_0x42256b(0x1e4),'description':a207_0x42256b(0x199),'hidden':!![]},{'name':'from-env','meowKey':a207_0x42256b(0x168),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1a3),'hidden':!![]},{'name':a207_0x42256b(0x181),'meowKey':a207_0x42256b(0x181),'type':a207_0x42256b(0x1e4),'description':a207_0x42256b(0x1b5),'hidden':!![]},{'name':'force','meowKey':'force','type':'boolean','description':a207_0x42256b(0x19d),'hidden':!![]},{'name':a207_0x42256b(0x18a),'meowKey':a207_0x42256b(0x18a),'type':'boolean','description':a207_0x42256b(0x187),'hidden':!![]},{'name':'remote','meowKey':a207_0x42256b(0x16c),'type':a207_0x42256b(0x1e4),'description':a207_0x42256b(0x1ad),'hidden':!![]},{'name':a207_0x42256b(0x1cd),'meowKey':a207_0x42256b(0x1cd),'type':a207_0x42256b(0x1e4),'description':a207_0x42256b(0x1e6),'hidden':!![]},{'name':a207_0x42256b(0x1a5),'meowKey':a207_0x42256b(0x17f),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1c2),'hidden':!![]},{'name':a207_0x42256b(0x1eb),'meowKey':'label','type':'string','description':a207_0x42256b(0x18e),'hidden':!![]},{'name':a207_0x42256b(0x1c6),'meowKey':'parentId','type':a207_0x42256b(0x1ab),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a207_0x42256b(0x192),'meowKey':a207_0x42256b(0x192),'type':a207_0x42256b(0x1ab),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a207_0x42256b(0x1c7),'meowKey':'expectParentId','type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x182),'hidden':!![]},{'name':a207_0x42256b(0x1d8),'meowKey':'expectPath','type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1e1),'hidden':!![]},{'name':a207_0x42256b(0x1ca),'meowKey':a207_0x42256b(0x1e8),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x1a0),'hidden':!![]},{'name':a207_0x42256b(0x19c),'meowKey':'menuIds','type':a207_0x42256b(0x1ab),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a207_0x42256b(0x1db),'meowKey':a207_0x42256b(0x17b),'type':'string','description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a207_0x42256b(0x1df),'meowKey':a207_0x42256b(0x1c3),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x177),'hidden':!![]},{'name':a207_0x42256b(0x1dc),'meowKey':a207_0x42256b(0x176),'type':a207_0x42256b(0x1ab),'description':a207_0x42256b(0x174),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app','env',a207_0x42256b(0x1d5),'jq','dry-run',a207_0x42256b(0x184),a207_0x42256b(0x18f),'ci']);export function buildMeowFlags(){const _0x288ec1=a207_0x42256b;return Object[_0x288ec1(0x1e0)](GLOBAL_FLAGS[_0x288ec1(0x1d1)](_0x5ef225=>[_0x5ef225[_0x288ec1(0x198)],{'type':_0x5ef225[_0x288ec1(0x175)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x35f2a9=a208_0xb68d;(function(_0x2dcb96,_0x4f7a77){const _0x415fd2=a208_0xb68d,_0xff1a06=_0x2dcb96();while(!![]){try{const _0xf17ff4=-parseInt(_0x415fd2(0xa2))/0x1*(-parseInt(_0x415fd2(0x98))/0x2)+parseInt(_0x415fd2(0xa1))/0x3*(parseInt(_0x415fd2(0x9d))/0x4)+-parseInt(_0x415fd2(0x9f))/0x5*(-parseInt(_0x415fd2(0xa3))/0x6)+-parseInt(_0x415fd2(0x9c))/0x7*(parseInt(_0x415fd2(0xa0))/0x8)+parseInt(_0x415fd2(0x95))/0x9*(parseInt(_0x415fd2(0x9a))/0xa)+parseInt(_0x415fd2(0x9b))/0xb+parseInt(_0x415fd2(0x96))/0xc*(-parseInt(_0x415fd2(0x97))/0xd);if(_0xf17ff4===_0x4f7a77)break;else _0xff1a06['push'](_0xff1a06['shift']());}catch(_0x18e32f){_0xff1a06['push'](_0xff1a06['shift']());}}}(a208_0x2d0d,0x6acd7));function a208_0x2d0d(){const _0x2b6969=['4zZcEbm','production','15JCXrdx','66840VHTIQX','286863bqUCLQ','21pYZLFj','1268958ukzHjA','compress','2573811dLzWWo','5592fODaXd','43420zOTUTm','52098SkPWOk','write','10hQIPHA','8414945kbXylm','280sBkPOd'];a208_0x2d0d=function(){return _0x2b6969;};return a208_0x2d0d();}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a208_0x35f2a9(0x9e),'format':a208_0x35f2a9(0x94),'locale':'en-US','riskLevel':a208_0x35f2a9(0x99),'apiDir':DEFAULT_API_DIR};function a208_0xb68d(_0xbed0c9,_0x1fa04d){_0xbed0c9=_0xbed0c9-0x94;const _0x2d0d9f=a208_0x2d0d();let _0xb68d1f=_0x2d0d9f[_0xbed0c9];return _0xb68d1f;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a208_0x35f2a9(0x94);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a209_0x31994a=a209_0x4293;(function(_0x249552,_0x31779b){const _0x21bc6c=a209_0x4293,_0x27ac10=_0x249552();while(!![]){try{const _0x4acb91=parseInt(_0x21bc6c(0x158))/0x1*(parseInt(_0x21bc6c(0x151))/0x2)+-parseInt(_0x21bc6c(0x14f))/0x3+-parseInt(_0x21bc6c(0x15f))/0x4+parseInt(_0x21bc6c(0x14e))/0x5+-parseInt(_0x21bc6c(0x15a))/0x6*(-parseInt(_0x21bc6c(0x152))/0x7)+parseInt(_0x21bc6c(0x160))/0x8*(-parseInt(_0x21bc6c(0x156))/0x9)+parseInt(_0x21bc6c(0x15c))/0xa*(-parseInt(_0x21bc6c(0x15d))/0xb);if(_0x4acb91===_0x31779b)break;else _0x27ac10['push'](_0x27ac10['shift']());}catch(_0x2ec032){_0x27ac10['push'](_0x27ac10['shift']());}}}(a209_0x128b,0xf3848));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0xd459de){const _0x1b4478=a209_0x4293;customApiDomain=_0xd459de?.[_0x1b4478(0x159)],customUserDomain=_0xd459de?.[_0x1b4478(0x157)],customRuntimeDomain=_0xd459de?.[_0x1b4478(0x153)];}function a209_0x128b(){const _0x5c7d0c=['https://daily.lovrabet.com','/app/','5641080gUWVFC','3494289xtodjt','https://user-daily.lovrabet.com','6RJMzNM','28049MfVADS','runtimeDomain','trim','https://daily-runtime.lovrabet.com','22293VRxjUl','userDomain','521173WVUPhp','apiDomain','2862pTVcHD','/web-app/app/','26710tIfGYm','2772fryrUy','https://app.lovrabet.com','5257920bReIPP','1464FqomiI'];a209_0x128b=function(){return _0x5c7d0c;};return a209_0x128b();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':a209_0x31994a(0x150));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':'https://daily-api.lovrabet.com');function a209_0x4293(_0x47d9f0,_0x3d3d97){_0x47d9f0=_0x47d9f0-0x14e;const _0x128bec=a209_0x128b();let _0x4293b3=_0x128bec[_0x47d9f0];return _0x4293b3;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':a209_0x31994a(0x155));export const getAppDomain=()=>isProduction(getEnv())?a209_0x31994a(0x15e):a209_0x31994a(0x161);export const getAppBaseUrl=_0xfbe28a=>{const _0x21b08c=a209_0x31994a,_0x36517=encodeURIComponent(_0xfbe28a[_0x21b08c(0x154)]());return isProduction(getEnv())?getAppDomain()+_0x21b08c(0x162)+_0x36517:getAppDomain()+_0x21b08c(0x15b)+_0x36517;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a210_0xa1b7b4=a210_0x2647;(function(_0x27f4c5,_0x4742bd){const _0x1020c4=a210_0x2647,_0x4485be=_0x27f4c5();while(!![]){try{const _0x327f04=-parseInt(_0x1020c4(0x108))/0x1*(parseInt(_0x1020c4(0x109))/0x2)+-parseInt(_0x1020c4(0x10a))/0x3+parseInt(_0x1020c4(0x105))/0x4+parseInt(_0x1020c4(0x10d))/0x5+parseInt(_0x1020c4(0x10b))/0x6+-parseInt(_0x1020c4(0x10c))/0x7+parseInt(_0x1020c4(0x106))/0x8*(parseInt(_0x1020c4(0x104))/0x9);if(_0x327f04===_0x4742bd)break;else _0x4485be['push'](_0x4485be['shift']());}catch(_0xc32304){_0x4485be['push'](_0x4485be['shift']());}}}(a210_0x2575,0xc7041));export const RABETBASE_ENV_VALUES=[a210_0xa1b7b4(0x103),a210_0xa1b7b4(0x101)];export function normalizeEnv(_0x4e4cac){const _0x281225=a210_0xa1b7b4;return _0x4e4cac==='online'?_0x281225(0x103):_0x4e4cac;}export function isProduction(_0x316685){const _0x13fd8e=a210_0xa1b7b4;return normalizeEnv(_0x316685)===_0x13fd8e(0x103);}export function isDaily(_0x22dc46){const _0x3d0bb4=a210_0xa1b7b4;return normalizeEnv(_0x22dc46)===_0x3d0bb4(0x101);}export function isDev(_0x116867){const _0x176b5f=a210_0xa1b7b4,_0x380045=normalizeEnv(_0x116867);return _0x380045===_0x176b5f(0x102)||_0x380045===_0x176b5f(0x107);}function a210_0x2575(){const _0x16e987=['3459372lJVBLL','5899764EJtsXg','9904398pVhwEB','2320715jTbZXJ','daily','development','production','207awrMvb','5641328ukGPRb','385304xwzBDk','dev','582311QgCTVg','2cvYtem'];a210_0x2575=function(){return _0x16e987;};return a210_0x2575();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a210_0xa1b7b4(0x103));export function getEnv(){return env;}function a210_0x2647(_0x1dd897,_0x2ae75f){_0x1dd897=_0x1dd897-0x101;const _0x257581=a210_0x2575();let _0x2647d6=_0x257581[_0x1dd897];return _0x2647d6;}export function initEnv(_0x122dbc){env=normalizeEnv(_0x122dbc);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a211_0x2800(_0xe3a740,_0xa762){_0xe3a740=_0xe3a740-0x199;const _0x488282=a211_0x4882();let _0x2800e7=_0x488282[_0xe3a740];return _0x2800e7;}const a211_0x3ff563=a211_0x2800;(function(_0x26fc0d,_0x40a309){const _0x253def=a211_0x2800,_0x73312a=_0x26fc0d();while(!![]){try{const _0x2151e1=parseInt(_0x253def(0x1a0))/0x1+-parseInt(_0x253def(0x1a3))/0x2+parseInt(_0x253def(0x19d))/0x3+parseInt(_0x253def(0x199))/0x4+parseInt(_0x253def(0x19f))/0x5+-parseInt(_0x253def(0x19c))/0x6*(-parseInt(_0x253def(0x1a1))/0x7)+-parseInt(_0x253def(0x19a))/0x8*(parseInt(_0x253def(0x19b))/0x9);if(_0x2151e1===_0x40a309)break;else _0x73312a['push'](_0x73312a['shift']());}catch(_0x573c45){_0x73312a['push'](_0x73312a['shift']());}}}(a211_0x4882,0x436a5));function a211_0x4882(){const _0x25bd4d=['756boNmXF','755727JuvxKm','compress','1250355aREJGt','233084IuqiMp','5327QYFMSt','json','870960zdtuRx','pretty','13420RhrFmO','6632JOZdHQ','1332ryQZLe'];a211_0x4882=function(){return _0x25bd4d;};return a211_0x4882();}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a211_0x3ff563(0x1a2),a211_0x3ff563(0x1a4),a211_0x3ff563(0x19e)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a212_0x105c3c=a212_0x32d4;function a212_0x59b1(){const _0x435c6b=['8jZzFgj','217640oGxHOF','4800630LUrOjZ','37282250PrvYSP','./src/api','12crqHTL','4572267yQKuyv','554992AMTeRU','2440796QegAJW','50ekYWBR','2941803opuxQh'];a212_0x59b1=function(){return _0x435c6b;};return a212_0x59b1();}(function(_0x4cf716,_0x166f43){const _0x36099b=a212_0x32d4,_0x2b3987=_0x4cf716();while(!![]){try{const _0x283946=-parseInt(_0x36099b(0x80))/0x1+-parseInt(_0x36099b(0x87))/0x2+parseInt(_0x36099b(0x81))/0x3+-parseInt(_0x36099b(0x86))/0x4*(parseInt(_0x36099b(0x88))/0x5)+parseInt(_0x36099b(0x84))/0x6*(-parseInt(_0x36099b(0x85))/0x7)+-parseInt(_0x36099b(0x8a))/0x8*(parseInt(_0x36099b(0x89))/0x9)+parseInt(_0x36099b(0x82))/0xa;if(_0x283946===_0x166f43)break;else _0x2b3987['push'](_0x2b3987['shift']());}catch(_0x39808d){_0x2b3987['push'](_0x2b3987['shift']());}}}(a212_0x59b1,0xd4538));function a212_0x32d4(_0x2d3894,_0x4179b5){_0x2d3894=_0x2d3894-0x80;const _0x59b183=a212_0x59b1();let _0x32d433=_0x59b183[_0x2d3894];return _0x32d433;}export const DEFAULT_API_DIR=a212_0x105c3c(0x83);
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a213_0x83eea=a213_0xa0f2;function a213_0xa0f2(_0x368afd,_0x5ee2c2){_0x368afd=_0x368afd-0xf3;const _0x5a57b1=a213_0x5a57();let _0xa0f2ec=_0x5a57b1[_0x368afd];return _0xa0f2ec;}function a213_0x5a57(){const _0xebbd2d=['592296ZNlNiY','write','9JTGZYu','high-risk-write','6AqanBB','966064xgdWit','6358nKKmuF','87440syURto','7XiPpRd','401736bIlBVB','41DYzvyG','865616RmXGtT','1911640qTMXBW','read'];a213_0x5a57=function(){return _0xebbd2d;};return a213_0x5a57();}(function(_0x2de1b9,_0x1215da){const _0x1481d0=a213_0xa0f2,_0x3b8ad2=_0x2de1b9();while(!![]){try{const _0x7cd855=parseInt(_0x1481d0(0xfc))/0x1*(parseInt(_0x1481d0(0xf8))/0x2)+-parseInt(_0x1481d0(0xfb))/0x3+parseInt(_0x1481d0(0x100))/0x4+-parseInt(_0x1481d0(0xf9))/0x5*(parseInt(_0x1481d0(0xf6))/0x6)+-parseInt(_0x1481d0(0xfa))/0x7*(parseInt(_0x1481d0(0xfd))/0x8)+-parseInt(_0x1481d0(0xf4))/0x9*(-parseInt(_0x1481d0(0xfe))/0xa)+-parseInt(_0x1481d0(0xf7))/0xb;if(_0x7cd855===_0x1215da)break;else _0x3b8ad2['push'](_0x3b8ad2['shift']());}catch(_0x2d5a34){_0x3b8ad2['push'](_0x3b8ad2['shift']());}}}(a213_0x5a57,0x1dd27));export const RISK_LEVEL_VALUES=[a213_0x83eea(0xff),a213_0x83eea(0xf3),a213_0x83eea(0xf5)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x78eedd,_0x5322df){const _0xb247bc=a214_0x364c,_0x2c78d8=_0x78eedd();while(!![]){try{const _0x1e66e3=-parseInt(_0xb247bc(0xb6))/0x1+parseInt(_0xb247bc(0xcb))/0x2+-parseInt(_0xb247bc(0xae))/0x3*(parseInt(_0xb247bc(0xb8))/0x4)+-parseInt(_0xb247bc(0xc5))/0x5+parseInt(_0xb247bc(0xc8))/0x6+-parseInt(_0xb247bc(0xc3))/0x7+parseInt(_0xb247bc(0xc9))/0x8;if(_0x1e66e3===_0x5322df)break;else _0x2c78d8['push'](_0x2c78d8['shift']());}catch(_0x30e0e3){_0x2c78d8['push'](_0x2c78d8['shift']());}}}(a214_0xbce2,0x6859d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x10848d){const _0x5745a0=a214_0x364c;return typeof _0x10848d===_0x5745a0(0xb2)&&_0x10848d[_0x5745a0(0xbc)]()?_0x10848d[_0x5745a0(0xbc)]():undefined;}function appProfiles(_0xde6c73){const _0x27c8fc=a214_0x364c;return _0xde6c73[_0x27c8fc(0xbb)]&&typeof _0xde6c73[_0x27c8fc(0xbb)]===_0x27c8fc(0xb3)?_0xde6c73[_0x27c8fc(0xbb)]:{};}function resolveDefaultAppName(_0x4fa499){const _0x93b7ef=a214_0x364c,_0x337c7b=stringConfigValue(_0x4fa499[_0x93b7ef(0xca)]);if(_0x337c7b)return _0x337c7b;return Object[_0x93b7ef(0xcc)](appProfiles(_0x4fa499))[0x0];}function resolveTopLevelAppCode(_0x3e7350){const _0x35fc2d=a214_0x364c;return stringConfigValue(_0x3e7350['appcode'])||stringConfigValue(_0x3e7350[_0x35fc2d(0xb4)]);}function a214_0x364c(_0x2a5ae3,_0x220ff8){_0x2a5ae3=_0x2a5ae3-0xa4;const _0xbce200=a214_0xbce2();let _0x364c35=_0xbce200[_0x2a5ae3];return _0x364c35;}function normalizeRiskCeiling(_0x5add86){const _0x125772=a214_0x364c;if(_0x5add86===undefined||_0x5add86===null)return undefined;if(_0x5add86===_0x125772(0xc2)||_0x5add86===_0x125772(0xce)||_0x5add86===_0x125772(0xb0))return _0x5add86;return _0x125772(0xc2);}function resolveRiskCeiling(..._0x59b261){let _0x27e094;for(const _0x2d725e of _0x59b261){const _0x5216d3=normalizeRiskCeiling(_0x2d725e);_0x5216d3&&(!_0x27e094||riskLevelOrder(_0x5216d3)<riskLevelOrder(_0x27e094))&&(_0x27e094=_0x5216d3);}return _0x27e094??DEFAULT_CONFIG_VALUES['riskLevel'];}function configuredRiskCeilings(_0x183113){const _0x1359c6=a214_0x364c;return[...Object['prototype'][_0x1359c6(0xa7)][_0x1359c6(0xad)](_0x183113,_0x1359c6(0xaa))?[_0x183113[_0x1359c6(0xaa)]]:[],...Object[_0x1359c6(0xa6)]['hasOwnProperty']['call'](_0x183113,_0x1359c6(0xa9))?[_0x183113['riskLevel']]:[]];}export function resolveAppConfig({raw:_0x2a1a21,flags:_0x123d05,layers:_0x32b9e0,readEnv:_0x375a6d}){const _0x135195=a214_0x364c,_0x23a1fe=_0x32b9e0?.['projectConfig']??{},_0x5a71c0=_0x32b9e0?.['globalConfig']??{},_0x3623eb=Object[_0x135195(0xcc)](_0x23a1fe)[_0x135195(0xb1)]>0x0,_0x1d7a3f=!_0x3623eb||_0x23a1fe['inherit']===!![],_0x34e48a=_0x3623eb?resolveDefaultAppName(_0x23a1fe):undefined,_0x1a5129=_0x1d7a3f?resolveDefaultAppName(_0x5a71c0):undefined,_0x3b9743=stringConfigValue(_0x123d05[_0x135195(0xb4)]),_0x2c2db2=_0x375a6d('APP'),_0xcb6c24={};if(_0x2a1a21[_0x135195(0xbb)]&&typeof _0x2a1a21['apps']===_0x135195(0xb3))for(const [_0x2642a8,_0x55d93c]of Object[_0x135195(0xcd)](_0x2a1a21['apps'])){_0x55d93c&&typeof _0x55d93c===_0x135195(0xb3)&&_0x55d93c['appcode']&&(_0xcb6c24[_0x2642a8]=_0x55d93c);}const _0x659bcd=_0x2a1a21[_0x135195(0xca)]||undefined,_0x41bd34=Object[_0x135195(0xcc)](_0xcb6c24)[_0x135195(0xb1)]>0x0,_0x55c843=_0x3b9743||_0x34e48a||_0x2c2db2||_0x1a5129||_0x659bcd||undefined,_0x50ff2e=stringConfigValue(_0x123d05[_0x135195(0xb5)]),_0x1a2c5d=_0x50ff2e?Object[_0x135195(0xcd)](_0xcb6c24)['find'](([,_0x31e9af])=>_0x31e9af?.[_0x135195(0xb5)]===_0x50ff2e):undefined,_0x503aae=_0x1a2c5d?.[0x0],_0x23b48c=_0x1a2c5d?.[0x1],_0x2c1ce1=_0x50ff2e?_0x503aae:_0x55c843;let _0x453209=_0x2c1ce1&&_0xcb6c24[_0x2c1ce1]?_0xcb6c24[_0x2c1ce1]:undefined;_0x50ff2e&&_0x23b48c&&(_0x453209=_0x23b48c);const _0x38c827=_0x50ff2e?_0x23b48c??_0x453209:_0x453209,_0x45f3d8=!_0x3b9743&&!_0x34e48a&&_0x2c2db2&&_0x2c1ce1===_0x2c2db2,_0x2eb0d7=_0x3b9743||(_0x45f3d8?_0x2c2db2:undefined)||(_0x50ff2e?_0x503aae:undefined),_0x2bf124=_0x38c827?.[_0x135195(0xb5)],_0x3064d9=_0x3623eb?resolveTopLevelAppCode(_0x23a1fe):undefined,_0x29365f=_0x1d7a3f?resolveTopLevelAppCode(_0x5a71c0):undefined,_0x124ba0=_0x3b9743||_0x34e48a?_0x2bf124:undefined,_0x4bdb2e=!_0x3b9743&&!_0x34e48a?_0x2bf124:undefined,_0x16c94e=_0x50ff2e||_0x124ba0||_0x3064d9||_0x4bdb2e||_0x29365f||undefined,_0x4fbb29=_0x3623eb?stringConfigValue(_0x23a1fe[_0x135195(0xaf)]):undefined,_0x4cd149=_0x1d7a3f?stringConfigValue(_0x5a71c0[_0x135195(0xaf)]):undefined,_0x1711a0=_0x123d05[_0x135195(0xaf)]||_0x38c827?.[_0x135195(0xaf)]||_0x4fbb29||_0x375a6d('ENV')||_0x4cd149||_0x2a1a21[_0x135195(0xaf)]||DEFAULT_CONFIG_VALUES['env'],_0x1790f7=_0x38c827?.['locale']||_0x2a1a21[_0x135195(0xc1)]||DEFAULT_CONFIG_VALUES[_0x135195(0xc1)],_0x544f58=_0x375a6d(_0x135195(0xc7))||_0x38c827?.['cookie']||_0x2a1a21[_0x135195(0xb9)]||undefined,_0x3d8352=_0x375a6d(_0x135195(0xab))||_0x38c827?.[_0x135195(0xbd)]||_0x2a1a21['accessKey']||undefined,_0x293273=_0x123d05[_0x135195(0xb7)]||_0x375a6d(_0x135195(0xbe))||_0x38c827?.[_0x135195(0xb7)]||_0x2a1a21[_0x135195(0xb7)],_0xccf4a0=normalizeLegacyOutputFormat(_0x293273),_0x1a3be9=_0x375a6d(_0x135195(0xa4))||_0x38c827?.['pageSize']||_0x2a1a21[_0x135195(0xa8)],_0xdaaf7a=_0x1a3be9?Number(_0x1a3be9)||undefined:undefined,_0x2c8f8c=_0x32b9e0?[...configuredRiskCeilings(_0x32b9e0['globalConfig']),...configuredRiskCeilings(_0x32b9e0[_0x135195(0xba)])]:configuredRiskCeilings(_0x2a1a21),_0x547d37=resolveRiskCeiling(..._0x2c8f8c,_0x38c827?.[_0x135195(0xa9)]),_0x21e5a9=resolveRiskCeiling(_0x547d37,_0x375a6d('RISK_LEVEL'),_0x375a6d(_0x135195(0xc4))),_0x260291=_0x375a6d(_0x135195(0xa5)),_0x2ffef7=_0x260291==='1'||_0x260291===_0x135195(0xc6),_0x2cd4a6=_0x38c827?.['apiDir']||_0x2a1a21['apiDir']||DEFAULT_CONFIG_VALUES[_0x135195(0xac)],_0x180fe2=isDaily(normalizeEnv(String(_0x1711a0)))?_0x135195(0xc0):_0x135195(0xbf);return{'appCode':typeof _0x16c94e==='string'&&_0x16c94e[_0x135195(0xbc)]()?_0x16c94e[_0x135195(0xbc)]():undefined,'env':_0x180fe2,'locale':_0x1790f7,'cookie':_0x544f58,'accessKey':_0x3d8352,'format':_0xccf4a0,'pageSize':_0xdaaf7a,'riskLevel':_0x21e5a9,'verbose':_0x2ffef7,'apiDir':_0x2cd4a6,'apps':_0xcb6c24,'defaultApp':_0x659bcd,'currentApp':_0x41bd34?_0x2c1ce1:undefined,'explicitAppName':_0x2eb0d7};}function a214_0xbce2(){const _0x130a9d=['apiDir','call','41367kWupHk','env','high-risk-write','length','string','object','app','appcode','109552kHQhrN','format','124zCyXpY','cookie','projectConfig','apps','trim','accessKey','FORMAT','production','daily','locale','read','3043474ilowDi','MAX_RISK','1160575pQIJkm','true','COOKIE','1814502sWiprX','7945472pfKrSI','defaultApp','671456dpSPHM','keys','entries','write','PAGE_SIZE','VERBOSE','prototype','hasOwnProperty','pageSize','riskLevel','maxRisk','ACCESS_KEY'];a214_0xbce2=function(){return _0x130a9d;};return a214_0xbce2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3cba7e,_0x3fca57){const _0x109e80=a215_0x48ef,_0x217a33=_0x3cba7e();while(!![]){try{const _0x5af67a=parseInt(_0x109e80(0x89))/0x1*(-parseInt(_0x109e80(0x93))/0x2)+-parseInt(_0x109e80(0x8e))/0x3*(parseInt(_0x109e80(0x96))/0x4)+parseInt(_0x109e80(0x95))/0x5*(parseInt(_0x109e80(0x8c))/0x6)+parseInt(_0x109e80(0x91))/0x7+-parseInt(_0x109e80(0x8a))/0x8*(-parseInt(_0x109e80(0x92))/0x9)+parseInt(_0x109e80(0x8b))/0xa*(-parseInt(_0x109e80(0x94))/0xb)+parseInt(_0x109e80(0x97))/0xc;if(_0x5af67a===_0x3fca57)break;else _0x217a33['push'](_0x217a33['shift']());}catch(_0x5cc339){_0x217a33['push'](_0x217a33['shift']());}}}(a215_0x4f70,0x2da60));import{getIsSessionValid}from'../auth/is-session-valid.js';function a215_0x48ef(_0x2df3dd,_0x54e052){_0x2df3dd=_0x2df3dd-0x89;const _0x4f70cb=a215_0x4f70();let _0x48ef22=_0x4f70cb[_0x2df3dd];return _0x48ef22;}import{CliErrors}from'../errors.js';function a215_0x4f70(){const _0x1e36f3=['1597246TzpjLm','9TkNPCk','8mXCEZe','1265kQzSDY','85dHwZas','4jkKvss','2229564RxTFJj','15925EIzAip','1764664GbvQWX','20610WhqUVL','31686AvmUno','cookie','709932nKclOx','authRequired','../auth/get-cookie.js'];a215_0x4f70=function(){return _0x1e36f3;};return a215_0x4f70();}export async function buildAuth(_0x43ad0d){const _0x543106=a215_0x48ef,{getCookie:_0x347cc0}=await import(_0x543106(0x90)),_0x33179d=_0x43ad0d[_0x543106(0x8d)]||_0x347cc0(),_0x159116=_0x33179d?await getIsSessionValid():![];return{'cookie':_0x33179d,'isLoggedIn':_0x159116,async 'getOrLogin'(){const _0x3de44e=_0x543106;if(_0x33179d&&_0x159116)return _0x33179d;throw CliErrors[_0x3de44e(0x8f)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a216_0x257138=a216_0x3577;(function(_0x4f9d38,_0x265804){const _0x58d7c2=a216_0x3577,_0x8bd32f=_0x4f9d38();while(!![]){try{const _0x1e4cd4=-parseInt(_0x58d7c2(0x1ea))/0x1*(parseInt(_0x58d7c2(0x1e4))/0x2)+parseInt(_0x58d7c2(0x1f0))/0x3+parseInt(_0x58d7c2(0x1cd))/0x4+-parseInt(_0x58d7c2(0x1c5))/0x5+-parseInt(_0x58d7c2(0x1f1))/0x6*(parseInt(_0x58d7c2(0x1de))/0x7)+parseInt(_0x58d7c2(0x1d4))/0x8+parseInt(_0x58d7c2(0x1e9))/0x9;if(_0x1e4cd4===_0x265804)break;else _0x8bd32f['push'](_0x8bd32f['shift']());}catch(_0x2cb8ab){_0x8bd32f['push'](_0x8bd32f['shift']());}}}(a216_0x4327,0xca897));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a216_0x3577(_0x5c16dc,_0x3d31d0){_0x5c16dc=_0x5c16dc-0x1c4;const _0x4327c4=a216_0x4327();let _0x3577c6=_0x4327c4[_0x5c16dc];return _0x3577c6;}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=a216_0x257138(0x1e0);export const CONFIG_NAMES=[a216_0x257138(0x1e0),a216_0x257138(0x1d1),a216_0x257138(0x1ce)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x1d8e0c=>_0x1d8e0c!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x2feb0a){for(const _0x297cc0 of CONFIG_NAMES){const _0x31d807=resolve(_0x2feb0a,_0x297cc0);if(existsSync(_0x31d807))return _0x31d807;}return undefined;}export function findProjectRootDirectory(_0x5cb3e8=process[a216_0x257138(0x1da)]()){let _0x4fc58d=resolve(_0x5cb3e8);const {root:_0x4b236b}=parse(_0x4fc58d),_0x5878cb=homedir();while(!![]){if(resolveConfigPath(_0x4fc58d)){if(_0x4fc58d===_0x5878cb)break;return _0x4fc58d;}if(_0x4fc58d===_0x4b236b||_0x4fc58d===_0x5878cb)break;const _0x152bfc=dirname(_0x4fc58d);if(_0x152bfc===_0x4fc58d)break;_0x4fc58d=_0x152bfc;}return resolve(_0x5cb3e8);}export function getProjectConfigPath(){const _0x980af4=a216_0x257138;return resolveConfigPath(process[_0x980af4(0x1da)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x51efa1){const _0x404bbb=a216_0x257138;if(!existsSync(_0x51efa1))return{'status':_0x404bbb(0x1cc)};try{const _0x34aaa6=readFileSync(_0x51efa1,{'encoding':'utf8'});if(!_0x34aaa6?.[_0x404bbb(0x1e7)]())return{'status':'empty'};const _0x2dd795=JSON['parse'](_0x34aaa6);return{'status':'ok','data':_0x2dd795};}catch(_0x16488c){return{'status':_0x404bbb(0x1f3),'message':_0x16488c instanceof Error?_0x16488c[_0x404bbb(0x1dd)]:String(_0x16488c)};}}function parseCliConfigJsonFile(_0x3b4f79,_0x12bc9e,_0x235672){const _0x463ace=a216_0x257138,_0x3ac00a=inspectCliConfigJsonFile(_0x3b4f79);if(_0x3ac00a[_0x463ace(0x1d3)]==='missing'||_0x3ac00a[_0x463ace(0x1d3)]===_0x463ace(0x1f2))return{};if(_0x3ac00a[_0x463ace(0x1d3)]==='ok')return _0x3ac00a[_0x463ace(0x1d6)];return _0x12bc9e===_0x463ace(0x1df)&&_0x235672&&console[_0x463ace(0x1f3)](CLI_BIN_NAME+':\x20'+_0x235672+_0x463ace(0x1d9)+_0x3b4f79+_0x463ace(0x1d7)+_0x3ac00a[_0x463ace(0x1dd)]),{};}function a216_0x4327(){const _0x2bd3fc=['message','7DQMDBw','warn','.rabetbase.json','inherit','app','apps','4hXEeUe','cookie','get','trim','format','19024596qQNGIz','382929uysBJN','utf8','accessKey','stringify','defaultApp','apiDir','1734603OJbMrW','6999588coZFEV','empty','error','object','8117985rXPkeJ','keys','set','pageSize','Global','length','config','missing','1800616UvSfAJ','.lovrabetrc','migrated','riskLevel','.lovrabet.json','appcode','status','9947560BcLXFl','env','data','\x0a\x20\x20','silent','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','cwd','project','locale'];a216_0x4327=function(){return _0x2bd3fc;};return a216_0x4327();}function normalizeLegacyConfigShape(_0x58d4fa){const _0x1d0be3=a216_0x257138;if(!_0x58d4fa||typeof _0x58d4fa!==_0x1d0be3(0x1c4))return{'config':{},'migrated':![]};const _0xb0bc8a={..._0x58d4fa},_0x124aa6=_0xb0bc8a[_0x1d0be3(0x1e3)]&&typeof _0xb0bc8a[_0x1d0be3(0x1e3)]===_0x1d0be3(0x1c4)?{..._0xb0bc8a[_0x1d0be3(0x1e3)]}:{},_0x43dd45=Object[_0x1d0be3(0x1c6)](_0x124aa6)['length'],_0x25b2d3=_0xb0bc8a[_0x1d0be3(0x1d2)]||_0xb0bc8a['app'];let _0x592bc6=![];if(_0x25b2d3&&_0x43dd45===0x0){const _0x6d7282=typeof _0xb0bc8a[_0x1d0be3(0x1ee)]==='string'&&_0xb0bc8a['defaultApp'][_0x1d0be3(0x1e7)]()?_0xb0bc8a[_0x1d0be3(0x1ee)]:String(_0x25b2d3)['trim']();_0x124aa6[_0x6d7282]={'appcode':String(_0x25b2d3)['trim'](),..._0xb0bc8a[_0x1d0be3(0x1d5)]!=null?{'env':_0xb0bc8a[_0x1d0be3(0x1d5)]}:{},..._0xb0bc8a[_0x1d0be3(0x1ef)]!=null?{'apiDir':_0xb0bc8a['apiDir']}:{},..._0xb0bc8a[_0x1d0be3(0x1e5)]!=null?{'cookie':_0xb0bc8a[_0x1d0be3(0x1e5)]}:{},..._0xb0bc8a[_0x1d0be3(0x1ec)]!=null?{'accessKey':_0xb0bc8a[_0x1d0be3(0x1ec)]}:{},..._0xb0bc8a[_0x1d0be3(0x1e8)]!=null?{'format':_0xb0bc8a[_0x1d0be3(0x1e8)]}:{},..._0xb0bc8a[_0x1d0be3(0x1c8)]!=null?{'pageSize':_0xb0bc8a[_0x1d0be3(0x1c8)]}:{},..._0xb0bc8a['riskLevel']!=null?{'riskLevel':_0xb0bc8a[_0x1d0be3(0x1d0)]}:{},..._0xb0bc8a[_0x1d0be3(0x1dc)]!=null?{'locale':_0xb0bc8a[_0x1d0be3(0x1dc)]}:{}},_0xb0bc8a[_0x1d0be3(0x1e3)]=_0x124aa6;if(!_0xb0bc8a[_0x1d0be3(0x1ee)])_0xb0bc8a[_0x1d0be3(0x1ee)]=_0x6d7282;_0x592bc6=!![];}return(_0x1d0be3(0x1d2)in _0xb0bc8a||_0x1d0be3(0x1e2)in _0xb0bc8a)&&(delete _0xb0bc8a[_0x1d0be3(0x1d2)],delete _0xb0bc8a[_0x1d0be3(0x1e2)],_0x592bc6=!![]),{'config':_0xb0bc8a,'migrated':_0x592bc6};}function writeNormalizedConfigIfNeeded(_0x3bac95,_0x1db8da){const _0x5d1c17=a216_0x257138,_0x5c6a18=JSON[_0x5d1c17(0x1ed)](_0x1db8da,null,0x2)+'\x0a';if(normalizedWriteCache[_0x5d1c17(0x1e6)](_0x3bac95)===_0x5c6a18)return;writeConfigFile(_0x3bac95,_0x1db8da),normalizedWriteCache[_0x5d1c17(0x1c7)](_0x3bac95,_0x5c6a18);}function parseAndNormalizeConfig(_0x464537,_0x49a0a0,_0x24c2e9){const _0x35142c=a216_0x257138,_0x3f49ae=parseCliConfigJsonFile(_0x464537,_0x49a0a0,_0x24c2e9),_0x73763f=normalizeLegacyConfigShape(_0x3f49ae);if(_0x73763f[_0x35142c(0x1cf)])try{writeNormalizedConfigIfNeeded(_0x464537,_0x73763f[_0x35142c(0x1cb)]);}catch{}return _0x73763f['config'];}export function loadRawConfigLayers(_0x5230c0){const _0x56cde3=a216_0x257138;let _0x380554={},_0x3401cd={};const _0x37eee4=resolveConfigPath(homedir());_0x37eee4&&(_0x380554=parseAndNormalizeConfig(_0x37eee4,_0x56cde3(0x1df),_0x56cde3(0x1c9)));const _0x2389d1=_0x5230c0??findProjectRootDirectory(),_0x22b555=resolveConfigPath(_0x2389d1);return _0x22b555&&(_0x3401cd=parseAndNormalizeConfig(_0x22b555,'warn','Project')),{'globalPath':_0x37eee4,'projectPath':_0x22b555,'globalConfig':_0x380554,'projectConfig':_0x3401cd};}const INHERIT_WHITELIST=[a216_0x257138(0x1e5),a216_0x257138(0x1ec),a216_0x257138(0x1dc),a216_0x257138(0x1e8),a216_0x257138(0x1d0),a216_0x257138(0x1c8)];export function mergeRawConfigLayers(_0xc36779){const _0x31f2f7=a216_0x257138,{globalConfig:_0x44a034,projectConfig:_0x3f3ca9}=_0xc36779,_0x472de8=Object[_0x31f2f7(0x1c6)](_0x3f3ca9)[_0x31f2f7(0x1ca)]>0x0;if(!_0x472de8)return mergeGlobalOnly(_0x44a034);if(_0x3f3ca9[_0x31f2f7(0x1e1)]===!![])return mergeFullInherit(_0x44a034,_0x3f3ca9);if(_0x3f3ca9[_0x31f2f7(0x1e1)]===![])return mergeIsolated(_0x3f3ca9);return mergeProjectFirst(_0x44a034,_0x3f3ca9);}function mergeGlobalOnly(_0x3e726b){const _0xdbe26=a216_0x257138,_0x3e7e98={..._0x3e726b},_0xf73c86=_0x3e726b[_0xdbe26(0x1e3)]&&typeof _0x3e726b['apps']===_0xdbe26(0x1c4)?_0x3e726b[_0xdbe26(0x1e3)]:{};if(Object['keys'](_0xf73c86)[_0xdbe26(0x1ca)]>0x0)_0x3e7e98['apps']=_0xf73c86;if(_0x3e726b['defaultApp'])_0x3e7e98[_0xdbe26(0x1ee)]=_0x3e726b[_0xdbe26(0x1ee)];else{const _0xb35517=Object[_0xdbe26(0x1c6)](_0xf73c86);if(_0xb35517['length']>0x0)_0x3e7e98[_0xdbe26(0x1ee)]=_0xb35517[0x0];}return _0x3e7e98;}function mergeIsolated(_0x1a97ca){const _0x198329=a216_0x257138,_0x240719={..._0x1a97ca};delete _0x240719[_0x198329(0x1e1)];const _0x2f2faf=_0x1a97ca[_0x198329(0x1e3)]&&typeof _0x1a97ca[_0x198329(0x1e3)]===_0x198329(0x1c4)?_0x1a97ca['apps']:{};Object['keys'](_0x2f2faf)['length']>0x0?_0x240719['apps']=_0x2f2faf:delete _0x240719['apps'];if(_0x198329(0x1ee)in _0x1a97ca)_0x240719[_0x198329(0x1ee)]=_0x1a97ca[_0x198329(0x1ee)];else Object['keys'](_0x2f2faf)[_0x198329(0x1ca)]>0x0?_0x240719[_0x198329(0x1ee)]=Object[_0x198329(0x1c6)](_0x2f2faf)[0x0]:delete _0x240719[_0x198329(0x1ee)];return _0x240719;}function mergeProjectFirst(_0x2c8847,_0x1334d2){const _0x5a92ab=a216_0x257138,_0x18a450={..._0x1334d2};delete _0x18a450[_0x5a92ab(0x1e1)];for(const _0x51ff7d of INHERIT_WHITELIST){!(_0x51ff7d in _0x18a450)&&_0x51ff7d in _0x2c8847&&(_0x18a450[_0x51ff7d]=_0x2c8847[_0x51ff7d]);}const _0x413dbf=_0x1334d2['apps']&&typeof _0x1334d2[_0x5a92ab(0x1e3)]===_0x5a92ab(0x1c4)?_0x1334d2[_0x5a92ab(0x1e3)]:{};Object[_0x5a92ab(0x1c6)](_0x413dbf)[_0x5a92ab(0x1ca)]>0x0?_0x18a450[_0x5a92ab(0x1e3)]=_0x413dbf:delete _0x18a450[_0x5a92ab(0x1e3)];if(_0x5a92ab(0x1ee)in _0x1334d2)_0x18a450[_0x5a92ab(0x1ee)]=_0x1334d2[_0x5a92ab(0x1ee)];else Object[_0x5a92ab(0x1c6)](_0x413dbf)['length']>0x0?_0x18a450['defaultApp']=Object[_0x5a92ab(0x1c6)](_0x413dbf)[0x0]:delete _0x18a450[_0x5a92ab(0x1ee)];return _0x18a450;}function mergeFullInherit(_0x56b434,_0x58c51b){const _0x59c380=a216_0x257138,_0x51801f=_0x56b434[_0x59c380(0x1e3)]&&typeof _0x56b434[_0x59c380(0x1e3)]==='object'?_0x56b434[_0x59c380(0x1e3)]:{},_0x24c6ef=_0x58c51b[_0x59c380(0x1e3)]&&typeof _0x58c51b[_0x59c380(0x1e3)]===_0x59c380(0x1c4)?_0x58c51b[_0x59c380(0x1e3)]:{},_0x50f2f0={..._0x51801f,..._0x24c6ef},_0x40100c={..._0x56b434,..._0x58c51b};delete _0x40100c[_0x59c380(0x1e1)];if(Object[_0x59c380(0x1c6)](_0x50f2f0)[_0x59c380(0x1ca)]>0x0)_0x40100c[_0x59c380(0x1e3)]=_0x50f2f0;if('defaultApp'in _0x58c51b)_0x40100c[_0x59c380(0x1ee)]=_0x58c51b['defaultApp'];else{if(Object[_0x59c380(0x1c6)](_0x24c6ef)[_0x59c380(0x1ca)]>0x0)_0x40100c['defaultApp']=Object[_0x59c380(0x1c6)](_0x24c6ef)[0x0];else{if(_0x56b434[_0x59c380(0x1ee)])_0x40100c[_0x59c380(0x1ee)]=_0x56b434[_0x59c380(0x1ee)];else{const _0x6eb1f1=Object[_0x59c380(0x1c6)](_0x51801f);if(_0x6eb1f1[_0x59c380(0x1ca)]>0x0)_0x40100c[_0x59c380(0x1ee)]=_0x6eb1f1[0x0];}}}return _0x40100c;}export function readRawConfigWithLayers(_0x168696){const _0x22700f=loadRawConfigLayers(_0x168696);return{'config':mergeRawConfigLayers(_0x22700f),'layers':_0x22700f};}export function readRawConfig(_0x12104c){return mergeRawConfigLayers(loadRawConfigLayers(_0x12104c));}export function readConfigFile(_0x39ea3f){const _0x2582da=a216_0x257138;return parseAndNormalizeConfig(_0x39ea3f,_0x2582da(0x1d8));}export function writeConfigFile(_0x586409,_0x5c97d0){const _0x2d3302=a216_0x257138,_0xf27576=dirname(_0x586409);!existsSync(_0xf27576)&&mkdirSync(_0xf27576,{'recursive':!![]});const _0x4f727a=_0x586409+'.tmp';try{writeFileSync(_0x4f727a,JSON[_0x2d3302(0x1ed)](_0x5c97d0,null,0x2)+'\x0a',{'encoding':_0x2d3302(0x1eb),'mode':0x180}),renameSync(_0x4f727a,_0x586409);}catch(_0x2c368f){try{unlinkSync(_0x4f727a);}catch{}throw _0x2c368f;}}export function resolveWriteConfigPath(_0x240fb3){const _0x5c0072=a216_0x257138,_0x4f71dc=_0x240fb3===_0x5c0072(0x1db)?process[_0x5c0072(0x1da)]():homedir(),_0xcddcd0=resolveConfigPath(_0x4f71dc);return _0xcddcd0??resolve(_0x4f71dc,NEW_CONFIG_NAME);}
|
|
1
|
+
const a216_0x321cf3=a216_0x44fe;(function(_0xa97887,_0x198a5e){const _0x26082e=a216_0x44fe,_0x1e8836=_0xa97887();while(!![]){try{const _0x22801e=-parseInt(_0x26082e(0xc4))/0x1+parseInt(_0x26082e(0xa0))/0x2+parseInt(_0x26082e(0xb5))/0x3+-parseInt(_0x26082e(0xba))/0x4*(-parseInt(_0x26082e(0xaf))/0x5)+parseInt(_0x26082e(0xb9))/0x6*(parseInt(_0x26082e(0xa5))/0x7)+-parseInt(_0x26082e(0xa7))/0x8+parseInt(_0x26082e(0xa3))/0x9*(parseInt(_0x26082e(0xca))/0xa);if(_0x22801e===_0x198a5e)break;else _0x1e8836['push'](_0x1e8836['shift']());}catch(_0x24fb58){_0x1e8836['push'](_0x1e8836['shift']());}}}(a216_0x3dbc,0x4b249));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME='.rabetbase.json';export const CONFIG_NAMES=['.rabetbase.json',a216_0x321cf3(0xb8),'.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a216_0x321cf3(0xae)](_0x5f50d7=>_0x5f50d7!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x361447){for(const _0x35a76e of CONFIG_NAMES){const _0xdefe14=resolve(_0x361447,_0x35a76e);if(existsSync(_0xdefe14))return _0xdefe14;}return undefined;}export function findProjectRootDirectory(_0x54e3d2=process['cwd']()){let _0x3cd97e=resolve(_0x54e3d2);const {root:_0x2cafe8}=parse(_0x3cd97e),_0x1cc04d=homedir();while(!![]){if(resolveConfigPath(_0x3cd97e)){if(_0x3cd97e===_0x1cc04d)break;return _0x3cd97e;}if(_0x3cd97e===_0x2cafe8||_0x3cd97e===_0x1cc04d)break;const _0xdd4970=dirname(_0x3cd97e);if(_0xdd4970===_0x3cd97e)break;_0x3cd97e=_0xdd4970;}return resolve(_0x54e3d2);}export function getProjectConfigPath(){const _0x348617=a216_0x321cf3;return resolveConfigPath(process[_0x348617(0xa8)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x4db8b0){const _0x505e33=a216_0x321cf3;if(!existsSync(_0x4db8b0))return{'status':_0x505e33(0xa2)};try{const _0x1b14b9=readFileSync(_0x4db8b0,{'encoding':_0x505e33(0xc0)});if(!_0x1b14b9?.['trim']())return{'status':_0x505e33(0xbc)};const _0x2150d2=JSON[_0x505e33(0xc8)](_0x1b14b9);return{'status':'ok','data':_0x2150d2};}catch(_0x105745){return{'status':_0x505e33(0xb1),'message':_0x105745 instanceof Error?_0x105745['message']:String(_0x105745)};}}function parseCliConfigJsonFile(_0x298801,_0x2715e0,_0x25cd43){const _0x1c1013=a216_0x321cf3,_0x587411=inspectCliConfigJsonFile(_0x298801);if(_0x587411[_0x1c1013(0xa6)]==='missing'||_0x587411[_0x1c1013(0xa6)]==='empty')return{};if(_0x587411[_0x1c1013(0xa6)]==='ok')return _0x587411[_0x1c1013(0xc2)];return _0x2715e0===_0x1c1013(0x9d)&&_0x25cd43&&console['error'](CLI_BIN_NAME+':\x20'+_0x25cd43+_0x1c1013(0xbb)+_0x298801+'\x0a\x20\x20'+_0x587411['message']),{};}function a216_0x44fe(_0x5f3762,_0x4465b0){_0x5f3762=_0x5f3762-0x9d;const _0x3dbcc7=a216_0x3dbc();let _0x44fe83=_0x3dbcc7[_0x5f3762];return _0x44fe83;}function normalizeLegacyConfigShape(_0x3a3d41){const _0x1920e7=a216_0x321cf3;if(!_0x3a3d41||typeof _0x3a3d41!==_0x1920e7(0xbe))return{'config':{},'migrated':![]};const _0x576e5d={..._0x3a3d41},_0x16e304=_0x576e5d[_0x1920e7(0xb2)]&&typeof _0x576e5d[_0x1920e7(0xb2)]===_0x1920e7(0xbe)?{..._0x576e5d[_0x1920e7(0xb2)]}:{},_0x4d12f0=Object[_0x1920e7(0xb7)](_0x16e304)['length'],_0x5e8035=_0x576e5d['appcode']||_0x576e5d[_0x1920e7(0xb0)];let _0x5bbf77=![];if(_0x5e8035&&_0x4d12f0===0x0){const _0x3f1cda=typeof _0x576e5d[_0x1920e7(0xc3)]==='string'&&_0x576e5d['defaultApp'][_0x1920e7(0xc7)]()?_0x576e5d[_0x1920e7(0xc3)]:String(_0x5e8035)[_0x1920e7(0xc7)]();_0x16e304[_0x3f1cda]={'appcode':String(_0x5e8035)[_0x1920e7(0xc7)](),..._0x576e5d[_0x1920e7(0xa9)]!=null?{'env':_0x576e5d[_0x1920e7(0xa9)]}:{},..._0x576e5d[_0x1920e7(0xad)]!=null?{'apiDir':_0x576e5d[_0x1920e7(0xad)]}:{},..._0x576e5d[_0x1920e7(0xa1)]!=null?{'cookie':_0x576e5d['cookie']}:{},..._0x576e5d[_0x1920e7(0xb3)]!=null?{'accessKey':_0x576e5d[_0x1920e7(0xb3)]}:{},..._0x576e5d[_0x1920e7(0xc9)]!=null?{'format':_0x576e5d[_0x1920e7(0xc9)]}:{},..._0x576e5d[_0x1920e7(0xcb)]!=null?{'pageSize':_0x576e5d[_0x1920e7(0xcb)]}:{},..._0x576e5d[_0x1920e7(0xbd)]!=null?{'riskLevel':_0x576e5d['riskLevel']}:{},..._0x576e5d[_0x1920e7(0x9e)]!=null?{'locale':_0x576e5d['locale']}:{}},_0x576e5d[_0x1920e7(0xb2)]=_0x16e304;if(!_0x576e5d['defaultApp'])_0x576e5d['defaultApp']=_0x3f1cda;_0x5bbf77=!![];}return('appcode'in _0x576e5d||_0x1920e7(0xb0)in _0x576e5d)&&(delete _0x576e5d[_0x1920e7(0xa4)],delete _0x576e5d[_0x1920e7(0xb0)],_0x5bbf77=!![]),{'config':_0x576e5d,'migrated':_0x5bbf77};}function writeNormalizedConfigIfNeeded(_0x2bcc94,_0x884bcd){const _0x5bdc55=a216_0x321cf3,_0x3a4680=JSON[_0x5bdc55(0xb4)](_0x884bcd,null,0x2)+'\x0a';if(normalizedWriteCache[_0x5bdc55(0xab)](_0x2bcc94)===_0x3a4680)return;writeConfigFile(_0x2bcc94,_0x884bcd),normalizedWriteCache[_0x5bdc55(0xbf)](_0x2bcc94,_0x3a4680);}function parseAndNormalizeConfig(_0x33d146,_0x440a7e,_0x382216){const _0x2055d4=a216_0x321cf3,_0x4383e3=parseCliConfigJsonFile(_0x33d146,_0x440a7e,_0x382216),_0x15855c=normalizeLegacyConfigShape(_0x4383e3);if(_0x15855c[_0x2055d4(0xac)])try{writeNormalizedConfigIfNeeded(_0x33d146,_0x15855c[_0x2055d4(0xb6)]);}catch{}return _0x15855c[_0x2055d4(0xb6)];}export function loadRawConfigLayers(_0x4dd375){const _0x116c8b=a216_0x321cf3;let _0x5d75cf={},_0x1c4a1c={};const _0x58cf49=resolveConfigPath(homedir());_0x58cf49&&(_0x5d75cf=parseAndNormalizeConfig(_0x58cf49,_0x116c8b(0x9d),_0x116c8b(0x9f)));const _0x379901=_0x4dd375??findProjectRootDirectory(),_0x5bbb95=resolveConfigPath(_0x379901);return _0x5bbb95&&(_0x1c4a1c=parseAndNormalizeConfig(_0x5bbb95,_0x116c8b(0x9d),_0x116c8b(0xaa))),{'globalPath':_0x58cf49,'projectPath':_0x5bbb95,'globalConfig':_0x5d75cf,'projectConfig':_0x1c4a1c};}const INHERIT_WHITELIST=['cookie',a216_0x321cf3(0xb3),a216_0x321cf3(0x9e),a216_0x321cf3(0xc9),a216_0x321cf3(0xbd),a216_0x321cf3(0xcb)];export function mergeRawConfigLayers(_0x41cad0){const _0x294066=a216_0x321cf3,{globalConfig:_0x26338f,projectConfig:_0x17732e}=_0x41cad0,_0x417c54=Object[_0x294066(0xb7)](_0x17732e)[_0x294066(0xc1)]>0x0;if(!_0x417c54)return mergeGlobalOnly(_0x26338f);if(_0x17732e['inherit']===!![])return mergeFullInherit(_0x26338f,_0x17732e);if(_0x17732e[_0x294066(0xc5)]===![])return mergeIsolated(_0x17732e);return mergeProjectFirst(_0x26338f,_0x17732e);}function mergeGlobalOnly(_0x52aa24){const _0x4af0a5=a216_0x321cf3,_0x165469={..._0x52aa24},_0x4fcea0=_0x52aa24[_0x4af0a5(0xb2)]&&typeof _0x52aa24['apps']===_0x4af0a5(0xbe)?_0x52aa24[_0x4af0a5(0xb2)]:{};if(Object[_0x4af0a5(0xb7)](_0x4fcea0)['length']>0x0)_0x165469['apps']=_0x4fcea0;if(_0x52aa24[_0x4af0a5(0xc3)])_0x165469[_0x4af0a5(0xc3)]=_0x52aa24['defaultApp'];else{const _0x17ce39=Object['keys'](_0x4fcea0);if(_0x17ce39[_0x4af0a5(0xc1)]>0x0)_0x165469[_0x4af0a5(0xc3)]=_0x17ce39[0x0];}return _0x165469;}function mergeIsolated(_0x113c60){const _0x4f1410=a216_0x321cf3,_0x962859={..._0x113c60};delete _0x962859[_0x4f1410(0xc5)];const _0x1e4085=_0x113c60[_0x4f1410(0xb2)]&&typeof _0x113c60[_0x4f1410(0xb2)]===_0x4f1410(0xbe)?_0x113c60['apps']:{};Object[_0x4f1410(0xb7)](_0x1e4085)['length']>0x0?_0x962859[_0x4f1410(0xb2)]=_0x1e4085:delete _0x962859[_0x4f1410(0xb2)];if(_0x4f1410(0xc3)in _0x113c60)_0x962859['defaultApp']=_0x113c60[_0x4f1410(0xc3)];else Object[_0x4f1410(0xb7)](_0x1e4085)[_0x4f1410(0xc1)]>0x0?_0x962859[_0x4f1410(0xc3)]=Object[_0x4f1410(0xb7)](_0x1e4085)[0x0]:delete _0x962859['defaultApp'];return _0x962859;}function mergeProjectFirst(_0x156647,_0xff8773){const _0x114c09=a216_0x321cf3,_0x36ff14={..._0xff8773};delete _0x36ff14[_0x114c09(0xc5)];for(const _0x245556 of INHERIT_WHITELIST){!(_0x245556 in _0x36ff14)&&_0x245556 in _0x156647&&(_0x36ff14[_0x245556]=_0x156647[_0x245556]);}const _0x49f09d=_0xff8773[_0x114c09(0xb2)]&&typeof _0xff8773[_0x114c09(0xb2)]==='object'?_0xff8773['apps']:{};Object[_0x114c09(0xb7)](_0x49f09d)[_0x114c09(0xc1)]>0x0?_0x36ff14['apps']=_0x49f09d:delete _0x36ff14['apps'];if(_0x114c09(0xc3)in _0xff8773)_0x36ff14[_0x114c09(0xc3)]=_0xff8773[_0x114c09(0xc3)];else Object[_0x114c09(0xb7)](_0x49f09d)[_0x114c09(0xc1)]>0x0?_0x36ff14[_0x114c09(0xc3)]=Object[_0x114c09(0xb7)](_0x49f09d)[0x0]:delete _0x36ff14['defaultApp'];return _0x36ff14;}function mergeFullInherit(_0x2f6f6b,_0xb23c2e){const _0x42ba6b=a216_0x321cf3,_0x14ca1c=_0x2f6f6b[_0x42ba6b(0xb2)]&&typeof _0x2f6f6b[_0x42ba6b(0xb2)]===_0x42ba6b(0xbe)?_0x2f6f6b[_0x42ba6b(0xb2)]:{},_0x184aec=_0xb23c2e[_0x42ba6b(0xb2)]&&typeof _0xb23c2e[_0x42ba6b(0xb2)]==='object'?_0xb23c2e[_0x42ba6b(0xb2)]:{},_0x42221d={..._0x14ca1c,..._0x184aec},_0x3486e2={..._0x2f6f6b,..._0xb23c2e};delete _0x3486e2[_0x42ba6b(0xc5)];if(Object[_0x42ba6b(0xb7)](_0x42221d)[_0x42ba6b(0xc1)]>0x0)_0x3486e2[_0x42ba6b(0xb2)]=_0x42221d;if(_0x42ba6b(0xc3)in _0xb23c2e)_0x3486e2['defaultApp']=_0xb23c2e[_0x42ba6b(0xc3)];else{if(Object[_0x42ba6b(0xb7)](_0x184aec)[_0x42ba6b(0xc1)]>0x0)_0x3486e2[_0x42ba6b(0xc3)]=Object[_0x42ba6b(0xb7)](_0x184aec)[0x0];else{if(_0x2f6f6b[_0x42ba6b(0xc3)])_0x3486e2[_0x42ba6b(0xc3)]=_0x2f6f6b['defaultApp'];else{const _0x34eb42=Object[_0x42ba6b(0xb7)](_0x14ca1c);if(_0x34eb42[_0x42ba6b(0xc1)]>0x0)_0x3486e2[_0x42ba6b(0xc3)]=_0x34eb42[0x0];}}}return _0x3486e2;}export function readRawConfigWithLayers(_0x28cc9f){const _0x69118f=loadRawConfigLayers(_0x28cc9f);return{'config':mergeRawConfigLayers(_0x69118f),'layers':_0x69118f};}export function readRawConfig(_0x17cb3b){return mergeRawConfigLayers(loadRawConfigLayers(_0x17cb3b));}function a216_0x3dbc(){const _0x2aef60=['5620707ligBhs','appcode','125237PcnMkk','status','3332040aNvEWS','cwd','env','Project','get','migrated','apiDir','filter','550fbaexL','app','error','apps','accessKey','stringify','71001dKmnns','config','keys','.lovrabet.json','42yzfZyR','1476AFdNMi','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','empty','riskLevel','object','set','utf8','length','data','defaultApp','554054qhFSWA','inherit','.tmp','trim','parse','format','10jUatIa','pageSize','warn','locale','Global','928654AwtDOo','cookie','missing'];a216_0x3dbc=function(){return _0x2aef60;};return a216_0x3dbc();}export function readConfigFile(_0x15dc0a){return parseAndNormalizeConfig(_0x15dc0a,'silent');}export function writeConfigFile(_0x1149e7,_0x404d64){const _0x144db8=a216_0x321cf3,_0x1af1d8=dirname(_0x1149e7);!existsSync(_0x1af1d8)&&mkdirSync(_0x1af1d8,{'recursive':!![]});const _0x47db2e=_0x1149e7+_0x144db8(0xc6);try{writeFileSync(_0x47db2e,JSON[_0x144db8(0xb4)](_0x404d64,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x47db2e,_0x1149e7);}catch(_0x55b334){try{unlinkSync(_0x47db2e);}catch{}throw _0x55b334;}}export function resolveWriteConfigPath(_0x5f4648){const _0x4b39aa=_0x5f4648==='project'?process['cwd']():homedir(),_0x228ecc=resolveConfigPath(_0x4b39aa);return _0x228ecc??resolve(_0x4b39aa,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a217_0x494613=a217_0x45f3;(function(_0x5b973c,_0x382a4b){const _0x532bfa=a217_0x45f3,_0xc235c0=_0x5b973c();while(!![]){try{const _0x389f92=parseInt(_0x532bfa(0x1d5))/0x1*(parseInt(_0x532bfa(0x1fb))/0x2)+-parseInt(_0x532bfa(0x1e5))/0x3*(-parseInt(_0x532bfa(0x1fc))/0x4)+-parseInt(_0x532bfa(0x1e8))/0x5*(-parseInt(_0x532bfa(0x1e7))/0x6)+parseInt(_0x532bfa(0x1ee))/0x7+parseInt(_0x532bfa(0x1ec))/0x8+parseInt(_0x532bfa(0x1f2))/0x9+parseInt(_0x532bfa(0x1d7))/0xa*(-parseInt(_0x532bfa(0x1db))/0xb);if(_0x389f92===_0x382a4b)break;else _0xc235c0['push'](_0xc235c0['shift']());}catch(_0x208d5a){_0xc235c0['push'](_0xc235c0['shift']());}}}(a217_0x51a6,0x3a323));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';function a217_0x51a6(){const _0x3961e4=['18220aBikLU','project','argv','apps','11143xIEqYI','join','object','raw','userDomain','./constant/domain.js','api.ts','projectConfig','filter','setLogPath','1282620fQqNIV','apiDir','865056jIISdR','10FnYylg','slice','setRawCommand','app','3369816SDJWmM','replace','678083CEMdiR','appcode','cookie','template_base_url','4284810LFMWRP','runtimeDomain','values','apiDomain','find','defaultApp','cwd','entries','keys','2kbPVup','4WfJMax','globalConfig','string','length','trim','merged','./constant/env.js','./utils/is-non-interactive.js','373979WtUjdI','env'];a217_0x51a6=function(){return _0x3961e4;};return a217_0x51a6();}import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';function a217_0x45f3(_0x373435,_0x3ce89f){_0x373435=_0x373435-0x1d2;const _0x51a6b3=a217_0x51a6();let _0x45f3e7=_0x51a6b3[_0x373435];return _0x45f3e7;}export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x15c50a){return process.env[`RABETBASE_${_0x15c50a}`]||process.env[`LOVRABET_${_0x15c50a}`]||undefined;}function optionalString(_0x50d654){const _0x1f7a4b=a217_0x45f3;return typeof _0x50d654==='string'&&_0x50d654[_0x1f7a4b(0x200)]()?_0x50d654[_0x1f7a4b(0x200)]():undefined;}export async function createContext(_0x22a8cd){const _0x42fb1a=a217_0x45f3,{config:_0x11fab4,layers:_0x497c58}=readRawConfigWithLayers(),_0x1c1869=buildConfig(_0x11fab4,_0x22a8cd,_0x497c58);await initGlobalEnvironment(_0x1c1869);const {getUserDomain:_0x3064f5,getApiDomain:_0x45f939}=await import(_0x42fb1a(0x1e0)),_0x162043={'apiDomain':_0x45f939(),'userDomain':_0x3064f5()},_0x38ec7b=await buildAuth(_0x1c1869);logger[_0x42fb1a(0x1e4)](process['cwd']());const _0x40fef7=(CLI_BIN_NAME+'\x20'+process[_0x42fb1a(0x1d9)][_0x42fb1a(0x1e9)](0x2)[_0x42fb1a(0x1dc)]('\x20'))['trim']();logger[_0x42fb1a(0x1ea)](_0x40fef7);const {isNonInteractive:_0x33588d}=await import(_0x42fb1a(0x1d4)),_0x47b3ec=_0x33588d(_0x22a8cd);return{'config':_0x1c1869,'auth':_0x38ec7b,'logger':logger,'env':_0x162043,'nonInteractive':_0x47b3ec};}export function buildConfigFromFlags(_0x220df4){const {config:_0x144923,layers:_0xb93082}=readRawConfigWithLayers();return buildConfig(_0x144923,_0x220df4,_0xb93082);}export async function initGlobalEnvironment(_0x4ccfdd){const _0x59027a=a217_0x45f3,{initEnv:_0x48343e}=await import(_0x59027a(0x1d3));_0x48343e(_0x4ccfdd[_0x59027a(0x1d6)]);const {initDomains:_0x55f0ea}=await import(_0x59027a(0x1e0));_0x55f0ea({'apiDomain':optionalString(_0x4ccfdd[_0x59027a(0x1de)]?.[_0x59027a(0x1f5)]),'userDomain':optionalString(_0x4ccfdd[_0x59027a(0x1de)]?.[_0x59027a(0x1df)]),'runtimeDomain':optionalString(_0x4ccfdd[_0x59027a(0x1de)]?.[_0x59027a(0x1f3)])});}export function getConfigAppCode(_0x3338bc){const _0x20e6df=a217_0x45f3,_0x11b67b=readRawConfig(_0x3338bc);if(_0x11b67b['apps']&&typeof _0x11b67b['apps']===_0x20e6df(0x1dd)){const _0x529080=_0x11b67b[_0x20e6df(0x1f7)];if(_0x529080&&_0x11b67b['apps'][_0x529080]?.['appcode'])return String(_0x11b67b[_0x20e6df(0x1da)][_0x529080][_0x20e6df(0x1ef)])[_0x20e6df(0x200)]();const _0x52e79c=Object[_0x20e6df(0x1f4)](_0x11b67b[_0x20e6df(0x1da)])[0x0];if(_0x52e79c?.['appcode'])return String(_0x52e79c['appcode'])['trim']();}const _0x2276fc=_0x11b67b['appcode']||_0x11b67b[_0x20e6df(0x1eb)];if(typeof _0x2276fc!==_0x20e6df(0x1fe)||_0x2276fc[_0x20e6df(0x200)]()==='')return undefined;return _0x2276fc[_0x20e6df(0x200)]();}export function getMultiAppConfigs(_0x5959c2=a217_0x494613(0x1d8),_0x3d1213){const _0x10dd78=a217_0x494613,_0x344fc9=loadRawConfigLayers(_0x3d1213);let _0x26ad7f,_0x200110;if(_0x5959c2===_0x10dd78(0x1d2)){const _0x3a051e=_0x344fc9[_0x10dd78(0x1fd)][_0x10dd78(0x1da)]&&typeof _0x344fc9['globalConfig']['apps']===_0x10dd78(0x1dd)?_0x344fc9[_0x10dd78(0x1fd)][_0x10dd78(0x1da)]:{},_0x5daacf=_0x344fc9['projectConfig'][_0x10dd78(0x1da)]&&typeof _0x344fc9['projectConfig'][_0x10dd78(0x1da)]===_0x10dd78(0x1dd)?_0x344fc9['projectConfig']['apps']:{};_0x26ad7f={..._0x3a051e,..._0x5daacf};const _0x1fd229=readRawConfig(_0x3d1213);_0x200110=_0x1fd229['defaultApp'];}else _0x26ad7f=_0x344fc9[_0x10dd78(0x1e2)][_0x10dd78(0x1da)],_0x200110=_0x344fc9[_0x10dd78(0x1e2)][_0x10dd78(0x1f7)];if(!_0x26ad7f||typeof _0x26ad7f!==_0x10dd78(0x1dd)||Object[_0x10dd78(0x1fa)](_0x26ad7f)[_0x10dd78(0x1ff)]===0x0)return null;return Object[_0x10dd78(0x1f9)](_0x26ad7f)['map'](([_0x2c3a09,_0x4caea8])=>({'name':_0x2c3a09,'appcode':_0x4caea8?.[_0x10dd78(0x1ef)]||'','isDefault':_0x2c3a09===_0x200110,'env':_0x4caea8?.[_0x10dd78(0x1d6)],'apiDir':_0x4caea8?.[_0x10dd78(0x1e6)],'cookie':_0x4caea8?.[_0x10dd78(0x1f0)]||undefined}))[_0x10dd78(0x1e3)](_0x338bb3=>_0x338bb3[_0x10dd78(0x1ef)]);}export function getTemplateBaseUrl(_0x21f1e9){const _0x230d96=a217_0x494613,_0x579ac0=readRawConfig(_0x21f1e9);if(_0x579ac0[_0x230d96(0x1f1)]&&typeof _0x579ac0[_0x230d96(0x1f1)]===_0x230d96(0x1fe))return _0x579ac0[_0x230d96(0x1f1)][_0x230d96(0x1ed)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x248aa0,_0x429948,_0x5c73b4){return{...resolveAppConfig({'raw':_0x248aa0,'flags':_0x429948,'layers':_0x5c73b4,'readEnv':env}),'raw':_0x248aa0};}export function resolveApiFilePath(_0x255212,_0x4ebc8f){const _0xe75885=a217_0x494613,_0x3e0e8c=resolve(process[_0xe75885(0x1f8)](),_0x255212),_0x211c80=resolve(_0x3e0e8c,_0xe75885(0x1e1));if(!_0x4ebc8f)return _0x211c80;const _0x554c99=readRawConfig(),_0x1087ad=_0x554c99['apps']&&typeof _0x554c99[_0xe75885(0x1da)]===_0xe75885(0x1dd)?_0x554c99['apps']:{},_0x2b6f00=Object[_0xe75885(0x1f9)](_0x1087ad)[_0xe75885(0x1f6)](([,_0x2df08e])=>_0x2df08e?.[_0xe75885(0x1ef)]===_0x4ebc8f);if(!_0x2b6f00)return _0x211c80;const [_0x2ea803,_0x14e2c7]=_0x2b6f00,_0x26e58b=typeof _0x554c99[_0xe75885(0x1f7)]===_0xe75885(0x1fe)?_0x554c99[_0xe75885(0x1f7)]:undefined;if(_0x14e2c7?.[_0xe75885(0x1e6)])return _0x211c80;if(_0x26e58b&&_0x2ea803!==_0x26e58b)return resolve(_0x3e0e8c,_0x2ea803+'-api.ts');return _0x211c80;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4533de,_0x489d78){const _0x40f887=a218_0x56d1,_0x5a8833=_0x4533de();while(!![]){try{const _0x3ec467=parseInt(_0x40f887(0xb4))/0x1+-parseInt(_0x40f887(0xb9))/0x2*(-parseInt(_0x40f887(0xb1))/0x3)+-parseInt(_0x40f887(0xbe))/0x4*(parseInt(_0x40f887(0xb3))/0x5)+parseInt(_0x40f887(0xc0))/0x6+parseInt(_0x40f887(0xb6))/0x7+-parseInt(_0x40f887(0xba))/0x8*(parseInt(_0x40f887(0xb2))/0x9)+-parseInt(_0x40f887(0xbf))/0xa;if(_0x3ec467===_0x489d78)break;else _0x5a8833['push'](_0x5a8833['shift']());}catch(_0xeb9c54){_0x5a8833['push'](_0x5a8833['shift']());}}}(a218_0x2ee2,0x1f05f));function a218_0x56d1(_0x5bee17,_0xe3446c){_0x5bee17=_0x5bee17-0xb1;const _0x2ee2f2=a218_0x2ee2();let _0x56d1f5=_0x2ee2f2[_0x5bee17];return _0x56d1f5;}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x141a60){const _0x15d544=a218_0x56d1,_0x287e11=[],_0x2e1af5=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x3c4c5d;while((_0x3c4c5d=_0x2e1af5[_0x15d544(0xb7)](_0x141a60))!==null){_0x287e11[_0x15d544(0xbd)]({'datasetCode':_0x3c4c5d[0x1],'tableName':_0x3c4c5d[0x2],'name':_0x3c4c5d[0x3],'alias':_0x3c4c5d[0x4]});}return _0x287e11;}export function loadAliasMap(_0x128c83,_0x47d755,_0x27c4f3){const _0x306d63=a218_0x56d1,_0x1af4ba=_0x27c4f3??resolve(process['cwd'](),_0x128c83,_0x306d63(0xb8));if(cache[_0x306d63(0xb5)](_0x1af4ba))return cache[_0x306d63(0xbb)](_0x1af4ba);if(!existsSync(_0x1af4ba))return cache[_0x306d63(0xbc)](_0x1af4ba,[]),[];try{const _0x2426fe=readFileSync(_0x1af4ba,_0x306d63(0xc1)),_0x559b79=parseApiFile(_0x2426fe);return cache[_0x306d63(0xbc)](_0x1af4ba,_0x559b79),_0x559b79;}catch{return cache[_0x306d63(0xbc)](_0x1af4ba,[]),[];}}export function resolveAlias(_0x4f60d9,_0x4801ec,_0x4b3cae,_0x5c0279){const _0x5448b3=a218_0x56d1;if(!_0x4801ec)return undefined;const _0x3244d6=loadAliasMap(_0x4f60d9,_0x4b3cae,_0x5c0279),_0x3c9b27=_0x3244d6['find'](_0x232291=>_0x232291['alias']===_0x4801ec);return _0x3c9b27?.[_0x5448b3(0xc2)];}export function listAliases(_0x2f98ae,_0x31e3c4,_0xbc9231){return loadAliasMap(_0x2f98ae,_0x31e3c4,_0xbc9231);}function a218_0x2ee2(){const _0x932a28=['get','set','push','1804tiQyFc','1226640lAZACU','1137414bgXHYo','utf-8','datasetCode','1272TcDacs','18VogGym','2265oiNPTh','88315mVbVOx','has','242746FYyQSQ','exec','api.ts','842GUBeWl','148112lMosfN'];a218_0x2ee2=function(){return _0x932a28;};return a218_0x2ee2();}
|