@lovrabet/rabetbase-cli 2.3.12 → 2.3.13-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.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/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.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/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.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/logs/index.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/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/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/update.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.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/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.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/non-interactive.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/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.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/save.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/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.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/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.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.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/copy-directory.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/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a185_0x5ea4c0=a185_0x3903;(function(_0xd3d804,_0x27b0fa){const _0x120e86=a185_0x3903,_0x22b290=_0xd3d804();while(!![]){try{const _0xeddccb=parseInt(_0x120e86(0xc6))/0x1*(-parseInt(_0x120e86(0x121))/0x2)+parseInt(_0x120e86(0xfc))/0x3*(parseInt(_0x120e86(0xb3))/0x4)+parseInt(_0x120e86(0x115))/0x5+-parseInt(_0x120e86(0x107))/0x6*(parseInt(_0x120e86(0x11e))/0x7)+-parseInt(_0x120e86(0xf8))/0x8*(-parseInt(_0x120e86(0xe1))/0x9)+-parseInt(_0x120e86(0x108))/0xa*(parseInt(_0x120e86(0xde))/0xb)+parseInt(_0x120e86(0xca))/0xc;if(_0xeddccb===_0x27b0fa)break;else _0x22b290['push'](_0x22b290['shift']());}catch(_0xcee716){_0x22b290['push'](_0x22b290['shift']());}}}(a185_0x11fa,0x26702));export const CLI_BIN_NAME=a185_0x5ea4c0(0xdb);function a185_0x3903(_0x10b625,_0x2a9bbd){_0x10b625=_0x10b625-0xb1;const _0x11fa60=a185_0x11fa();let _0x39039e=_0x11fa60[_0x10b625];return _0x39039e;}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a185_0x5ea4c0(0xeb);export const GLOBAL_FLAGS=[{'name':a185_0x5ea4c0(0xe5),'meowKey':a185_0x5ea4c0(0xe5),'type':'string','description':'Override\x20appcode','hint':'<code>'},{'name':a185_0x5ea4c0(0xec),'meowKey':a185_0x5ea4c0(0xec),'type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a185_0x5ea4c0(0xb9)},{'name':a185_0x5ea4c0(0x10f),'meowKey':a185_0x5ea4c0(0x10f),'type':'string','description':a185_0x5ea4c0(0x120),'hint':'production\x20|\x20daily'},{'name':'format','meowKey':a185_0x5ea4c0(0xdf),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xfa),'hint':a185_0x5ea4c0(0xe0)},{'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':a185_0x5ea4c0(0xf1)},{'name':a185_0x5ea4c0(0xb4),'meowKey':'dryRun','type':a185_0x5ea4c0(0xe4),'description':a185_0x5ea4c0(0xf3)},{'name':a185_0x5ea4c0(0xf9),'meowKey':'yes','type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a185_0x5ea4c0(0x125),'meowKey':a185_0x5ea4c0(0xe8),'type':a185_0x5ea4c0(0xe4),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a185_0x5ea4c0(0x113),'type':a185_0x5ea4c0(0xe4),'description':a185_0x5ea4c0(0x109)},{'name':a185_0x5ea4c0(0xea),'meowKey':a185_0x5ea4c0(0xea),'type':a185_0x5ea4c0(0xe4),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a185_0x5ea4c0(0xe4),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a185_0x5ea4c0(0xc0),'type':a185_0x5ea4c0(0xe4),'description':a185_0x5ea4c0(0x11f)},{'name':a185_0x5ea4c0(0xc3),'meowKey':a185_0x5ea4c0(0xc3),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x116),'hidden':!![]},{'name':a185_0x5ea4c0(0xff),'meowKey':'title','type':'string','description':a185_0x5ea4c0(0xd4),'hidden':!![]},{'name':a185_0x5ea4c0(0x127),'meowKey':a185_0x5ea4c0(0x127),'type':a185_0x5ea4c0(0xe4),'description':a185_0x5ea4c0(0x10a),'hidden':!![]},{'name':a185_0x5ea4c0(0xd8),'meowKey':a185_0x5ea4c0(0xd8),'type':a185_0x5ea4c0(0xe4),'description':'Watch\x20mode','hidden':!![]},{'name':a185_0x5ea4c0(0xdd),'meowKey':a185_0x5ea4c0(0xdd),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xc8),'hidden':!![]},{'name':'params','meowKey':a185_0x5ea4c0(0x119),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x101),'hidden':!![]},{'name':'datasetcode','meowKey':'datasetcode','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xb6),'hidden':!![]},{'name':a185_0x5ea4c0(0x12c),'meowKey':a185_0x5ea4c0(0x12c),'type':a185_0x5ea4c0(0xe4),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a185_0x5ea4c0(0x114),'meowKey':a185_0x5ea4c0(0x100),'type':'boolean','description':a185_0x5ea4c0(0x11a),'hidden':!![]},{'name':'id','meowKey':'id','type':a185_0x5ea4c0(0xe9),'description':'Record\x20ID','hidden':!![]},{'name':a185_0x5ea4c0(0x122),'meowKey':a185_0x5ea4c0(0x122),'type':'string','description':a185_0x5ea4c0(0xe7),'hidden':!![]},{'name':a185_0x5ea4c0(0xf6),'meowKey':a185_0x5ea4c0(0xf6),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xb7),'hidden':!![]},{'name':a185_0x5ea4c0(0x11b),'meowKey':'sqlcode','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xc7),'hidden':!![]},{'name':'sql-name','meowKey':a185_0x5ea4c0(0xc5),'type':a185_0x5ea4c0(0xe9),'description':'SQL\x20name','hidden':!![]},{'name':a185_0x5ea4c0(0x10d),'meowKey':a185_0x5ea4c0(0x10d),'type':'string','description':a185_0x5ea4c0(0xf2),'hidden':!![]},{'name':'db-id','meowKey':a185_0x5ea4c0(0xcd),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x12a),'hidden':!![]},{'name':a185_0x5ea4c0(0xce),'meowKey':'dbid','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x12a),'hidden':!![]},{'name':a185_0x5ea4c0(0x102),'meowKey':a185_0x5ea4c0(0x102),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x11d),'hidden':!![]},{'name':a185_0x5ea4c0(0x128),'meowKey':a185_0x5ea4c0(0xe2),'type':a185_0x5ea4c0(0xe9),'description':'Description\x20file','hidden':!![]},{'name':a185_0x5ea4c0(0xd5),'meowKey':'page','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x10e),'hidden':!![]},{'name':a185_0x5ea4c0(0x129),'meowKey':'pagesize','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xc2),'hidden':!![]},{'name':a185_0x5ea4c0(0x12b),'meowKey':a185_0x5ea4c0(0x12b),'type':'string','description':a185_0x5ea4c0(0xed),'hidden':!![]},{'name':a185_0x5ea4c0(0x123),'meowKey':a185_0x5ea4c0(0x123),'type':a185_0x5ea4c0(0xe9),'description':'Code\x20filter','hidden':!![]},{'name':a185_0x5ea4c0(0x103),'meowKey':a185_0x5ea4c0(0x103),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x104),'hidden':!![]},{'name':a185_0x5ea4c0(0x112),'meowKey':a185_0x5ea4c0(0x112),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x126),'hidden':!![]},{'name':a185_0x5ea4c0(0xd9),'meowKey':a185_0x5ea4c0(0xd9),'type':'string','description':a185_0x5ea4c0(0x10b),'hidden':!![]},{'name':a185_0x5ea4c0(0xd7),'meowKey':a185_0x5ea4c0(0xd7),'type':a185_0x5ea4c0(0xe9),'description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':'skipImports','type':a185_0x5ea4c0(0xe4),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a185_0x5ea4c0(0x110),'meowKey':a185_0x5ea4c0(0x110),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xb8),'hidden':!![]},{'name':a185_0x5ea4c0(0xf7),'meowKey':a185_0x5ea4c0(0xf7),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xe3),'hidden':!![]},{'name':a185_0x5ea4c0(0xcb),'meowKey':a185_0x5ea4c0(0xcb),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xd1),'hidden':!![]},{'name':'stdin','meowKey':a185_0x5ea4c0(0xc9),'type':'boolean','description':a185_0x5ea4c0(0xb2),'hidden':!![]},{'name':a185_0x5ea4c0(0xf4),'meowKey':'fromEnv','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x11c),'hidden':!![]},{'name':a185_0x5ea4c0(0x118),'meowKey':a185_0x5ea4c0(0x118),'type':'boolean','description':a185_0x5ea4c0(0xb1),'hidden':!![]},{'name':a185_0x5ea4c0(0xdc),'meowKey':'force','type':a185_0x5ea4c0(0xe4),'description':'Force\x20overwrite','hidden':!![]},{'name':a185_0x5ea4c0(0x124),'meowKey':a185_0x5ea4c0(0x124),'type':a185_0x5ea4c0(0xe4),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a185_0x5ea4c0(0xc4),'meowKey':a185_0x5ea4c0(0xc4),'type':a185_0x5ea4c0(0xe4),'description':'Use\x20remote','hidden':!![]},{'name':a185_0x5ea4c0(0xe6),'meowKey':a185_0x5ea4c0(0xe6),'type':a185_0x5ea4c0(0xe4),'description':a185_0x5ea4c0(0xfe),'hidden':!![]},{'name':a185_0x5ea4c0(0xd0),'meowKey':a185_0x5ea4c0(0xc1),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xef),'hidden':!![]},{'name':a185_0x5ea4c0(0xd3),'meowKey':a185_0x5ea4c0(0xd3),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x105),'hidden':!![]},{'name':'parent-id','meowKey':a185_0x5ea4c0(0xfd),'type':a185_0x5ea4c0(0xe9),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a185_0x5ea4c0(0xba),'meowKey':a185_0x5ea4c0(0xba),'type':'string','description':a185_0x5ea4c0(0x12d),'hidden':!![]},{'name':a185_0x5ea4c0(0x106),'meowKey':a185_0x5ea4c0(0xda),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xf5),'hidden':!![]},{'name':a185_0x5ea4c0(0xfb),'meowKey':'expectPath','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xcc),'hidden':!![]},{'name':a185_0x5ea4c0(0xd6),'meowKey':a185_0x5ea4c0(0xbf),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x10c),'hidden':!![]},{'name':a185_0x5ea4c0(0xcf),'meowKey':'menuIds','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xd2),'hidden':!![]},{'name':a185_0x5ea4c0(0xbe),'meowKey':'taskId','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xee),'hidden':!![]},{'name':a185_0x5ea4c0(0xbb),'meowKey':a185_0x5ea4c0(0xbc),'type':'string','description':a185_0x5ea4c0(0x10b),'hidden':!![]},{'name':a185_0x5ea4c0(0x111),'meowKey':a185_0x5ea4c0(0xf0),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xbd),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a185_0x5ea4c0(0xe5),a185_0x5ea4c0(0xec),a185_0x5ea4c0(0x10f),a185_0x5ea4c0(0xdf),'jq',a185_0x5ea4c0(0xb4),a185_0x5ea4c0(0xf9),'non-interactive','ci']);export function buildMeowFlags(){const _0x30c333=a185_0x5ea4c0;return Object['fromEntries'](GLOBAL_FLAGS[_0x30c333(0x117)](_0x10f750=>[_0x10f750[_0x30c333(0xb5)],{'type':_0x10f750['type']}]));}function a185_0x11fa(){const _0x2e0a6a=['File\x20path','Config\x20key','<name>','sort','operation-type','operationType','Function\x20node','task-id','expectedChildrenCount','help','expectedCount','Page\x20size','name','remote','sqlName','3VIEESz','SQL\x20code','Output\x20path','stdin','1217856PQAlkg','tags','Expected\x20current\x20menu\x20path','dbId','dbid','menu-ids','expected-count','Tags','Comma-separated\x20menu\x20IDs','label','Title','page','expected-children-count','target','watch','operation','expectParentId','rabetbase','force','output','1034sGRhSz','format','json\x20|\x20pretty\x20|\x20compress','2168262YYuQMS','descriptionFile','Config\x20value','boolean','appcode','verbose','Type\x20filter','nonInteractive','string','project','@lovrabet/rabetbase-cli','app','Keyword\x20filter','Asynchronous\x20task\x20ID','Expected\x20affected\x20count','functionNode','<expr>','SQL\x20name','Preview\x20operation\x20without\x20executing','from-env','Expected\x20current\x20parent\x20menu\x20id','file','value','8QDsgxj','yes','Output\x20format','expect-path','681shVarq','parentId','Verbose\x20output','title','enableBffSave','JSON\x20params','description','sql','SQL\x20string','Menu\x20label','expect-parent-id','1792662trNCJl','11840gAQXrR','Use\x20global\x20config\x20scope','Clear','Operation\x20type','Expected\x20current\x20child\x20count','sqlname','Page\x20number','env','key','function-node','schemas','global','enable-bff-save','499845zzeXxw','Name','map','reveal','params','Enable\x20BFF\x20save','sqlcode','Read\x20value\x20from\x20environment\x20variable','Description','7ejOMHY','Show\x20help','Environment','19026iwvcSG','type','code','confirm','non-interactive','Schemas','clear','description-file','pagesize','DB\x20ID','keyword','all','Menu\x20sort\x20value','Reveal\x20sensitive\x20value','Read\x20value\x20from\x20stdin','2708ucLhwS','dry-run','meowKey','Dataset\x20code'];a185_0x11fa=function(){return _0x2e0a6a;};return a185_0x11fa();}
|
|
1
|
+
function a185_0x3ad6(){const _0x5e3c91=['code','sort','sqlName','Name','pagesize','18uiTaoE','Use\x20project\x20config\x20scope','Force\x20non-interactive\x20mode\x20(CI)','menuIds','Reveal\x20sensitive\x20value','Environment','Target\x20path','6314910hZjooC','map','Apply\x20to\x20all','format','3332755EiutjN','Force\x20overwrite','DB\x20ID','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Read\x20value\x20from\x20environment\x20variable','SQL\x20name','dbid','string','sql','8075344WKAClp','clear','key','Output\x20format','description','Menu\x20label','global','fromEnv','non-interactive','sql-name','Override\x20appcode','title','sqlname','operation-type','meowKey','Alias\x20for\x20--non-interactive','schemas','<expr>','parentId','page','Enable\x20BFF\x20save','help','from-env','expected-count','Page\x20number','tags','442288RPrelE','Watch\x20mode','expectParentId','file','project','Type\x20filter','Dataset\x20code','Page\x20size','Select\x20app\x20profile\x20by\x20name','production\x20|\x20daily','Keyword\x20filter','Code\x20filter','json\x20|\x20pretty\x20|\x20compress','boolean','1490282cJNQCZ','expected-children-count','Skip\x20import\x20generation','Menu\x20sort\x20value','operationType','expectedCount','Expected\x20affected\x20count','Operation\x20type','Schemas','enable-bff-save','keyword','Skip\x20confirmation\x20for\x20high-risk\x20writes','force','Show\x20help','remote','target','rabetbase','Asynchronous\x20task\x20ID','<code>','Verbose\x20output','dryRun','SQL\x20code','parent-id','expect-parent-id','watch','@lovrabet/rabetbase-cli','value','expectPath','function-node','Expected\x20current\x20menu\x20path','1347857LgCDiQ','fromEntries','dbId','nonInteractive','yes','stdin','app','description-file','type','reveal','datasetcode','File\x20path','Title','Config\x20value','Expected\x20current\x20parent\x20menu\x20id','params','Tags','Output\x20path','JSON\x20params','Function\x20node','Clear','SQL\x20string','appcode','dry-run','confirm','output','label','skip-imports','Preview\x20operation\x20without\x20executing','sqlcode','verbose','env','name','60906gNFTCQ','Description\x20file','172wRqMGS','all','db-id'];a185_0x3ad6=function(){return _0x5e3c91;};return a185_0x3ad6();}const a185_0x4529ff=a185_0x3327;(function(_0x1a6dd7,_0x37597b){const _0x541947=a185_0x3327,_0x5939a2=_0x1a6dd7();while(!![]){try{const _0x1cbbd9=-parseInt(_0x541947(0xf7))/0x1+-parseInt(_0x541947(0x80))/0x2+-parseInt(_0x541947(0xbf))/0x3*(parseInt(_0x541947(0xc1))/0x4)+-parseInt(_0x541947(0xd4))/0x5+parseInt(_0x541947(0xd0))/0x6+parseInt(_0x541947(0x9e))/0x7+parseInt(_0x541947(0xdd))/0x8*(parseInt(_0x541947(0xc9))/0x9);if(_0x1cbbd9===_0x37597b)break;else _0x5939a2['push'](_0x5939a2['shift']());}catch(_0x5cf2ee){_0x5939a2['push'](_0x5939a2['shift']());}}}(a185_0x3ad6,0x8314a));export const CLI_BIN_NAME=a185_0x4529ff(0x90);function a185_0x3327(_0x546971,_0x3a444a){_0x546971=_0x546971-0x7c;const _0x3ad6fe=a185_0x3ad6();let _0x332798=_0x3ad6fe[_0x546971];return _0x332798;}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a185_0x4529ff(0x99);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a185_0x4529ff(0xb4),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xe7),'hint':a185_0x4529ff(0x92)},{'name':a185_0x4529ff(0xa4),'meowKey':'app','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xff),'hint':'<name>'},{'name':a185_0x4529ff(0xbd),'meowKey':a185_0x4529ff(0xbd),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xce),'hint':a185_0x4529ff(0x100)},{'name':'format','meowKey':a185_0x4529ff(0xd3),'type':'string','description':a185_0x4529ff(0xe0),'hint':a185_0x4529ff(0x7e)},{'name':'jq','meowKey':'jq','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd7),'hint':a185_0x4529ff(0xee)},{'name':a185_0x4529ff(0xb5),'meowKey':a185_0x4529ff(0x94),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xba)},{'name':a185_0x4529ff(0xa2),'meowKey':a185_0x4529ff(0xa2),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0x8b)},{'name':a185_0x4529ff(0xe5),'meowKey':a185_0x4529ff(0xa1),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xcb)},{'name':a185_0x4529ff(0xe3),'meowKey':a185_0x4529ff(0xe3),'type':a185_0x4529ff(0x7f),'description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':a185_0x4529ff(0xfb),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xca)},{'name':'ci','meowKey':'ci','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xec),'hidden':!![]},{'name':a185_0x4529ff(0xf2),'meowKey':'help','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0x8d)},{'name':a185_0x4529ff(0xbe),'meowKey':a185_0x4529ff(0xbe),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xc7),'hidden':!![]},{'name':a185_0x4529ff(0xe8),'meowKey':a185_0x4529ff(0xe8),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xaa),'hidden':!![]},{'name':a185_0x4529ff(0xde),'meowKey':a185_0x4529ff(0xde),'type':'boolean','description':a185_0x4529ff(0xb2),'hidden':!![]},{'name':a185_0x4529ff(0x98),'meowKey':a185_0x4529ff(0x98),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xf8),'hidden':!![]},{'name':'output','meowKey':a185_0x4529ff(0xb7),'type':'string','description':a185_0x4529ff(0xaf),'hidden':!![]},{'name':a185_0x4529ff(0xad),'meowKey':a185_0x4529ff(0xad),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xb0),'hidden':!![]},{'name':a185_0x4529ff(0xa8),'meowKey':'datasetcode','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xfd),'hidden':!![]},{'name':'all','meowKey':a185_0x4529ff(0xc2),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xd2),'hidden':!![]},{'name':a185_0x4529ff(0x89),'meowKey':'enableBffSave','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xf1),'hidden':!![]},{'name':'id','meowKey':'id','type':a185_0x4529ff(0xdb),'description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a185_0x4529ff(0xa6),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xfc),'hidden':!![]},{'name':a185_0x4529ff(0xfa),'meowKey':a185_0x4529ff(0xfa),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xa9),'hidden':!![]},{'name':a185_0x4529ff(0xbb),'meowKey':a185_0x4529ff(0xbb),'type':'string','description':a185_0x4529ff(0x95),'hidden':!![]},{'name':a185_0x4529ff(0xe6),'meowKey':a185_0x4529ff(0xc6),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd9),'hidden':!![]},{'name':a185_0x4529ff(0xe9),'meowKey':a185_0x4529ff(0xe9),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd9),'hidden':!![]},{'name':a185_0x4529ff(0xc3),'meowKey':a185_0x4529ff(0xa0),'type':a185_0x4529ff(0xdb),'description':'DB\x20ID','hidden':!![]},{'name':a185_0x4529ff(0xda),'meowKey':a185_0x4529ff(0xda),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd6),'hidden':!![]},{'name':'description','meowKey':a185_0x4529ff(0xe1),'type':a185_0x4529ff(0xdb),'description':'Description','hidden':!![]},{'name':a185_0x4529ff(0xa5),'meowKey':'descriptionFile','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xc0),'hidden':!![]},{'name':'page','meowKey':a185_0x4529ff(0xf0),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xf5),'hidden':!![]},{'name':a185_0x4529ff(0xc8),'meowKey':a185_0x4529ff(0xc8),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xfe),'hidden':!![]},{'name':a185_0x4529ff(0x8a),'meowKey':a185_0x4529ff(0x8a),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x7c),'hidden':!![]},{'name':a185_0x4529ff(0xc4),'meowKey':'code','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x7d),'hidden':!![]},{'name':'sql','meowKey':a185_0x4529ff(0xdc),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xb3),'hidden':!![]},{'name':a185_0x4529ff(0xed),'meowKey':a185_0x4529ff(0xed),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x88),'hidden':!![]},{'name':'operation','meowKey':'operation','type':'string','description':'Operation\x20type','hidden':!![]},{'name':a185_0x4529ff(0x8f),'meowKey':'target','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xcf),'hidden':!![]},{'name':a185_0x4529ff(0xb9),'meowKey':'skipImports','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0x82),'hidden':!![]},{'name':'key','meowKey':a185_0x4529ff(0xdf),'type':a185_0x4529ff(0xdb),'description':'Config\x20key','hidden':!![]},{'name':a185_0x4529ff(0x9a),'meowKey':a185_0x4529ff(0x9a),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xab),'hidden':!![]},{'name':'tags','meowKey':a185_0x4529ff(0xf6),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xae),'hidden':!![]},{'name':a185_0x4529ff(0xa3),'meowKey':a185_0x4529ff(0xa3),'type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a185_0x4529ff(0xf3),'meowKey':a185_0x4529ff(0xe4),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd8),'hidden':!![]},{'name':a185_0x4529ff(0xa7),'meowKey':a185_0x4529ff(0xa7),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xcd),'hidden':!![]},{'name':a185_0x4529ff(0x8c),'meowKey':a185_0x4529ff(0x8c),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xd5),'hidden':!![]},{'name':a185_0x4529ff(0xb6),'meowKey':'confirm','type':a185_0x4529ff(0x7f),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a185_0x4529ff(0x8e),'meowKey':a185_0x4529ff(0x8e),'type':a185_0x4529ff(0x7f),'description':'Use\x20remote','hidden':!![]},{'name':a185_0x4529ff(0xbc),'meowKey':a185_0x4529ff(0xbc),'type':'boolean','description':a185_0x4529ff(0x93),'hidden':!![]},{'name':a185_0x4529ff(0xf4),'meowKey':a185_0x4529ff(0x85),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x86),'hidden':!![]},{'name':'label','meowKey':a185_0x4529ff(0xb8),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xe2),'hidden':!![]},{'name':a185_0x4529ff(0x96),'meowKey':a185_0x4529ff(0xef),'type':a185_0x4529ff(0xdb),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a185_0x4529ff(0xc5),'meowKey':a185_0x4529ff(0xc5),'type':'string','description':a185_0x4529ff(0x83),'hidden':!![]},{'name':a185_0x4529ff(0x97),'meowKey':a185_0x4529ff(0xf9),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xac),'hidden':!![]},{'name':'expect-path','meowKey':a185_0x4529ff(0x9b),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x9d),'hidden':!![]},{'name':a185_0x4529ff(0x81),'meowKey':'expectedChildrenCount','type':a185_0x4529ff(0xdb),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':a185_0x4529ff(0xcc),'type':a185_0x4529ff(0xdb),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x91),'hidden':!![]},{'name':a185_0x4529ff(0xea),'meowKey':a185_0x4529ff(0x84),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x87),'hidden':!![]},{'name':a185_0x4529ff(0x9c),'meowKey':'functionNode','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xb1),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a185_0x4529ff(0xb4),a185_0x4529ff(0xa4),a185_0x4529ff(0xbd),a185_0x4529ff(0xd3),'jq','dry-run','yes',a185_0x4529ff(0xe5),'ci']);export function buildMeowFlags(){const _0x5b6750=a185_0x4529ff;return Object[_0x5b6750(0x9f)](GLOBAL_FLAGS[_0x5b6750(0xd1)](_0x424313=>[_0x424313[_0x5b6750(0xeb)],{'type':_0x424313[_0x5b6750(0xa6)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a186_0x37c05a=a186_0x4f2a;(function(_0x1463a8,_0x24bfdc){const _0x496d2f=a186_0x4f2a,_0x3ec22e=_0x1463a8();while(!![]){try{const _0x57f157=parseInt(_0x496d2f(0x13d))/0x1*(-parseInt(_0x496d2f(0x137))/0x2)+-parseInt(_0x496d2f(0x136))/0x3*(-parseInt(_0x496d2f(0x13e))/0x4)+-parseInt(_0x496d2f(0x135))/0x5*(parseInt(_0x496d2f(0x13a))/0x6)+parseInt(_0x496d2f(0x13b))/0x7*(-parseInt(_0x496d2f(0x132))/0x8)+-parseInt(_0x496d2f(0x133))/0x9*(parseInt(_0x496d2f(0x13c))/0xa)+parseInt(_0x496d2f(0x139))/0xb*(-parseInt(_0x496d2f(0x140))/0xc)+parseInt(_0x496d2f(0x141))/0xd*(parseInt(_0x496d2f(0x13f))/0xe);if(_0x57f157===_0x24bfdc)break;else _0x3ec22e['push'](_0x3ec22e['shift']());}catch(_0x4ae05a){_0x3ec22e['push'](_0x3ec22e['shift']());}}}(a186_0x1e14,0xbebfc));function a186_0x1e14(){const _0x27699c=['80SzonNt','372ofFVwg','6TeisqM','compress','253AktxUQ','253398eLIKiG','107807nbTJch','30860JZyDsI','115113ueNcSs','2452IQFqUt','121912kRsOoT','388536XirLra','5356lgsHmG','136xCsqQm','2493LNrifU','en-US'];a186_0x1e14=function(){return _0x27699c;};return a186_0x1e14();}function a186_0x4f2a(_0xc5dcf2,_0x27d370){_0xc5dcf2=_0xc5dcf2-0x132;const _0x1e14eb=a186_0x1e14();let _0x4f2aaf=_0x1e14eb[_0xc5dcf2];return _0x4f2aaf;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a186_0x37c05a(0x138),'locale':a186_0x37c05a(0x134),'riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a186_0x37c05a(0x138);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a187_0x255935=a187_0x317b;(function(_0x590a2f,_0xc4f44a){const _0x49a0b5=a187_0x317b,_0x3ade09=_0x590a2f();while(!![]){try{const _0x42a9c3=-parseInt(_0x49a0b5(0x178))/0x1*(parseInt(_0x49a0b5(0x16c))/0x2)+-parseInt(_0x49a0b5(0x17c))/0x3+-parseInt(_0x49a0b5(0x175))/0x4+parseInt(_0x49a0b5(0x181))/0x5+parseInt(_0x49a0b5(0x17d))/0x6*(parseInt(_0x49a0b5(0x16e))/0x7)+parseInt(_0x49a0b5(0x16f))/0x8+-parseInt(_0x49a0b5(0x179))/0x9;if(_0x42a9c3===_0xc4f44a)break;else _0x3ade09['push'](_0x3ade09['shift']());}catch(_0x30004d){_0x3ade09['push'](_0x3ade09['shift']());}}}(a187_0x276f,0x4cf83));import{getEnv,isProduction}from'../constant/env.js';function a187_0x317b(_0x43d5f3,_0x3ee912){_0x43d5f3=_0x43d5f3-0x16c;const _0x276f76=a187_0x276f();let _0x317bc1=_0x276f76[_0x43d5f3];return _0x317bc1;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x1f9c70){const _0x351bb5=a187_0x317b;customApiDomain=_0x1f9c70?.[_0x351bb5(0x176)],customUserDomain=_0x1f9c70?.[_0x351bb5(0x17f)],customRuntimeDomain=_0x1f9c70?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a187_0x255935(0x180):a187_0x255935(0x174));function a187_0x276f(){const _0x4afe1b=['userDomain','https://user.lovrabet.com','2912515hiZgoF','42526aASqKj','/web-app/app/','2969666vZFdIG','4507584VWRqjr','trim','https://daily-api.lovrabet.com','https://daily.lovrabet.com','https://runtime.lovrabet.com','https://user-daily.lovrabet.com','1848188bxfdYK','apiDomain','https://app.lovrabet.com','19Jhikqp','920547SQhGcs','https://api.lovrabet.com','https://daily-runtime.lovrabet.com','859785ZipAwG','6jcaPOT','/app/'];a187_0x276f=function(){return _0x4afe1b;};return a187_0x276f();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a187_0x255935(0x17a):a187_0x255935(0x171));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a187_0x255935(0x173):a187_0x255935(0x17b));export const getAppDomain=()=>isProduction(getEnv())?a187_0x255935(0x177):a187_0x255935(0x172);export const getAppBaseUrl=_0x3001f4=>{const _0x8c0ff6=a187_0x255935,_0x933960=encodeURIComponent(_0x3001f4[_0x8c0ff6(0x170)]());return isProduction(getEnv())?getAppDomain()+_0x8c0ff6(0x17e)+_0x933960:getAppDomain()+_0x8c0ff6(0x16d)+_0x933960;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a188_0x210ef5=a188_0x5130;(function(_0x107ad5,_0x332b98){const _0x4dbb46=a188_0x5130,_0x3ed43a=_0x107ad5();while(!![]){try{const _0x143a44=-parseInt(_0x4dbb46(0x109))/0x1*(parseInt(_0x4dbb46(0x107))/0x2)+parseInt(_0x4dbb46(0xfd))/0x3+-parseInt(_0x4dbb46(0xfe))/0x4+-parseInt(_0x4dbb46(0x106))/0x5+parseInt(_0x4dbb46(0x102))/0x6+parseInt(_0x4dbb46(0x100))/0x7+parseInt(_0x4dbb46(0xff))/0x8*(-parseInt(_0x4dbb46(0x103))/0x9);if(_0x143a44===_0x332b98)break;else _0x3ed43a['push'](_0x3ed43a['shift']());}catch(_0x330638){_0x3ed43a['push'](_0x3ed43a['shift']());}}}(a188_0x5cf5,0xbf81d));export const RABETBASE_ENV_VALUES=[a188_0x210ef5(0x104),a188_0x210ef5(0x108)];function a188_0x5cf5(){const _0x3896d1=['7293062RatHTB','online','1869882UOyebl','405wQAGFa','production','dev','5780055qwmspc','134354ZAWPEo','daily','3AFgOuz','4215120veHJDk','836492tMfUwb','72440nNMcmA'];a188_0x5cf5=function(){return _0x3896d1;};return a188_0x5cf5();}export function normalizeEnv(_0x3aec29){const _0x54c5ff=a188_0x210ef5;return _0x3aec29===_0x54c5ff(0x101)?_0x54c5ff(0x104):_0x3aec29;}export function isProduction(_0x4d9af7){const _0x39fa8f=a188_0x210ef5;return normalizeEnv(_0x4d9af7)===_0x39fa8f(0x104);}export function isDaily(_0xe60fac){const _0x564ec6=a188_0x210ef5;return normalizeEnv(_0xe60fac)===_0x564ec6(0x108);}export function isDev(_0x1ed2e4){const _0x403dd9=a188_0x210ef5,_0x53a224=normalizeEnv(_0x1ed2e4);return _0x53a224==='development'||_0x53a224===_0x403dd9(0x105);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a188_0x210ef5(0x104));function a188_0x5130(_0x2fb6de,_0x3f46bf){_0x2fb6de=_0x2fb6de-0xfd;const _0x5cf57b=a188_0x5cf5();let _0x5130ef=_0x5cf57b[_0x2fb6de];return _0x5130ef;}export function getEnv(){return env;}export function initEnv(_0x2eb1ae){env=normalizeEnv(_0x2eb1ae);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a189_0x5b55(_0x2a675f,_0x28c4aa){_0x2a675f=_0x2a675f-0x118;const _0x75180d=a189_0x7518();let _0x5b55f7=_0x75180d[_0x2a675f];return _0x5b55f7;}const a189_0x20ec3e=a189_0x5b55;function a189_0x7518(){const _0x119b2a=['pretty','5042387VBcdKK','2241106FQDIun','15228560jyzRoI','1954110OcZkyu','755642OlDEIf','3546708PcCUCg','825366qcFRyC','compress','12AYFVWR'];a189_0x7518=function(){return _0x119b2a;};return a189_0x7518();}(function(_0x329a37,_0x391b2a){const _0x4d5df4=a189_0x5b55,_0x45330d=_0x329a37();while(!![]){try{const _0x135e59=parseInt(_0x4d5df4(0x11c))/0x1+-parseInt(_0x4d5df4(0x119))/0x2+parseInt(_0x4d5df4(0x11d))/0x3+-parseInt(_0x4d5df4(0x120))/0x4*(-parseInt(_0x4d5df4(0x11b))/0x5)+-parseInt(_0x4d5df4(0x11e))/0x6+parseInt(_0x4d5df4(0x118))/0x7+-parseInt(_0x4d5df4(0x11a))/0x8;if(_0x135e59===_0x391b2a)break;else _0x45330d['push'](_0x45330d['shift']());}catch(_0x4dcc70){_0x45330d['push'](_0x45330d['shift']());}}}(a189_0x7518,0xa3549));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a189_0x20ec3e(0x121),a189_0x20ec3e(0x11f)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a190_0x19ed(_0x377628,_0x4a8f12){_0x377628=_0x377628-0x196;const _0x2e93cb=a190_0x2e93();let _0x19edae=_0x2e93cb[_0x377628];return _0x19edae;}const a190_0x2e11f8=a190_0x19ed;function a190_0x2e93(){const _0x1f2ec5=['2537220JzfIXH','./src/api','1010432lGgwfv','3262362blBNMR','765079DvZhGp','4086504QrWPlV','54812DvYQzR','187974ntjmGt','138HENxJL'];a190_0x2e93=function(){return _0x1f2ec5;};return a190_0x2e93();}(function(_0x177f03,_0x2c2665){const _0x49708a=a190_0x19ed,_0x36e51b=_0x177f03();while(!![]){try{const _0x5a58c3=-parseInt(_0x49708a(0x19b))/0x1+-parseInt(_0x49708a(0x196))/0x2+parseInt(_0x49708a(0x19c))/0x3*(parseInt(_0x49708a(0x19a))/0x4)+parseInt(_0x49708a(0x19d))/0x5+parseInt(_0x49708a(0x197))/0x6+-parseInt(_0x49708a(0x198))/0x7+-parseInt(_0x49708a(0x199))/0x8;if(_0x5a58c3===_0x2c2665)break;else _0x36e51b['push'](_0x36e51b['shift']());}catch(_0x37c76d){_0x36e51b['push'](_0x36e51b['shift']());}}}(a190_0x2e93,0x59e51));export const DEFAULT_API_DIR=a190_0x2e11f8(0x19e);
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a191_0xb405(){const _0x25488=['1118464JmVNJC','13989QAbpAl','324pMRUpz','6020124eGMfno','9zDrktC','947384CTmDxL','4793838giwHsm','3483425ClZuZN','646632OyRGlk','high-risk-write'];a191_0xb405=function(){return _0x25488;};return a191_0xb405();}const a191_0x3879ff=a191_0x2f30;(function(_0x3b5c6b,_0x5510ec){const _0x38ee32=a191_0x2f30,_0x1efe4a=_0x3b5c6b();while(!![]){try{const _0x21c0b2=-parseInt(_0x38ee32(0x79))/0x1+parseInt(_0x38ee32(0x74))/0x2+parseInt(_0x38ee32(0x7a))/0x3*(parseInt(_0x38ee32(0x71))/0x4)+-parseInt(_0x38ee32(0x76))/0x5+parseInt(_0x38ee32(0x72))/0x6+parseInt(_0x38ee32(0x75))/0x7+parseInt(_0x38ee32(0x77))/0x8*(parseInt(_0x38ee32(0x73))/0x9);if(_0x21c0b2===_0x5510ec)break;else _0x1efe4a['push'](_0x1efe4a['shift']());}catch(_0x27ed70){_0x1efe4a['push'](_0x1efe4a['shift']());}}}(a191_0xb405,0xc498f));function a191_0x2f30(_0x20541b,_0x415dcd){_0x20541b=_0x20541b-0x71;const _0xb4052a=a191_0xb405();let _0x2f3003=_0xb4052a[_0x20541b];return _0x2f3003;}export const RISK_LEVEL_VALUES=['read','write',a191_0x3879ff(0x78)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c3385,_0x2b6943){const _0x4b99d5=a192_0x20ea,_0x3b668f=_0x3c3385();while(!![]){try{const _0x200661=-parseInt(_0x4b99d5(0xec))/0x1+-parseInt(_0x4b99d5(0x109))/0x2+-parseInt(_0x4b99d5(0x115))/0x3*(parseInt(_0x4b99d5(0x10b))/0x4)+parseInt(_0x4b99d5(0x10e))/0x5*(-parseInt(_0x4b99d5(0xfc))/0x6)+-parseInt(_0x4b99d5(0xe9))/0x7*(-parseInt(_0x4b99d5(0xf7))/0x8)+-parseInt(_0x4b99d5(0xfe))/0x9+parseInt(_0x4b99d5(0xf4))/0xa*(parseInt(_0x4b99d5(0xf1))/0xb);if(_0x200661===_0x2b6943)break;else _0x3b668f['push'](_0x3b668f['shift']());}catch(_0x247338){_0x3b668f['push'](_0x3b668f['shift']());}}}(a192_0x2b11,0xa3046));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a192_0x20ea(_0x40e2de,_0x445e8d){_0x40e2de=_0x40e2de-0xe9;const _0x2b11dd=a192_0x2b11();let _0x20ea38=_0x2b11dd[_0x40e2de];return _0x20ea38;}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x5ac1be){const _0x4746b8=a192_0x20ea;return typeof _0x5ac1be==='string'&&_0x5ac1be[_0x4746b8(0xed)]()?_0x5ac1be['trim']():undefined;}function appProfiles(_0x403133){const _0x324b6a=a192_0x20ea;return _0x403133[_0x324b6a(0x112)]&&typeof _0x403133[_0x324b6a(0x112)]==='object'?_0x403133[_0x324b6a(0x112)]:{};}function a192_0x2b11(){const _0xbc79e0=['APP','read','40LxMbYM','VERBOSE','riskLevel','ENV','defaultApp','5779086SXpBNz','apiDir','7796691xmxxDD','maxRisk','string','accessKey','app','MAX_RISK','pageSize','keys','object','cookie','production','1171924lTyvvN','entries','39876bsOKjK','write','RISK_LEVEL','5EpADEa','globalConfig','locale','inherit','apps','true','appcode','6sMmpHj','1003170IrIZdQ','env','find','74196JeWDIO','trim','format','length','COOKIE','410124MJDArB','projectConfig','daily','660PsdBli'];a192_0x2b11=function(){return _0xbc79e0;};return a192_0x2b11();}function resolveDefaultAppName(_0x6d2f54){const _0x8f1b51=a192_0x20ea,_0x1a07b8=stringConfigValue(_0x6d2f54['defaultApp']);if(_0x1a07b8)return _0x1a07b8;return Object[_0x8f1b51(0x105)](appProfiles(_0x6d2f54))[0x0];}function resolveTopLevelAppCode(_0x3306ee){const _0xd07dba=a192_0x20ea;return stringConfigValue(_0x3306ee[_0xd07dba(0x114)])||stringConfigValue(_0x3306ee[_0xd07dba(0x102)]);}export function resolveAppConfig({raw:_0x34a1bc,flags:_0x30a5c2,layers:_0x17ae67,readEnv:_0x200442}){const _0x5e9c72=a192_0x20ea,_0x542737=_0x17ae67?.[_0x5e9c72(0xf2)]??{},_0x114110=_0x17ae67?.[_0x5e9c72(0x10f)]??{},_0x55a55e=Object['keys'](_0x542737)[_0x5e9c72(0xef)]>0x0,_0x27fe48=!_0x55a55e||_0x542737[_0x5e9c72(0x111)]===!![],_0x318457=_0x55a55e?resolveDefaultAppName(_0x542737):undefined,_0x5d98ca=_0x27fe48?resolveDefaultAppName(_0x114110):undefined,_0x146cd2=stringConfigValue(_0x30a5c2[_0x5e9c72(0x102)]),_0xce1ae1=_0x200442(_0x5e9c72(0xf5)),_0x180987={};if(_0x34a1bc[_0x5e9c72(0x112)]&&typeof _0x34a1bc[_0x5e9c72(0x112)]===_0x5e9c72(0x106))for(const [_0x44810b,_0x97b7cc]of Object['entries'](_0x34a1bc[_0x5e9c72(0x112)])){_0x97b7cc&&typeof _0x97b7cc===_0x5e9c72(0x106)&&_0x97b7cc[_0x5e9c72(0x114)]&&(_0x180987[_0x44810b]=_0x97b7cc);}const _0x60c686=_0x34a1bc[_0x5e9c72(0xfb)]||undefined,_0x31a786=Object['keys'](_0x180987)[_0x5e9c72(0xef)]>0x0,_0x27946e=_0x146cd2||_0x318457||_0xce1ae1||_0x5d98ca||_0x60c686||undefined,_0x2ed143=stringConfigValue(_0x30a5c2[_0x5e9c72(0x114)]),_0x3b0ef0=_0x2ed143?Object[_0x5e9c72(0x10a)](_0x180987)[_0x5e9c72(0xeb)](([,_0x55be23])=>_0x55be23?.[_0x5e9c72(0x114)]===_0x2ed143):undefined,_0x5e524c=_0x3b0ef0?.[0x0],_0x3b775a=_0x3b0ef0?.[0x1],_0x34c55a=_0x2ed143?_0x5e524c:_0x27946e;let _0x2a5727=_0x34c55a&&_0x180987[_0x34c55a]?_0x180987[_0x34c55a]:undefined;_0x2ed143&&_0x3b775a&&(_0x2a5727=_0x3b775a);const _0x5729f9=_0x2ed143?_0x3b775a??_0x2a5727:_0x2a5727,_0x442773=!_0x146cd2&&!_0x318457&&_0xce1ae1&&_0x34c55a===_0xce1ae1,_0x520de2=_0x146cd2||(_0x442773?_0xce1ae1:undefined)||(_0x2ed143?_0x5e524c:undefined),_0x4df1de=_0x5729f9?.[_0x5e9c72(0x114)],_0x301b69=_0x55a55e?resolveTopLevelAppCode(_0x542737):undefined,_0x21b9ae=_0x27fe48?resolveTopLevelAppCode(_0x114110):undefined,_0x1e0b38=_0x146cd2||_0x318457?_0x4df1de:undefined,_0x4b0491=!_0x146cd2&&!_0x318457?_0x4df1de:undefined,_0x13853a=_0x2ed143||_0x1e0b38||_0x301b69||_0x4b0491||_0x21b9ae||undefined,_0x466c2f=_0x55a55e?stringConfigValue(_0x542737[_0x5e9c72(0xea)]):undefined,_0x3660b0=_0x27fe48?stringConfigValue(_0x114110[_0x5e9c72(0xea)]):undefined,_0x2fd6c9=_0x30a5c2[_0x5e9c72(0xea)]||_0x5729f9?.[_0x5e9c72(0xea)]||_0x466c2f||_0x200442(_0x5e9c72(0xfa))||_0x3660b0||_0x34a1bc[_0x5e9c72(0xea)]||DEFAULT_CONFIG_VALUES[_0x5e9c72(0xea)],_0x1b8e38=_0x5729f9?.[_0x5e9c72(0x110)]||_0x34a1bc[_0x5e9c72(0x110)]||DEFAULT_CONFIG_VALUES['locale'],_0x4e5c89=_0x200442(_0x5e9c72(0xf0))||_0x5729f9?.[_0x5e9c72(0x107)]||_0x34a1bc[_0x5e9c72(0x107)]||undefined,_0x40cc24=_0x200442('ACCESS_KEY')||_0x5729f9?.[_0x5e9c72(0x101)]||_0x34a1bc[_0x5e9c72(0x101)]||undefined,_0x2acf7a=_0x30a5c2['format']||_0x200442('FORMAT')||_0x5729f9?.[_0x5e9c72(0xee)]||_0x34a1bc[_0x5e9c72(0xee)],_0x1ff2ef=normalizeLegacyOutputFormat(_0x2acf7a),_0x48d433=_0x200442('PAGE_SIZE')||_0x5729f9?.[_0x5e9c72(0x104)]||_0x34a1bc['pageSize'],_0x4b9e34=_0x48d433?Number(_0x48d433)||undefined:undefined,_0x5798a7=_0x200442(_0x5e9c72(0x10d))||_0x200442(_0x5e9c72(0x103))||_0x5729f9?.['riskLevel']||_0x34a1bc[_0x5e9c72(0xf9)]||_0x34a1bc[_0x5e9c72(0xff)],_0x14ea7d=_0x5798a7===_0x5e9c72(0xf6)||_0x5798a7===_0x5e9c72(0x10c)?_0x5798a7:DEFAULT_CONFIG_VALUES[_0x5e9c72(0xf9)],_0x3ed65e=_0x200442(_0x5e9c72(0xf8)),_0x1fde1c=_0x3ed65e==='1'||_0x3ed65e===_0x5e9c72(0x113),_0x145008=_0x5729f9?.[_0x5e9c72(0xfd)]||_0x34a1bc[_0x5e9c72(0xfd)]||DEFAULT_CONFIG_VALUES[_0x5e9c72(0xfd)],_0x3270e0=isDaily(normalizeEnv(String(_0x2fd6c9)))?_0x5e9c72(0xf3):_0x5e9c72(0x108);return{'appCode':typeof _0x13853a===_0x5e9c72(0x100)&&_0x13853a[_0x5e9c72(0xed)]()?_0x13853a[_0x5e9c72(0xed)]():undefined,'env':_0x3270e0,'locale':_0x1b8e38,'cookie':_0x4e5c89,'accessKey':_0x40cc24,'format':_0x1ff2ef,'pageSize':_0x4b9e34,'riskLevel':_0x14ea7d,'verbose':_0x1fde1c,'apiDir':_0x145008,'apps':_0x180987,'defaultApp':_0x60c686,'currentApp':_0x31a786?_0x34c55a:undefined,'explicitAppName':_0x520de2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3bb183,_0x4a64c9){const _0x11e00a=a193_0x2cba,_0x3d3322=_0x3bb183();while(!![]){try{const _0x283fdf=parseInt(_0x11e00a(0xaa))/0x1+-parseInt(_0x11e00a(0xa2))/0x2+-parseInt(_0x11e00a(0xab))/0x3+parseInt(_0x11e00a(0xa6))/0x4+parseInt(_0x11e00a(0xa5))/0x5+parseInt(_0x11e00a(0xa4))/0x6*(parseInt(_0x11e00a(0xa9))/0x7)+-parseInt(_0x11e00a(0xa3))/0x8;if(_0x283fdf===_0x4a64c9)break;else _0x3d3322['push'](_0x3d3322['shift']());}catch(_0x39d6a4){_0x3d3322['push'](_0x3d3322['shift']());}}}(a193_0x56cc,0xc0392));import{getIsSessionValid}from'../auth/is-session-valid.js';function a193_0x2cba(_0x328891,_0x5da646){_0x328891=_0x328891-0xa2;const _0x56cce9=a193_0x56cc();let _0x2cbae3=_0x56cce9[_0x328891];return _0x2cbae3;}function a193_0x56cc(){const _0x502139=['2528352xOzsMz','100602TiKrHn','6392090cjGoNW','2558692ioXkOc','cookie','authRequired','28SRRsja','1409291oNVfMa','2984376bqCvYf','../auth/get-cookie.js','2592536lpXCZB'];a193_0x56cc=function(){return _0x502139;};return a193_0x56cc();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x5c7d44){const _0x21e089=a193_0x2cba,{getCookie:_0xa77a6d}=await import(_0x21e089(0xac)),_0x5b958b=_0x5c7d44[_0x21e089(0xa7)]||_0xa77a6d(),_0x53c621=_0x5b958b?await getIsSessionValid():![];return{'cookie':_0x5b958b,'isLoggedIn':_0x53c621,async 'getOrLogin'(){const _0x59f051=_0x21e089;if(_0x5b958b&&_0x53c621)return _0x5b958b;throw CliErrors[_0x59f051(0xa8)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a194_0x39714e=a194_0x4629;(function(_0x2cdd04,_0x5336bb){const _0x3bd270=a194_0x4629,_0x38d778=_0x2cdd04();while(!![]){try{const _0x270b92=parseInt(_0x3bd270(0xfb))/0x1*(parseInt(_0x3bd270(0xe9))/0x2)+-parseInt(_0x3bd270(0xda))/0x3*(-parseInt(_0x3bd270(0xfc))/0x4)+parseInt(_0x3bd270(0xea))/0x5+parseInt(_0x3bd270(0xf0))/0x6+parseInt(_0x3bd270(0xe0))/0x7*(-parseInt(_0x3bd270(0xeb))/0x8)+-parseInt(_0x3bd270(0xdc))/0x9*(-parseInt(_0x3bd270(0xcc))/0xa)+parseInt(_0x3bd270(0xfa))/0xb;if(_0x270b92===_0x5336bb)break;else _0x38d778['push'](_0x38d778['shift']());}catch(_0x54d152){_0x38d778['push'](_0x38d778['shift']());}}}(a194_0x1be6,0xb95d1));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';function a194_0x1be6(){const _0x4e28ac=['.lovrabetrc','pageSize','migrated','message','\x0a\x20\x20','inherit','length','78ZWCfwL','39615CYfxHJ','1216624DqNVmy','trim','cookie','data','apps','1671180hJnLOy','format','defaultApp','set','warn','apiDir','project','utf8','accessKey','object','4500133pImPzF','12621LUaecx','4712JfSoeY','Project','100QwXRqL','.lovrabet.json','error','get','status','stringify','.tmp','Global','cwd','filter','locale','string','keys','riskLevel','759fMlDzO','config','30447gmEwCu','appcode','app','silent','35jQwojF','.rabetbase.json'];a194_0x1be6=function(){return _0x4e28ac;};return a194_0x1be6();}import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a194_0x39714e(0xe1);export const CONFIG_NAMES=[a194_0x39714e(0xe1),a194_0x39714e(0xcd),a194_0x39714e(0xe2)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a194_0x39714e(0xd5)](_0x576668=>_0x576668!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x39433e){for(const _0xaf2530 of CONFIG_NAMES){const _0x57f4b4=resolve(_0x39433e,_0xaf2530);if(existsSync(_0x57f4b4))return _0x57f4b4;}return undefined;}export function findProjectRootDirectory(_0x4e1404=process[a194_0x39714e(0xd4)]()){let _0x39c849=resolve(_0x4e1404);const {root:_0x330958}=parse(_0x39c849),_0x42371c=homedir();while(!![]){if(resolveConfigPath(_0x39c849)){if(_0x39c849===_0x42371c)break;return _0x39c849;}if(_0x39c849===_0x330958||_0x39c849===_0x42371c)break;const _0x4bd348=dirname(_0x39c849);if(_0x4bd348===_0x39c849)break;_0x39c849=_0x4bd348;}return resolve(_0x4e1404);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}function a194_0x4629(_0x501b97,_0x432e8b){_0x501b97=_0x501b97-0xcc;const _0x1be673=a194_0x1be6();let _0x46295e=_0x1be673[_0x501b97];return _0x46295e;}export function inspectCliConfigJsonFile(_0x58242f){const _0x49a5e5=a194_0x39714e;if(!existsSync(_0x58242f))return{'status':'missing'};try{const _0x191a8c=readFileSync(_0x58242f,{'encoding':'utf8'});if(!_0x191a8c?.['trim']())return{'status':'empty'};const _0x31434a=JSON['parse'](_0x191a8c);return{'status':'ok','data':_0x31434a};}catch(_0x4c1182){return{'status':_0x49a5e5(0xce),'message':_0x4c1182 instanceof Error?_0x4c1182['message']:String(_0x4c1182)};}}function parseCliConfigJsonFile(_0x391f8d,_0x18995b,_0x290a42){const _0x1a961a=a194_0x39714e,_0x35a02a=inspectCliConfigJsonFile(_0x391f8d);if(_0x35a02a['status']==='missing'||_0x35a02a[_0x1a961a(0xd0)]==='empty')return{};if(_0x35a02a[_0x1a961a(0xd0)]==='ok')return _0x35a02a[_0x1a961a(0xee)];return _0x18995b===_0x1a961a(0xf4)&&_0x290a42&&console[_0x1a961a(0xce)](CLI_BIN_NAME+':\x20'+_0x290a42+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x391f8d+_0x1a961a(0xe6)+_0x35a02a[_0x1a961a(0xe5)]),{};}function normalizeLegacyConfigShape(_0x22d19e){const _0x58fca0=a194_0x39714e;if(!_0x22d19e||typeof _0x22d19e!==_0x58fca0(0xf9))return{'config':{},'migrated':![]};const _0x2ed674={..._0x22d19e},_0x3d7881=_0x2ed674[_0x58fca0(0xef)]&&typeof _0x2ed674['apps']===_0x58fca0(0xf9)?{..._0x2ed674[_0x58fca0(0xef)]}:{},_0x3d8bd=Object[_0x58fca0(0xd8)](_0x3d7881)[_0x58fca0(0xe8)],_0x56be0a=_0x2ed674['appcode']||_0x2ed674[_0x58fca0(0xde)];let _0x16ce1e=![];if(_0x56be0a&&_0x3d8bd===0x0){const _0x14ecb0=typeof _0x2ed674[_0x58fca0(0xf2)]===_0x58fca0(0xd7)&&_0x2ed674[_0x58fca0(0xf2)]['trim']()?_0x2ed674[_0x58fca0(0xf2)]:String(_0x56be0a)[_0x58fca0(0xec)]();_0x3d7881[_0x14ecb0]={'appcode':String(_0x56be0a)['trim'](),..._0x2ed674['env']!=null?{'env':_0x2ed674['env']}:{},..._0x2ed674['apiDir']!=null?{'apiDir':_0x2ed674[_0x58fca0(0xf5)]}:{},..._0x2ed674[_0x58fca0(0xed)]!=null?{'cookie':_0x2ed674[_0x58fca0(0xed)]}:{},..._0x2ed674[_0x58fca0(0xf8)]!=null?{'accessKey':_0x2ed674[_0x58fca0(0xf8)]}:{},..._0x2ed674[_0x58fca0(0xf1)]!=null?{'format':_0x2ed674['format']}:{},..._0x2ed674[_0x58fca0(0xe3)]!=null?{'pageSize':_0x2ed674[_0x58fca0(0xe3)]}:{},..._0x2ed674[_0x58fca0(0xd9)]!=null?{'riskLevel':_0x2ed674[_0x58fca0(0xd9)]}:{},..._0x2ed674[_0x58fca0(0xd6)]!=null?{'locale':_0x2ed674[_0x58fca0(0xd6)]}:{}},_0x2ed674['apps']=_0x3d7881;if(!_0x2ed674[_0x58fca0(0xf2)])_0x2ed674[_0x58fca0(0xf2)]=_0x14ecb0;_0x16ce1e=!![];}return('appcode'in _0x2ed674||_0x58fca0(0xde)in _0x2ed674)&&(delete _0x2ed674[_0x58fca0(0xdd)],delete _0x2ed674[_0x58fca0(0xde)],_0x16ce1e=!![]),{'config':_0x2ed674,'migrated':_0x16ce1e};}function writeNormalizedConfigIfNeeded(_0x1ea998,_0xd62483){const _0x503305=a194_0x39714e,_0x224fc9=JSON[_0x503305(0xd1)](_0xd62483,null,0x2)+'\x0a';if(normalizedWriteCache[_0x503305(0xcf)](_0x1ea998)===_0x224fc9)return;writeConfigFile(_0x1ea998,_0xd62483),normalizedWriteCache[_0x503305(0xf3)](_0x1ea998,_0x224fc9);}function parseAndNormalizeConfig(_0x3290e5,_0x3b3b19,_0x199bd7){const _0x919fd4=a194_0x39714e,_0x30b799=parseCliConfigJsonFile(_0x3290e5,_0x3b3b19,_0x199bd7),_0x459b95=normalizeLegacyConfigShape(_0x30b799);if(_0x459b95[_0x919fd4(0xe4)])try{writeNormalizedConfigIfNeeded(_0x3290e5,_0x459b95[_0x919fd4(0xdb)]);}catch{}return _0x459b95[_0x919fd4(0xdb)];}export function loadRawConfigLayers(_0x3dc48b){const _0x2b5f08=a194_0x39714e;let _0x31c7ac={},_0x7ba02={};const _0x4f013a=resolveConfigPath(homedir());_0x4f013a&&(_0x31c7ac=parseAndNormalizeConfig(_0x4f013a,'warn',_0x2b5f08(0xd3)));const _0x3e9313=_0x3dc48b??findProjectRootDirectory(),_0x3257a8=resolveConfigPath(_0x3e9313);return _0x3257a8&&(_0x7ba02=parseAndNormalizeConfig(_0x3257a8,_0x2b5f08(0xf4),_0x2b5f08(0xfd))),{'globalPath':_0x4f013a,'projectPath':_0x3257a8,'globalConfig':_0x31c7ac,'projectConfig':_0x7ba02};}const INHERIT_WHITELIST=[a194_0x39714e(0xed),a194_0x39714e(0xf8),'locale','format',a194_0x39714e(0xd9),'pageSize'];export function mergeRawConfigLayers(_0x92390f){const _0x3d1b57=a194_0x39714e,{globalConfig:_0x113a29,projectConfig:_0x317487}=_0x92390f,_0x597bce=Object['keys'](_0x317487)[_0x3d1b57(0xe8)]>0x0;if(!_0x597bce)return mergeGlobalOnly(_0x113a29);if(_0x317487[_0x3d1b57(0xe7)]===!![])return mergeFullInherit(_0x113a29,_0x317487);if(_0x317487[_0x3d1b57(0xe7)]===![])return mergeIsolated(_0x317487);return mergeProjectFirst(_0x113a29,_0x317487);}function mergeGlobalOnly(_0xbb438a){const _0x377e4c=a194_0x39714e,_0x3675fb={..._0xbb438a},_0x3fb248=_0xbb438a['apps']&&typeof _0xbb438a[_0x377e4c(0xef)]===_0x377e4c(0xf9)?_0xbb438a[_0x377e4c(0xef)]:{};if(Object['keys'](_0x3fb248)[_0x377e4c(0xe8)]>0x0)_0x3675fb[_0x377e4c(0xef)]=_0x3fb248;if(_0xbb438a[_0x377e4c(0xf2)])_0x3675fb[_0x377e4c(0xf2)]=_0xbb438a[_0x377e4c(0xf2)];else{const _0xd66dd3=Object[_0x377e4c(0xd8)](_0x3fb248);if(_0xd66dd3[_0x377e4c(0xe8)]>0x0)_0x3675fb[_0x377e4c(0xf2)]=_0xd66dd3[0x0];}return _0x3675fb;}function mergeIsolated(_0x4e868f){const _0x19043f=a194_0x39714e,_0x1862ec={..._0x4e868f};delete _0x1862ec['inherit'];const _0x552bad=_0x4e868f[_0x19043f(0xef)]&&typeof _0x4e868f[_0x19043f(0xef)]===_0x19043f(0xf9)?_0x4e868f[_0x19043f(0xef)]:{};Object['keys'](_0x552bad)[_0x19043f(0xe8)]>0x0?_0x1862ec[_0x19043f(0xef)]=_0x552bad:delete _0x1862ec[_0x19043f(0xef)];if('defaultApp'in _0x4e868f)_0x1862ec[_0x19043f(0xf2)]=_0x4e868f[_0x19043f(0xf2)];else Object[_0x19043f(0xd8)](_0x552bad)['length']>0x0?_0x1862ec['defaultApp']=Object[_0x19043f(0xd8)](_0x552bad)[0x0]:delete _0x1862ec['defaultApp'];return _0x1862ec;}function mergeProjectFirst(_0x30f449,_0x58aa23){const _0x2848e3=a194_0x39714e,_0x57ee78={..._0x58aa23};delete _0x57ee78[_0x2848e3(0xe7)];for(const _0xf0463c of INHERIT_WHITELIST){!(_0xf0463c in _0x57ee78)&&_0xf0463c in _0x30f449&&(_0x57ee78[_0xf0463c]=_0x30f449[_0xf0463c]);}const _0x410c0b=_0x58aa23['apps']&&typeof _0x58aa23[_0x2848e3(0xef)]===_0x2848e3(0xf9)?_0x58aa23[_0x2848e3(0xef)]:{};Object[_0x2848e3(0xd8)](_0x410c0b)['length']>0x0?_0x57ee78[_0x2848e3(0xef)]=_0x410c0b:delete _0x57ee78[_0x2848e3(0xef)];if(_0x2848e3(0xf2)in _0x58aa23)_0x57ee78[_0x2848e3(0xf2)]=_0x58aa23[_0x2848e3(0xf2)];else Object[_0x2848e3(0xd8)](_0x410c0b)['length']>0x0?_0x57ee78['defaultApp']=Object['keys'](_0x410c0b)[0x0]:delete _0x57ee78[_0x2848e3(0xf2)];return _0x57ee78;}function mergeFullInherit(_0x11a9e6,_0x3db4d0){const _0x338fef=a194_0x39714e,_0x322ee4=_0x11a9e6[_0x338fef(0xef)]&&typeof _0x11a9e6[_0x338fef(0xef)]==='object'?_0x11a9e6[_0x338fef(0xef)]:{},_0x409172=_0x3db4d0['apps']&&typeof _0x3db4d0[_0x338fef(0xef)]===_0x338fef(0xf9)?_0x3db4d0[_0x338fef(0xef)]:{},_0x106ad1={..._0x322ee4,..._0x409172},_0x19e804={..._0x11a9e6,..._0x3db4d0};delete _0x19e804[_0x338fef(0xe7)];if(Object[_0x338fef(0xd8)](_0x106ad1)[_0x338fef(0xe8)]>0x0)_0x19e804[_0x338fef(0xef)]=_0x106ad1;if(_0x338fef(0xf2)in _0x3db4d0)_0x19e804['defaultApp']=_0x3db4d0[_0x338fef(0xf2)];else{if(Object[_0x338fef(0xd8)](_0x409172)[_0x338fef(0xe8)]>0x0)_0x19e804[_0x338fef(0xf2)]=Object[_0x338fef(0xd8)](_0x409172)[0x0];else{if(_0x11a9e6[_0x338fef(0xf2)])_0x19e804[_0x338fef(0xf2)]=_0x11a9e6[_0x338fef(0xf2)];else{const _0x280961=Object[_0x338fef(0xd8)](_0x322ee4);if(_0x280961[_0x338fef(0xe8)]>0x0)_0x19e804[_0x338fef(0xf2)]=_0x280961[0x0];}}}return _0x19e804;}export function readRawConfigWithLayers(_0x36bf72){const _0x11c3ef=loadRawConfigLayers(_0x36bf72);return{'config':mergeRawConfigLayers(_0x11c3ef),'layers':_0x11c3ef};}export function readRawConfig(_0x2e0227){return mergeRawConfigLayers(loadRawConfigLayers(_0x2e0227));}export function readConfigFile(_0x227440){const _0x2c5be4=a194_0x39714e;return parseAndNormalizeConfig(_0x227440,_0x2c5be4(0xdf));}export function writeConfigFile(_0x4a02c1,_0x487f93){const _0x10ec5d=a194_0x39714e,_0x29287f=dirname(_0x4a02c1);!existsSync(_0x29287f)&&mkdirSync(_0x29287f,{'recursive':!![]});const _0x570178=_0x4a02c1+_0x10ec5d(0xd2);try{writeFileSync(_0x570178,JSON['stringify'](_0x487f93,null,0x2)+'\x0a',{'encoding':_0x10ec5d(0xf7),'mode':0x180}),renameSync(_0x570178,_0x4a02c1);}catch(_0x4e474e){try{unlinkSync(_0x570178);}catch{}throw _0x4e474e;}}export function resolveWriteConfigPath(_0xa8f1b){const _0x7811a7=a194_0x39714e,_0x492930=_0xa8f1b===_0x7811a7(0xf6)?process[_0x7811a7(0xd4)]():homedir(),_0x365989=resolveConfigPath(_0x492930);return _0x365989??resolve(_0x492930,NEW_CONFIG_NAME);}
|
|
1
|
+
const a194_0x34b897=a194_0x2e7b;(function(_0x5504a3,_0x4655fd){const _0x301249=a194_0x2e7b,_0x54d433=_0x5504a3();while(!![]){try{const _0x2fb628=parseInt(_0x301249(0x1f1))/0x1+parseInt(_0x301249(0x1e4))/0x2*(parseInt(_0x301249(0x1cf))/0x3)+parseInt(_0x301249(0x1c8))/0x4+-parseInt(_0x301249(0x1e2))/0x5*(-parseInt(_0x301249(0x1d6))/0x6)+parseInt(_0x301249(0x1f3))/0x7*(parseInt(_0x301249(0x1c5))/0x8)+-parseInt(_0x301249(0x1f2))/0x9*(-parseInt(_0x301249(0x1e8))/0xa)+-parseInt(_0x301249(0x1e7))/0xb;if(_0x2fb628===_0x4655fd)break;else _0x54d433['push'](_0x54d433['shift']());}catch(_0x30bc35){_0x54d433['push'](_0x54d433['shift']());}}}(a194_0x2fff,0x57fc6));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=a194_0x34b897(0x1c4);export const CONFIG_NAMES=[a194_0x34b897(0x1c4),a194_0x34b897(0x1e0),a194_0x34b897(0x1ea)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a194_0x34b897(0x1da)](_0x23ffc8=>_0x23ffc8!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();function a194_0x2fff(){const _0x5a80f5=['set','filter','\x0a\x20\x20','length','.tmp','defaultApp','silent','.lovrabet.json','stringify','845885LJgkhw','utf8','2AxXZfc','Project','cookie','19243070alcNPT','7910XXbJwF','cwd','.lovrabetrc','object','warn','apiDir','appcode','missing','migrated','358788tsbhrc','6246jxAxle','21826NjZXyx','error','locale','inherit','.rabetbase.json','144BybzBD','parse','status','2418080WZxvqh','config','pageSize','format','apps','riskLevel','trim','1116591kZnyCR','data','app','message','env','Global','keys','6agXJuF','empty','accessKey'];a194_0x2fff=function(){return _0x5a80f5;};return a194_0x2fff();}export function resolveConfigPath(_0x6f6c16){for(const _0xd75d20 of CONFIG_NAMES){const _0x299579=resolve(_0x6f6c16,_0xd75d20);if(existsSync(_0x299579))return _0x299579;}return undefined;}export function findProjectRootDirectory(_0x5cfd80=process['cwd']()){let _0x366f46=resolve(_0x5cfd80);const {root:_0x31d3f6}=parse(_0x366f46),_0x2e6d71=homedir();while(!![]){if(resolveConfigPath(_0x366f46)){if(_0x366f46===_0x2e6d71)break;return _0x366f46;}if(_0x366f46===_0x31d3f6||_0x366f46===_0x2e6d71)break;const _0x97f985=dirname(_0x366f46);if(_0x97f985===_0x366f46)break;_0x366f46=_0x97f985;}return resolve(_0x5cfd80);}export function getProjectConfigPath(){const _0x2cbfc3=a194_0x34b897;return resolveConfigPath(process[_0x2cbfc3(0x1e9)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x4e18f1){const _0x4048e9=a194_0x34b897;if(!existsSync(_0x4e18f1))return{'status':_0x4048e9(0x1ef)};try{const _0x3e5410=readFileSync(_0x4e18f1,{'encoding':_0x4048e9(0x1e3)});if(!_0x3e5410?.['trim']())return{'status':_0x4048e9(0x1d7)};const _0x216d31=JSON[_0x4048e9(0x1c6)](_0x3e5410);return{'status':'ok','data':_0x216d31};}catch(_0xcd755e){return{'status':_0x4048e9(0x1f4),'message':_0xcd755e instanceof Error?_0xcd755e[_0x4048e9(0x1d2)]:String(_0xcd755e)};}}function parseCliConfigJsonFile(_0x43e685,_0x28a2bc,_0x5f563f){const _0x1e3455=a194_0x34b897,_0x2b0981=inspectCliConfigJsonFile(_0x43e685);if(_0x2b0981[_0x1e3455(0x1c7)]===_0x1e3455(0x1ef)||_0x2b0981[_0x1e3455(0x1c7)]===_0x1e3455(0x1d7))return{};if(_0x2b0981['status']==='ok')return _0x2b0981[_0x1e3455(0x1d0)];return _0x28a2bc===_0x1e3455(0x1ec)&&_0x5f563f&&console[_0x1e3455(0x1f4)](CLI_BIN_NAME+':\x20'+_0x5f563f+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x43e685+_0x1e3455(0x1db)+_0x2b0981[_0x1e3455(0x1d2)]),{};}function normalizeLegacyConfigShape(_0x46b786){const _0x2b46aa=a194_0x34b897;if(!_0x46b786||typeof _0x46b786!==_0x2b46aa(0x1eb))return{'config':{},'migrated':![]};const _0x45201e={..._0x46b786},_0x3ae284=_0x45201e[_0x2b46aa(0x1cc)]&&typeof _0x45201e[_0x2b46aa(0x1cc)]===_0x2b46aa(0x1eb)?{..._0x45201e[_0x2b46aa(0x1cc)]}:{},_0x3e53aa=Object[_0x2b46aa(0x1d5)](_0x3ae284)[_0x2b46aa(0x1dc)],_0xaadc0d=_0x45201e[_0x2b46aa(0x1ee)]||_0x45201e['app'];let _0x3268be=![];if(_0xaadc0d&&_0x3e53aa===0x0){const _0xf56999=typeof _0x45201e[_0x2b46aa(0x1de)]==='string'&&_0x45201e[_0x2b46aa(0x1de)][_0x2b46aa(0x1ce)]()?_0x45201e[_0x2b46aa(0x1de)]:String(_0xaadc0d)[_0x2b46aa(0x1ce)]();_0x3ae284[_0xf56999]={'appcode':String(_0xaadc0d)[_0x2b46aa(0x1ce)](),..._0x45201e['env']!=null?{'env':_0x45201e[_0x2b46aa(0x1d3)]}:{},..._0x45201e[_0x2b46aa(0x1ed)]!=null?{'apiDir':_0x45201e[_0x2b46aa(0x1ed)]}:{},..._0x45201e[_0x2b46aa(0x1e6)]!=null?{'cookie':_0x45201e[_0x2b46aa(0x1e6)]}:{},..._0x45201e[_0x2b46aa(0x1d8)]!=null?{'accessKey':_0x45201e[_0x2b46aa(0x1d8)]}:{},..._0x45201e[_0x2b46aa(0x1cb)]!=null?{'format':_0x45201e[_0x2b46aa(0x1cb)]}:{},..._0x45201e['pageSize']!=null?{'pageSize':_0x45201e[_0x2b46aa(0x1ca)]}:{},..._0x45201e['riskLevel']!=null?{'riskLevel':_0x45201e[_0x2b46aa(0x1cd)]}:{},..._0x45201e['locale']!=null?{'locale':_0x45201e[_0x2b46aa(0x1c2)]}:{}},_0x45201e[_0x2b46aa(0x1cc)]=_0x3ae284;if(!_0x45201e[_0x2b46aa(0x1de)])_0x45201e[_0x2b46aa(0x1de)]=_0xf56999;_0x3268be=!![];}return(_0x2b46aa(0x1ee)in _0x45201e||_0x2b46aa(0x1d1)in _0x45201e)&&(delete _0x45201e['appcode'],delete _0x45201e[_0x2b46aa(0x1d1)],_0x3268be=!![]),{'config':_0x45201e,'migrated':_0x3268be};}function writeNormalizedConfigIfNeeded(_0x2803cf,_0x2c0bcd){const _0x3dfeb5=a194_0x34b897,_0x456c4e=JSON['stringify'](_0x2c0bcd,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x2803cf)===_0x456c4e)return;writeConfigFile(_0x2803cf,_0x2c0bcd),normalizedWriteCache[_0x3dfeb5(0x1d9)](_0x2803cf,_0x456c4e);}function parseAndNormalizeConfig(_0x5722f0,_0x280507,_0x404a38){const _0x509f9c=a194_0x34b897,_0x550ae6=parseCliConfigJsonFile(_0x5722f0,_0x280507,_0x404a38),_0x9967d5=normalizeLegacyConfigShape(_0x550ae6);if(_0x9967d5[_0x509f9c(0x1f0)])try{writeNormalizedConfigIfNeeded(_0x5722f0,_0x9967d5[_0x509f9c(0x1c9)]);}catch{}return _0x9967d5[_0x509f9c(0x1c9)];}export function loadRawConfigLayers(_0x1d9642){const _0x335f57=a194_0x34b897;let _0x32ee76={},_0x525955={};const _0x25fa71=resolveConfigPath(homedir());_0x25fa71&&(_0x32ee76=parseAndNormalizeConfig(_0x25fa71,'warn',_0x335f57(0x1d4)));const _0x5353fa=_0x1d9642??findProjectRootDirectory(),_0x51a820=resolveConfigPath(_0x5353fa);return _0x51a820&&(_0x525955=parseAndNormalizeConfig(_0x51a820,_0x335f57(0x1ec),_0x335f57(0x1e5))),{'globalPath':_0x25fa71,'projectPath':_0x51a820,'globalConfig':_0x32ee76,'projectConfig':_0x525955};}const INHERIT_WHITELIST=[a194_0x34b897(0x1e6),a194_0x34b897(0x1d8),'locale',a194_0x34b897(0x1cb),a194_0x34b897(0x1cd),a194_0x34b897(0x1ca)];export function mergeRawConfigLayers(_0x4a6b4c){const _0x16b63a=a194_0x34b897,{globalConfig:_0x2b233a,projectConfig:_0x45502c}=_0x4a6b4c,_0x5e2628=Object['keys'](_0x45502c)['length']>0x0;if(!_0x5e2628)return mergeGlobalOnly(_0x2b233a);if(_0x45502c[_0x16b63a(0x1c3)]===!![])return mergeFullInherit(_0x2b233a,_0x45502c);if(_0x45502c['inherit']===![])return mergeIsolated(_0x45502c);return mergeProjectFirst(_0x2b233a,_0x45502c);}function mergeGlobalOnly(_0x2e1fed){const _0x97128b=a194_0x34b897,_0x45849c={..._0x2e1fed},_0x39e6e0=_0x2e1fed[_0x97128b(0x1cc)]&&typeof _0x2e1fed[_0x97128b(0x1cc)]===_0x97128b(0x1eb)?_0x2e1fed[_0x97128b(0x1cc)]:{};if(Object[_0x97128b(0x1d5)](_0x39e6e0)['length']>0x0)_0x45849c[_0x97128b(0x1cc)]=_0x39e6e0;if(_0x2e1fed[_0x97128b(0x1de)])_0x45849c[_0x97128b(0x1de)]=_0x2e1fed[_0x97128b(0x1de)];else{const _0x56135a=Object[_0x97128b(0x1d5)](_0x39e6e0);if(_0x56135a[_0x97128b(0x1dc)]>0x0)_0x45849c['defaultApp']=_0x56135a[0x0];}return _0x45849c;}function mergeIsolated(_0xebe0a4){const _0x1da007=a194_0x34b897,_0x5713a4={..._0xebe0a4};delete _0x5713a4[_0x1da007(0x1c3)];const _0x4dbc92=_0xebe0a4[_0x1da007(0x1cc)]&&typeof _0xebe0a4['apps']===_0x1da007(0x1eb)?_0xebe0a4[_0x1da007(0x1cc)]:{};Object[_0x1da007(0x1d5)](_0x4dbc92)[_0x1da007(0x1dc)]>0x0?_0x5713a4['apps']=_0x4dbc92:delete _0x5713a4[_0x1da007(0x1cc)];if(_0x1da007(0x1de)in _0xebe0a4)_0x5713a4[_0x1da007(0x1de)]=_0xebe0a4[_0x1da007(0x1de)];else Object[_0x1da007(0x1d5)](_0x4dbc92)['length']>0x0?_0x5713a4['defaultApp']=Object[_0x1da007(0x1d5)](_0x4dbc92)[0x0]:delete _0x5713a4[_0x1da007(0x1de)];return _0x5713a4;}function mergeProjectFirst(_0xf418ca,_0x1a11c7){const _0x2bf83a=a194_0x34b897,_0x3df180={..._0x1a11c7};delete _0x3df180[_0x2bf83a(0x1c3)];for(const _0x401dc1 of INHERIT_WHITELIST){!(_0x401dc1 in _0x3df180)&&_0x401dc1 in _0xf418ca&&(_0x3df180[_0x401dc1]=_0xf418ca[_0x401dc1]);}const _0x422163=_0x1a11c7[_0x2bf83a(0x1cc)]&&typeof _0x1a11c7[_0x2bf83a(0x1cc)]===_0x2bf83a(0x1eb)?_0x1a11c7[_0x2bf83a(0x1cc)]:{};Object[_0x2bf83a(0x1d5)](_0x422163)['length']>0x0?_0x3df180[_0x2bf83a(0x1cc)]=_0x422163:delete _0x3df180[_0x2bf83a(0x1cc)];if(_0x2bf83a(0x1de)in _0x1a11c7)_0x3df180[_0x2bf83a(0x1de)]=_0x1a11c7['defaultApp'];else Object[_0x2bf83a(0x1d5)](_0x422163)[_0x2bf83a(0x1dc)]>0x0?_0x3df180[_0x2bf83a(0x1de)]=Object[_0x2bf83a(0x1d5)](_0x422163)[0x0]:delete _0x3df180[_0x2bf83a(0x1de)];return _0x3df180;}function mergeFullInherit(_0x11fa47,_0xeb7aaf){const _0x41d3be=a194_0x34b897,_0x1a95b7=_0x11fa47['apps']&&typeof _0x11fa47['apps']===_0x41d3be(0x1eb)?_0x11fa47[_0x41d3be(0x1cc)]:{},_0x2a17ae=_0xeb7aaf[_0x41d3be(0x1cc)]&&typeof _0xeb7aaf[_0x41d3be(0x1cc)]===_0x41d3be(0x1eb)?_0xeb7aaf[_0x41d3be(0x1cc)]:{},_0x2942a3={..._0x1a95b7,..._0x2a17ae},_0x57c17e={..._0x11fa47,..._0xeb7aaf};delete _0x57c17e[_0x41d3be(0x1c3)];if(Object[_0x41d3be(0x1d5)](_0x2942a3)[_0x41d3be(0x1dc)]>0x0)_0x57c17e[_0x41d3be(0x1cc)]=_0x2942a3;if(_0x41d3be(0x1de)in _0xeb7aaf)_0x57c17e[_0x41d3be(0x1de)]=_0xeb7aaf[_0x41d3be(0x1de)];else{if(Object[_0x41d3be(0x1d5)](_0x2a17ae)[_0x41d3be(0x1dc)]>0x0)_0x57c17e['defaultApp']=Object[_0x41d3be(0x1d5)](_0x2a17ae)[0x0];else{if(_0x11fa47[_0x41d3be(0x1de)])_0x57c17e['defaultApp']=_0x11fa47['defaultApp'];else{const _0x3181c2=Object[_0x41d3be(0x1d5)](_0x1a95b7);if(_0x3181c2[_0x41d3be(0x1dc)]>0x0)_0x57c17e[_0x41d3be(0x1de)]=_0x3181c2[0x0];}}}return _0x57c17e;}function a194_0x2e7b(_0x33bb41,_0x18def0){_0x33bb41=_0x33bb41-0x1c2;const _0x2fff5c=a194_0x2fff();let _0x2e7b21=_0x2fff5c[_0x33bb41];return _0x2e7b21;}export function readRawConfigWithLayers(_0x233313){const _0x46d5d3=loadRawConfigLayers(_0x233313);return{'config':mergeRawConfigLayers(_0x46d5d3),'layers':_0x46d5d3};}export function readRawConfig(_0x10515b){return mergeRawConfigLayers(loadRawConfigLayers(_0x10515b));}export function readConfigFile(_0x182db3){const _0x16c8f3=a194_0x34b897;return parseAndNormalizeConfig(_0x182db3,_0x16c8f3(0x1df));}export function writeConfigFile(_0x461fd6,_0x3930e7){const _0x3e8f9b=a194_0x34b897,_0x180931=dirname(_0x461fd6);!existsSync(_0x180931)&&mkdirSync(_0x180931,{'recursive':!![]});const _0x3b6156=_0x461fd6+_0x3e8f9b(0x1dd);try{writeFileSync(_0x3b6156,JSON[_0x3e8f9b(0x1e1)](_0x3930e7,null,0x2)+'\x0a',{'encoding':_0x3e8f9b(0x1e3),'mode':0x180}),renameSync(_0x3b6156,_0x461fd6);}catch(_0x2ab5a9){try{unlinkSync(_0x3b6156);}catch{}throw _0x2ab5a9;}}export function resolveWriteConfigPath(_0x1d5f8a){const _0x766d9a=a194_0x34b897,_0x2998c6=_0x1d5f8a==='project'?process[_0x766d9a(0x1e9)]():homedir(),_0x34e766=resolveConfigPath(_0x2998c6);return _0x34e766??resolve(_0x2998c6,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a195_0x3c3bdd=a195_0x35ae;(function(_0x4bfc30,_0x44c60c){const _0x971f00=a195_0x35ae,_0x11636b=_0x4bfc30();while(!![]){try{const _0x3b0f4e=parseInt(_0x971f00(0x10a))/0x1+parseInt(_0x971f00(0x104))/0x2*(parseInt(_0x971f00(0xf8))/0x3)+parseInt(_0x971f00(0xfa))/0x4*(-parseInt(_0x971f00(0x109))/0x5)+parseInt(_0x971f00(0x10e))/0x6+parseInt(_0x971f00(0xf5))/0x7*(-parseInt(_0x971f00(0x102))/0x8)+-parseInt(_0x971f00(0x114))/0x9+parseInt(_0x971f00(0x103))/0xa;if(_0x3b0f4e===_0x44c60c)break;else _0x11636b['push'](_0x11636b['shift']());}catch(_0x4c5294){_0x11636b['push'](_0x11636b['shift']());}}}(a195_0x208d,0x47f18));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,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';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x3fc898){return process.env[`RABETBASE_${_0x3fc898}`]||process.env[`LOVRABET_${_0x3fc898}`]||undefined;}export async function createContext(_0x30bff7){const _0x1c26a4=a195_0x35ae,{config:_0x1487d3,layers:_0x57eb0e}=readRawConfigWithLayers(),_0x16a6b9=buildConfig(_0x1487d3,_0x30bff7,_0x57eb0e),{initEnv:_0x43fd6f}=await import(_0x1c26a4(0xf1));if(_0x16a6b9['env'])_0x43fd6f(_0x16a6b9['env']);else _0x30bff7['env']&&typeof _0x30bff7['env']===_0x1c26a4(0xfd)&&_0x43fd6f(_0x30bff7[_0x1c26a4(0xfb)]);const {initDomains:_0x33ac83,getUserDomain:_0x51bdc1,getApiDomain:_0x25aeac}=await import('./constant/domain.js');_0x33ac83({'apiDomain':_0x1487d3[_0x1c26a4(0x106)]||undefined,'userDomain':_0x1487d3[_0x1c26a4(0x105)]||undefined,'runtimeDomain':_0x1487d3[_0x1c26a4(0x112)]||undefined});const _0x555a16={'apiDomain':_0x25aeac(),'userDomain':_0x51bdc1()},_0xb276dc=await buildAuth(_0x16a6b9);logger['setLogPath'](process['cwd']());const _0x1f001a=(CLI_BIN_NAME+'\x20'+process[_0x1c26a4(0xf7)]['slice'](0x2)[_0x1c26a4(0x110)]('\x20'))['trim']();logger[_0x1c26a4(0xf2)](_0x1f001a);const {isNonInteractive:_0x2441fe}=await import('./utils/is-non-interactive.js'),_0x6682b5=_0x2441fe(_0x30bff7);return{'config':_0x16a6b9,'auth':_0xb276dc,'logger':logger,'env':_0x555a16,'nonInteractive':_0x6682b5};}export function buildConfigFromFlags(_0x4e707e){const {config:_0x3858ee,layers:_0x5796b3}=readRawConfigWithLayers();return buildConfig(_0x3858ee,_0x4e707e,_0x5796b3);}function a195_0x208d(){const _0x55c6e1=['join','appcode','runtimeDomain','entries','4074381xHBYnl','projectConfig','merged','globalConfig','defaultApp','./constant/env.js','setRawCommand','apps','values','2343943WfEMvs','trim','argv','6540DAYoIJ','object','242796DzJIoK','env','project','string','keys','cookie','find','-api.ts','8SAKGAr','7868350YavVHW','50GVTHpW','userDomain','apiDomain','cwd','template_base_url','5EDcBbd','60175XaRcYh','https://g.lovrabet.com/dist/lovrabet-skill','filter','api.ts','1448562kSmsss','apiDir'];a195_0x208d=function(){return _0x55c6e1;};return a195_0x208d();}function a195_0x35ae(_0x2bb3a7,_0x508542){_0x2bb3a7=_0x2bb3a7-0xed;const _0x208df0=a195_0x208d();let _0x35ae4c=_0x208df0[_0x2bb3a7];return _0x35ae4c;}export function getConfigAppCode(_0x984f1d){const _0x16810b=a195_0x35ae,_0x2af746=readRawConfig(_0x984f1d);if(_0x2af746[_0x16810b(0xf3)]&&typeof _0x2af746[_0x16810b(0xf3)]===_0x16810b(0xf9)){const _0x150659=_0x2af746[_0x16810b(0xf0)];if(_0x150659&&_0x2af746[_0x16810b(0xf3)][_0x150659]?.[_0x16810b(0x111)])return String(_0x2af746['apps'][_0x150659][_0x16810b(0x111)])[_0x16810b(0xf6)]();const _0x26a5f0=Object[_0x16810b(0xf4)](_0x2af746['apps'])[0x0];if(_0x26a5f0?.[_0x16810b(0x111)])return String(_0x26a5f0[_0x16810b(0x111)])['trim']();}const _0x99b083=_0x2af746[_0x16810b(0x111)]||_0x2af746['app'];if(typeof _0x99b083!==_0x16810b(0xfd)||_0x99b083['trim']()==='')return undefined;return _0x99b083[_0x16810b(0xf6)]();}export function getMultiAppConfigs(_0x2a01bb=a195_0x3c3bdd(0xfc),_0x18b7ff){const _0x392d44=a195_0x3c3bdd,_0x53fdb4=loadRawConfigLayers(_0x18b7ff);let _0x25e9b5,_0x3cffd9;if(_0x2a01bb===_0x392d44(0xee)){const _0x1bfb2c=_0x53fdb4['globalConfig']['apps']&&typeof _0x53fdb4[_0x392d44(0xef)]['apps']===_0x392d44(0xf9)?_0x53fdb4['globalConfig'][_0x392d44(0xf3)]:{},_0xc3c520=_0x53fdb4[_0x392d44(0xed)][_0x392d44(0xf3)]&&typeof _0x53fdb4[_0x392d44(0xed)][_0x392d44(0xf3)]==='object'?_0x53fdb4['projectConfig'][_0x392d44(0xf3)]:{};_0x25e9b5={..._0x1bfb2c,..._0xc3c520};const _0x3f202=readRawConfig(_0x18b7ff);_0x3cffd9=_0x3f202['defaultApp'];}else _0x25e9b5=_0x53fdb4[_0x392d44(0xed)][_0x392d44(0xf3)],_0x3cffd9=_0x53fdb4[_0x392d44(0xed)][_0x392d44(0xf0)];if(!_0x25e9b5||typeof _0x25e9b5!==_0x392d44(0xf9)||Object[_0x392d44(0xfe)](_0x25e9b5)['length']===0x0)return null;return Object[_0x392d44(0x113)](_0x25e9b5)['map'](([_0x8815a4,_0x46a701])=>({'name':_0x8815a4,'appcode':_0x46a701?.['appcode']||'','isDefault':_0x8815a4===_0x3cffd9,'env':_0x46a701?.[_0x392d44(0xfb)],'apiDir':_0x46a701?.[_0x392d44(0x10f)],'cookie':_0x46a701?.[_0x392d44(0xff)]||undefined}))[_0x392d44(0x10c)](_0x25972a=>_0x25972a[_0x392d44(0x111)]);}export function getTemplateBaseUrl(_0x544fb3){const _0x57d987=a195_0x3c3bdd,_0x1989fb=readRawConfig(_0x544fb3);if(_0x1989fb[_0x57d987(0x108)]&&typeof _0x1989fb['template_base_url']===_0x57d987(0xfd))return _0x1989fb[_0x57d987(0x108)]['replace'](/\/$/,'');return _0x57d987(0x10b);}function buildConfig(_0x338256,_0x441eb1,_0x1edecb){return{...resolveAppConfig({'raw':_0x338256,'flags':_0x441eb1,'layers':_0x1edecb,'readEnv':env}),'raw':_0x338256};}export function resolveApiFilePath(_0x2bf606,_0x4f4175){const _0x292799=a195_0x3c3bdd,_0x4ae5e6=resolve(process[_0x292799(0x107)](),_0x2bf606),_0x57a7dd=resolve(_0x4ae5e6,_0x292799(0x10d));if(!_0x4f4175)return _0x57a7dd;const _0x405533=readRawConfig(),_0x3fe85a=_0x405533[_0x292799(0xf3)]&&typeof _0x405533[_0x292799(0xf3)]==='object'?_0x405533[_0x292799(0xf3)]:{},_0x2ea499=Object[_0x292799(0x113)](_0x3fe85a)[_0x292799(0x100)](([,_0x267953])=>_0x267953?.['appcode']===_0x4f4175);if(!_0x2ea499)return _0x57a7dd;const [_0x3ef0c6,_0x14aea3]=_0x2ea499,_0x46519e=typeof _0x405533[_0x292799(0xf0)]===_0x292799(0xfd)?_0x405533[_0x292799(0xf0)]:undefined;if(_0x14aea3?.[_0x292799(0x10f)])return _0x57a7dd;if(_0x46519e&&_0x3ef0c6!==_0x46519e)return resolve(_0x4ae5e6,_0x3ef0c6+_0x292799(0x101));return _0x57a7dd;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f3aa9,_0x499fd8){const _0x5cfad0=a196_0x4c3f,_0x2f3653=_0x1f3aa9();while(!![]){try{const _0x1209a9=parseInt(_0x5cfad0(0xb0))/0x1+parseInt(_0x5cfad0(0xa5))/0x2*(-parseInt(_0x5cfad0(0xb2))/0x3)+-parseInt(_0x5cfad0(0xb6))/0x4+-parseInt(_0x5cfad0(0xad))/0x5*(parseInt(_0x5cfad0(0xb4))/0x6)+-parseInt(_0x5cfad0(0xaa))/0x7*(parseInt(_0x5cfad0(0xa7))/0x8)+parseInt(_0x5cfad0(0xb1))/0x9+-parseInt(_0x5cfad0(0xac))/0xa*(-parseInt(_0x5cfad0(0xb5))/0xb);if(_0x1209a9===_0x499fd8)break;else _0x2f3653['push'](_0x2f3653['shift']());}catch(_0xcd4762){_0x2f3653['push'](_0x2f3653['shift']());}}}(a196_0x36c4,0x43dc2));import{readFileSync,existsSync}from'node:fs';function a196_0x4c3f(_0x51b114,_0x14838d){_0x51b114=_0x51b114-0xa4;const _0x36c44d=a196_0x36c4();let _0x4c3f14=_0x36c44d[_0x51b114];return _0x4c3f14;}import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x49380e){const _0x1880fe=a196_0x4c3f,_0x26fe54=[],_0x5a1cf5=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x14ca59;while((_0x14ca59=_0x5a1cf5[_0x1880fe(0xae)](_0x49380e))!==null){_0x26fe54[_0x1880fe(0xab)]({'datasetCode':_0x14ca59[0x1],'tableName':_0x14ca59[0x2],'name':_0x14ca59[0x3],'alias':_0x14ca59[0x4]});}return _0x26fe54;}function a196_0x36c4(){const _0x5ebdb0=['has','222cdETrr','31229MBOEYs','1668728XvCpoF','datasetCode','cwd','919676tagojQ','set','4162184iuYdLn','get','find','7HiibaA','push','4040nkAuKp','41815uezTex','exec','utf-8','376520BWxBGG','4150818zufAEd','3XiIWGC'];a196_0x36c4=function(){return _0x5ebdb0;};return a196_0x36c4();}export function loadAliasMap(_0x1f6865,_0x33b19a,_0x21f8e2){const _0x10d13e=a196_0x4c3f,_0x43ef13=_0x21f8e2??resolve(process[_0x10d13e(0xa4)](),_0x1f6865,'api.ts');if(cache[_0x10d13e(0xb3)](_0x43ef13))return cache[_0x10d13e(0xa8)](_0x43ef13);if(!existsSync(_0x43ef13))return cache['set'](_0x43ef13,[]),[];try{const _0x1c14e7=readFileSync(_0x43ef13,_0x10d13e(0xaf)),_0xb6039a=parseApiFile(_0x1c14e7);return cache[_0x10d13e(0xa6)](_0x43ef13,_0xb6039a),_0xb6039a;}catch{return cache[_0x10d13e(0xa6)](_0x43ef13,[]),[];}}export function resolveAlias(_0x5b61e3,_0x4faa15,_0x2dabe7,_0x29acd8){const _0x4eb5fd=a196_0x4c3f;if(!_0x4faa15)return undefined;const _0x2d19c5=loadAliasMap(_0x5b61e3,_0x2dabe7,_0x29acd8),_0x1ea9d0=_0x2d19c5[_0x4eb5fd(0xa9)](_0x447e90=>_0x447e90['alias']===_0x4faa15);return _0x1ea9d0?.[_0x4eb5fd(0xb7)];}export function listAliases(_0xa83764,_0x22889d,_0x512626){return loadAliasMap(_0xa83764,_0x22889d,_0x512626);}
|