@lovrabet/rabetbase-cli 2.3.8 → 2.3.9-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/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/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.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/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/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-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/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
|
|
1
|
+
const a173_0xd81623=a173_0x2c4f;(function(_0x2301a4,_0x27c40b){const _0x5c8b7a=a173_0x2c4f,_0x144f44=_0x2301a4();while(!![]){try{const _0x554d45=-parseInt(_0x5c8b7a(0x14d))/0x1*(-parseInt(_0x5c8b7a(0x162))/0x2)+-parseInt(_0x5c8b7a(0x15c))/0x3+parseInt(_0x5c8b7a(0x15f))/0x4+parseInt(_0x5c8b7a(0x15e))/0x5+parseInt(_0x5c8b7a(0x175))/0x6+-parseInt(_0x5c8b7a(0x159))/0x7+-parseInt(_0x5c8b7a(0x128))/0x8;if(_0x554d45===_0x27c40b)break;else _0x144f44['push'](_0x144f44['shift']());}catch(_0xdb43a7){_0x144f44['push'](_0x144f44['shift']());}}}(a173_0x679a,0xeb75b));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a173_0xd81623(0x194);export const NPM_PACKAGE_NAME=a173_0xd81623(0x188);function a173_0x2c4f(_0xfaef90,_0x16486e){_0xfaef90=_0xfaef90-0x126;const _0x679a70=a173_0x679a();let _0x2c4f0d=_0x679a70[_0xfaef90];return _0x2c4f0d;}export const GLOBAL_FLAGS=[{'name':a173_0xd81623(0x136),'meowKey':a173_0xd81623(0x136),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x16d),'hint':a173_0xd81623(0x141)},{'name':a173_0xd81623(0x18c),'meowKey':a173_0xd81623(0x18c),'type':'string','description':a173_0xd81623(0x185),'hint':a173_0xd81623(0x127)},{'name':a173_0xd81623(0x155),'meowKey':a173_0xd81623(0x155),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x12b),'hint':a173_0xd81623(0x150)},{'name':'format','meowKey':a173_0xd81623(0x18d),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x17b),'hint':a173_0xd81623(0x146)},{'name':'jq','meowKey':'jq','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x133),'hint':a173_0xd81623(0x13f)},{'name':a173_0xd81623(0x170),'meowKey':'dryRun','type':a173_0xd81623(0x151),'description':'Preview\x20operation\x20without\x20executing'},{'name':a173_0xd81623(0x152),'meowKey':'yes','type':a173_0xd81623(0x151),'description':a173_0xd81623(0x157)},{'name':'non-interactive','meowKey':'nonInteractive','type':a173_0xd81623(0x151),'description':a173_0xd81623(0x191)},{'name':'global','meowKey':a173_0xd81623(0x148),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':a173_0xd81623(0x15b),'type':'boolean','description':a173_0xd81623(0x16a)},{'name':'ci','meowKey':'ci','type':a173_0xd81623(0x151),'description':a173_0xd81623(0x153),'hidden':!![]},{'name':a173_0xd81623(0x183),'meowKey':'help','type':a173_0xd81623(0x151),'description':a173_0xd81623(0x160)},{'name':a173_0xd81623(0x16c),'meowKey':a173_0xd81623(0x16c),'type':a173_0xd81623(0x192),'description':'Name','hidden':!![]},{'name':a173_0xd81623(0x12c),'meowKey':'title','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x126),'hidden':!![]},{'name':a173_0xd81623(0x163),'meowKey':a173_0xd81623(0x163),'type':a173_0xd81623(0x151),'description':a173_0xd81623(0x16b),'hidden':!![]},{'name':a173_0xd81623(0x154),'meowKey':a173_0xd81623(0x154),'type':a173_0xd81623(0x151),'description':a173_0xd81623(0x147),'hidden':!![]},{'name':a173_0xd81623(0x179),'meowKey':'output','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x184),'hidden':!![]},{'name':'params','meowKey':a173_0xd81623(0x187),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x181),'hidden':!![]},{'name':a173_0xd81623(0x149),'meowKey':a173_0xd81623(0x149),'type':a173_0xd81623(0x192),'description':'Dataset\x20code','hidden':!![]},{'name':a173_0xd81623(0x172),'meowKey':a173_0xd81623(0x172),'type':'boolean','description':a173_0xd81623(0x189),'hidden':!![]},{'name':a173_0xd81623(0x13d),'meowKey':a173_0xd81623(0x193),'type':'boolean','description':a173_0xd81623(0x12d),'hidden':!![]},{'name':'id','meowKey':'id','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x156),'hidden':!![]},{'name':a173_0xd81623(0x17a),'meowKey':a173_0xd81623(0x17a),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x18b),'hidden':!![]},{'name':a173_0xd81623(0x16f),'meowKey':'file','type':'string','description':'File\x20path','hidden':!![]},{'name':a173_0xd81623(0x16e),'meowKey':a173_0xd81623(0x16e),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x17d),'hidden':!![]},{'name':'sql-name','meowKey':a173_0xd81623(0x134),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x14a),'hidden':!![]},{'name':'sqlname','meowKey':a173_0xd81623(0x186),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x14a),'hidden':!![]},{'name':a173_0xd81623(0x17f),'meowKey':'dbId','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x12e),'hidden':!![]},{'name':a173_0xd81623(0x135),'meowKey':a173_0xd81623(0x135),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a173_0xd81623(0x167),'meowKey':a173_0xd81623(0x167),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x161),'hidden':!![]},{'name':a173_0xd81623(0x14b),'meowKey':a173_0xd81623(0x14e),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x17e),'hidden':!![]},{'name':a173_0xd81623(0x14c),'meowKey':'page','type':a173_0xd81623(0x192),'description':'Page\x20number','hidden':!![]},{'name':a173_0xd81623(0x190),'meowKey':a173_0xd81623(0x190),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x14f),'hidden':!![]},{'name':a173_0xd81623(0x15a),'meowKey':a173_0xd81623(0x15a),'type':'string','description':a173_0xd81623(0x13b),'hidden':!![]},{'name':a173_0xd81623(0x139),'meowKey':a173_0xd81623(0x139),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x138),'hidden':!![]},{'name':a173_0xd81623(0x12a),'meowKey':'sql','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x129),'hidden':!![]},{'name':'schemas','meowKey':'schemas','type':'string','description':'Schemas','hidden':!![]},{'name':a173_0xd81623(0x180),'meowKey':a173_0xd81623(0x180),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x18f),'hidden':!![]},{'name':'target','meowKey':a173_0xd81623(0x13e),'type':'string','description':a173_0xd81623(0x17c),'hidden':!![]},{'name':'skip-imports','meowKey':a173_0xd81623(0x182),'type':a173_0xd81623(0x151),'description':a173_0xd81623(0x166),'hidden':!![]},{'name':a173_0xd81623(0x137),'meowKey':a173_0xd81623(0x137),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x132),'hidden':!![]},{'name':a173_0xd81623(0x174),'meowKey':'value','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x144),'hidden':!![]},{'name':'tags','meowKey':'tags','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x18a),'hidden':!![]},{'name':a173_0xd81623(0x169),'meowKey':a173_0xd81623(0x169),'type':a173_0xd81623(0x151),'description':a173_0xd81623(0x18e),'hidden':!![]},{'name':a173_0xd81623(0x164),'meowKey':a173_0xd81623(0x143),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x140),'hidden':!![]},{'name':a173_0xd81623(0x173),'meowKey':a173_0xd81623(0x173),'type':a173_0xd81623(0x151),'description':a173_0xd81623(0x196),'hidden':!![]},{'name':a173_0xd81623(0x131),'meowKey':a173_0xd81623(0x131),'type':'boolean','description':a173_0xd81623(0x171),'hidden':!![]},{'name':'confirm','meowKey':'confirm','type':a173_0xd81623(0x151),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a173_0xd81623(0x15d),'meowKey':'remote','type':a173_0xd81623(0x151),'description':a173_0xd81623(0x130),'hidden':!![]},{'name':'verbose','meowKey':a173_0xd81623(0x142),'type':a173_0xd81623(0x151),'description':a173_0xd81623(0x178),'hidden':!![]},{'name':a173_0xd81623(0x195),'meowKey':a173_0xd81623(0x158),'type':a173_0xd81623(0x192),'description':a173_0xd81623(0x165),'hidden':!![]},{'name':a173_0xd81623(0x12f),'meowKey':'operationType','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x18f),'hidden':!![]},{'name':a173_0xd81623(0x13c),'meowKey':'functionNode','type':a173_0xd81623(0x192),'description':a173_0xd81623(0x145),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a173_0xd81623(0x136),a173_0xd81623(0x18c),a173_0xd81623(0x155),'format','jq',a173_0xd81623(0x170),'yes',a173_0xd81623(0x176),'ci']);export function buildMeowFlags(){const _0x594d32=a173_0xd81623;return Object[_0x594d32(0x13a)](GLOBAL_FLAGS[_0x594d32(0x177)](_0x2a4add=>[_0x2a4add[_0x594d32(0x168)],{'type':_0x2a4add[_0x594d32(0x17a)]}]));}function a173_0x679a(){const _0x231963=['SQL\x20string','sql','Environment','title','Enable\x20BFF\x20save','DB\x20ID','operation-type','Use\x20remote','force','Config\x20key','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','sqlName','dbid','appcode','key','Code\x20filter','code','fromEntries','Keyword\x20filter','function-node','enable-bff-save','target','<expr>','Read\x20value\x20from\x20environment\x20variable','<code>','verbose','fromEnv','Config\x20value','Function\x20node','json\x20|\x20pretty\x20|\x20compress','Watch\x20mode','global','datasetcode','SQL\x20name','description-file','page','20407AhYDXy','descriptionFile','Page\x20size','production\x20|\x20daily','boolean','yes','Alias\x20for\x20--non-interactive','watch','env','Record\x20ID','Skip\x20confirmation\x20for\x20high-risk\x20writes','expectedCount','6264111dNsYJc','keyword','project','2808882GgNSdX','remote','1297975DYIkGL','3992404XsGFGY','Show\x20help','Description','26SCZUwd','clear','from-env','Expected\x20affected\x20count','Skip\x20import\x20generation','description','meowKey','stdin','Use\x20project\x20config\x20scope','Clear','name','Override\x20appcode','sqlcode','file','dry-run','Force\x20overwrite','all','reveal','value','9569064wgtNCU','non-interactive','map','Verbose\x20output','output','type','Output\x20format','Target\x20path','SQL\x20code','Description\x20file','db-id','operation','JSON\x20params','skipImports','help','Output\x20path','Select\x20app\x20profile\x20by\x20name','sqlname','params','@lovrabet/rabetbase-cli','Apply\x20to\x20all','Tags','Type\x20filter','app','format','Read\x20value\x20from\x20stdin','Operation\x20type','pagesize','Force\x20non-interactive\x20mode\x20(CI)','string','enableBffSave','Rabetbase\x20CLI','expected-count','Reveal\x20sensitive\x20value','Title','<name>','2577768rHLdEO'];a173_0x679a=function(){return _0x231963;};return a173_0x679a();}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a174_0x44ae(_0xf04d68,_0x13c566){_0xf04d68=_0xf04d68-0x1ac;const _0xd03120=a174_0xd031();let _0x44ae8f=_0xd03120[_0xf04d68];return _0x44ae8f;}const a174_0x27b3f2=a174_0x44ae;function a174_0xd031(){const _0x5cd746=['3516219lOtDCt','897hERqNj','compress','2664igrdZO','2135590ySCanL','7118160AcEAEA','3552534YHIQlT','en-US','high-risk-write','438682pRJPFv','production','279852YLpEpX'];a174_0xd031=function(){return _0x5cd746;};return a174_0xd031();}(function(_0x14ed86,_0xafca4){const _0x594a4e=a174_0x44ae,_0x594549=_0x14ed86();while(!![]){try{const _0x1ee27a=parseInt(_0x594a4e(0x1b5))/0x1+-parseInt(_0x594a4e(0x1af))/0x2*(-parseInt(_0x594a4e(0x1ad))/0x3)+parseInt(_0x594a4e(0x1b7))/0x4+parseInt(_0x594a4e(0x1b0))/0x5+-parseInt(_0x594a4e(0x1b2))/0x6+parseInt(_0x594a4e(0x1ac))/0x7+-parseInt(_0x594a4e(0x1b1))/0x8;if(_0x1ee27a===_0xafca4)break;else _0x594549['push'](_0x594549['shift']());}catch(_0x451221){_0x594549['push'](_0x594549['shift']());}}}(a174_0xd031,0x568b9));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a174_0x27b3f2(0x1b6),'format':a174_0x27b3f2(0x1ae),'locale':a174_0x27b3f2(0x1b3),'riskLevel':a174_0x27b3f2(0x1b4),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a174_0x27b3f2(0x1ae);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a175_0x1fe7ca=a175_0x2bc0;function a175_0x2bc0(_0x421e96,_0x5140e5){_0x421e96=_0x421e96-0x1ae;const _0xf778a8=a175_0xf778();let _0x2bc0e4=_0xf778a8[_0x421e96];return _0x2bc0e4;}(function(_0x12b9c5,_0x16fbfd){const _0x5d1410=a175_0x2bc0,_0x26522a=_0x12b9c5();while(!![]){try{const _0x1966e8=-parseInt(_0x5d1410(0x1ba))/0x1+-parseInt(_0x5d1410(0x1b7))/0x2*(parseInt(_0x5d1410(0x1b6))/0x3)+-parseInt(_0x5d1410(0x1b0))/0x4*(parseInt(_0x5d1410(0x1bf))/0x5)+parseInt(_0x5d1410(0x1b5))/0x6*(parseInt(_0x5d1410(0x1bb))/0x7)+parseInt(_0x5d1410(0x1bc))/0x8+-parseInt(_0x5d1410(0x1be))/0x9+parseInt(_0x5d1410(0x1b8))/0xa;if(_0x1966e8===_0x16fbfd)break;else _0x26522a['push'](_0x26522a['shift']());}catch(_0x4f9adb){_0x26522a['push'](_0x26522a['shift']());}}}(a175_0xf778,0x5f664));function a175_0xf778(){const _0x1c7e00=['userDomain','6oYlgnF','1179NIlnKI','2706wBjZmM','9434830FiVTpb','https://daily-runtime.lovrabet.com','307729mPldsk','889266ozYzGU','5942048tPvnZo','trim','934020RgwtIv','15ZNcWkX','https://api.lovrabet.com','https://user.lovrabet.com','639044gAdzJS','/web-app/app/','https://runtime.lovrabet.com','https://app.lovrabet.com'];a175_0xf778=function(){return _0x1c7e00;};return a175_0xf778();}import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x21d0fb){const _0x6fcb82=a175_0x2bc0;customApiDomain=_0x21d0fb?.['apiDomain'],customUserDomain=_0x21d0fb?.[_0x6fcb82(0x1b4)],customRuntimeDomain=_0x21d0fb?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a175_0x1fe7ca(0x1af):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a175_0x1fe7ca(0x1ae):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a175_0x1fe7ca(0x1b2):a175_0x1fe7ca(0x1b9));export const getAppDomain=()=>isProduction(getEnv())?a175_0x1fe7ca(0x1b3):'https://daily.lovrabet.com';export const getAppBaseUrl=_0xd8b24b=>{const _0xd8c7e6=a175_0x1fe7ca,_0x350588=encodeURIComponent(_0xd8b24b[_0xd8c7e6(0x1bd)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x350588:getAppDomain()+_0xd8c7e6(0x1b1)+_0x350588;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a176_0x52785b=a176_0x3f0c;(function(_0x5932f0,_0x429c50){const _0x364c21=a176_0x3f0c,_0x4a5289=_0x5932f0();while(!![]){try{const _0x32366e=-parseInt(_0x364c21(0x16b))/0x1*(-parseInt(_0x364c21(0x166))/0x2)+parseInt(_0x364c21(0x16a))/0x3+parseInt(_0x364c21(0x168))/0x4+-parseInt(_0x364c21(0x161))/0x5*(-parseInt(_0x364c21(0x163))/0x6)+-parseInt(_0x364c21(0x16c))/0x7*(-parseInt(_0x364c21(0x170))/0x8)+-parseInt(_0x364c21(0x164))/0x9*(parseInt(_0x364c21(0x16d))/0xa)+parseInt(_0x364c21(0x16e))/0xb*(-parseInt(_0x364c21(0x167))/0xc);if(_0x32366e===_0x429c50)break;else _0x4a5289['push'](_0x4a5289['shift']());}catch(_0x5b3385){_0x4a5289['push'](_0x4a5289['shift']());}}}(a176_0x7d70,0x59e87));export const RABETBASE_ENV_VALUES=[a176_0x52785b(0x162),'daily'];export function normalizeEnv(_0x276b14){const _0x5a2eee=a176_0x52785b;return _0x276b14===_0x5a2eee(0x165)?'production':_0x276b14;}export function isProduction(_0x451f85){return normalizeEnv(_0x451f85)==='production';}function a176_0x3f0c(_0x1e65ea,_0x49be51){_0x1e65ea=_0x1e65ea-0x161;const _0x7d70bd=a176_0x7d70();let _0x3f0c8e=_0x7d70bd[_0x1e65ea];return _0x3f0c8e;}function a176_0x7d70(){const _0x2d3d9b=['49921qaIniy','477127jXigjp','1890uuNlig','2222xxUOAH','dev','72LLqimd','5zeiMnL','production','4294074iGslzm','18756IvKbNJ','online','4kSXvpr','47928DvrUuQ','541508FtOJwU','development','13740mzFBqQ'];a176_0x7d70=function(){return _0x2d3d9b;};return a176_0x7d70();}export function isDaily(_0x508f4c){return normalizeEnv(_0x508f4c)==='daily';}export function isDev(_0x267120){const _0x3f4d2e=a176_0x52785b,_0x5bec97=normalizeEnv(_0x267120);return _0x5bec97===_0x3f4d2e(0x169)||_0x5bec97===_0x3f4d2e(0x16f);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a176_0x52785b(0x162));export function getEnv(){return env;}export function initEnv(_0x1ff4c8){env=normalizeEnv(_0x1ff4c8);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a177_0x515a(){const _0x4e60c1=['6770670zShDuw','152662kQlahZ','45353tQgSiR','20elehZM','10925001LEVqmx','pretty','75147SWjfjo','11574607MHoEMM','6806768EjnQoD','172DQPoVC','10IxDkCG','json','228eSCkHj'];a177_0x515a=function(){return _0x4e60c1;};return a177_0x515a();}const a177_0x4aa837=a177_0x1c62;function a177_0x1c62(_0x1d8807,_0x1409fe){_0x1d8807=_0x1d8807-0x18d;const _0x515ac5=a177_0x515a();let _0x1c62ff=_0x515ac5[_0x1d8807];return _0x1c62ff;}(function(_0x257470,_0x533ac1){const _0x1e5e4a=a177_0x1c62,_0x144307=_0x257470();while(!![]){try{const _0x4cb9a1=parseInt(_0x1e5e4a(0x198))/0x1*(parseInt(_0x1e5e4a(0x18f))/0x2)+parseInt(_0x1e5e4a(0x194))/0x3*(-parseInt(_0x1e5e4a(0x197))/0x4)+parseInt(_0x1e5e4a(0x18e))/0x5+parseInt(_0x1e5e4a(0x18d))/0x6*(-parseInt(_0x1e5e4a(0x190))/0x7)+parseInt(_0x1e5e4a(0x196))/0x8+parseInt(_0x1e5e4a(0x192))/0x9+-parseInt(_0x1e5e4a(0x191))/0xa*(parseInt(_0x1e5e4a(0x195))/0xb);if(_0x4cb9a1===_0x533ac1)break;else _0x144307['push'](_0x144307['shift']());}catch(_0x4d59ff){_0x144307['push'](_0x144307['shift']());}}}(a177_0x515a,0xb82dc));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a177_0x4aa837(0x199),a177_0x4aa837(0x193),'compress'];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x266388,_0x484737){const _0x2b639b=a178_0x2cdd,_0x199024=_0x266388();while(!![]){try{const _0x104aa1=parseInt(_0x2b639b(0x1e6))/0x1+-parseInt(_0x2b639b(0x1e8))/0x2+-parseInt(_0x2b639b(0x1e7))/0x3*(parseInt(_0x2b639b(0x1ea))/0x4)+parseInt(_0x2b639b(0x1eb))/0x5+parseInt(_0x2b639b(0x1ec))/0x6+-parseInt(_0x2b639b(0x1e5))/0x7+parseInt(_0x2b639b(0x1e9))/0x8;if(_0x104aa1===_0x484737)break;else _0x199024['push'](_0x199024['shift']());}catch(_0x46461a){_0x199024['push'](_0x199024['shift']());}}}(a178_0x2ee3,0x496da));function a178_0x2cdd(_0x6dfc17,_0x19bcd2){_0x6dfc17=_0x6dfc17-0x1e5;const _0x2ee3b5=a178_0x2ee3();let _0x2cddca=_0x2ee3b5[_0x6dfc17];return _0x2cddca;}function a178_0x2ee3(){const _0x55e64d=['699220BaTqAJ','2514828QhmRGv','3562300apyrCB','465847lnxCmc','76482WyItUH','945144ExZECu','2263192wtpfeP','4wsnrSE'];a178_0x2ee3=function(){return _0x55e64d;};return a178_0x2ee3();}export const DEFAULT_API_DIR='./src/api';
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a179_0x1b09db=a179_0x2ae7;function a179_0x28f1(){const _0x2f67e6=['1ztAmNF','5694350DORHbt','835428BOnrFc','4aowtrj','5618504nVjYpF','4124118KCleZF','9FArzXS','22514xzOfbr','5187826DhsHsK','5093755vTUjAB','write','read'];a179_0x28f1=function(){return _0x2f67e6;};return a179_0x28f1();}(function(_0x3e1d5d,_0x2df916){const _0x1865e6=a179_0x2ae7,_0x447efc=_0x3e1d5d();while(!![]){try{const _0xd18e65=-parseInt(_0x1865e6(0x173))/0x1*(-parseInt(_0x1865e6(0x16e))/0x2)+-parseInt(_0x1865e6(0x169))/0x3+-parseInt(_0x1865e6(0x16a))/0x4*(-parseInt(_0x1865e6(0x170))/0x5)+-parseInt(_0x1865e6(0x16c))/0x6+-parseInt(_0x1865e6(0x16f))/0x7+parseInt(_0x1865e6(0x16b))/0x8*(parseInt(_0x1865e6(0x16d))/0x9)+parseInt(_0x1865e6(0x174))/0xa;if(_0xd18e65===_0x2df916)break;else _0x447efc['push'](_0x447efc['shift']());}catch(_0x474c8e){_0x447efc['push'](_0x447efc['shift']());}}}(a179_0x28f1,0x91379));function a179_0x2ae7(_0x190f50,_0x3d6f03){_0x190f50=_0x190f50-0x169;const _0x28f1a0=a179_0x28f1();let _0x2ae753=_0x28f1a0[_0x190f50];return _0x2ae753;}export const RISK_LEVEL_VALUES=[a179_0x1b09db(0x172),a179_0x1b09db(0x171),'high-risk-write'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x525cba,_0x68d032){const _0x3241b0=a180_0x5344,_0x1fa405=_0x525cba();while(!![]){try{const _0x21fa80=-parseInt(_0x3241b0(0x85))/0x1+-parseInt(_0x3241b0(0x90))/0x2+parseInt(_0x3241b0(0x77))/0x3+-parseInt(_0x3241b0(0x82))/0x4*(-parseInt(_0x3241b0(0x8c))/0x5)+parseInt(_0x3241b0(0x7d))/0x6+-parseInt(_0x3241b0(0x94))/0x7+parseInt(_0x3241b0(0x7f))/0x8;if(_0x21fa80===_0x68d032)break;else _0x1fa405['push'](_0x1fa405['shift']());}catch(_0x47d5f7){_0x1fa405['push'](_0x1fa405['shift']());}}}(a180_0x1ea1,0x634b3));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0xdedb8f){const _0x50415e=a180_0x5344;return typeof _0xdedb8f===_0x50415e(0x78)&&_0xdedb8f[_0x50415e(0x6f)]()?_0xdedb8f['trim']():undefined;}function appProfiles(_0x1d5aff){const _0x3652e4=a180_0x5344;return _0x1d5aff[_0x3652e4(0x71)]&&typeof _0x1d5aff[_0x3652e4(0x71)]===_0x3652e4(0x70)?_0x1d5aff[_0x3652e4(0x71)]:{};}function resolveDefaultAppName(_0x55920f){const _0x3bf2e0=a180_0x5344,_0x5b3796=stringConfigValue(_0x55920f[_0x3bf2e0(0x8a)]);if(_0x5b3796)return _0x5b3796;return Object[_0x3bf2e0(0x7a)](appProfiles(_0x55920f))[0x0];}function a180_0x1ea1(){const _0x222426=['APP','1153364KRkLHO','apiDir','env','write','3013535tqNPMz','globalConfig','ACCESS_KEY','VERBOSE','read','trim','object','apps','production','locale','format','ENV','riskLevel','778947mwTJPU','string','daily','keys','entries','PAGE_SIZE','633186aSSZFS','true','12378384LkrXKe','maxRisk','RISK_LEVEL','146840LfBgUa','COOKIE','find','718844XgkVje','MAX_RISK','length','inherit','cookie','defaultApp','appcode','30BWcpoA','app','pageSize'];a180_0x1ea1=function(){return _0x222426;};return a180_0x1ea1();}function a180_0x5344(_0x2ee04a,_0x349edd){_0x2ee04a=_0x2ee04a-0x6c;const _0x1ea146=a180_0x1ea1();let _0x534484=_0x1ea146[_0x2ee04a];return _0x534484;}function resolveTopLevelAppCode(_0x58768a){return stringConfigValue(_0x58768a['appcode'])||stringConfigValue(_0x58768a['app']);}export function resolveAppConfig({raw:_0x1fb7b0,flags:_0x5769c0,layers:_0x5de872,readEnv:_0x4aecb0}){const _0x268a8d=a180_0x5344,_0x4436b0=_0x5de872?.['projectConfig']??{},_0x53db04=_0x5de872?.[_0x268a8d(0x95)]??{},_0x2f46c7=Object['keys'](_0x4436b0)['length']>0x0,_0x1082f0=!_0x2f46c7||_0x4436b0[_0x268a8d(0x88)]===!![],_0x5c6071=_0x2f46c7?resolveDefaultAppName(_0x4436b0):undefined,_0x202468=_0x1082f0?resolveDefaultAppName(_0x53db04):undefined,_0x58bcce=stringConfigValue(_0x5769c0[_0x268a8d(0x8d)]),_0x347f6a=_0x4aecb0(_0x268a8d(0x8f)),_0x3dcde6={};if(_0x1fb7b0[_0x268a8d(0x71)]&&typeof _0x1fb7b0[_0x268a8d(0x71)]===_0x268a8d(0x70))for(const [_0x10bbed,_0x4715cf]of Object[_0x268a8d(0x7b)](_0x1fb7b0[_0x268a8d(0x71)])){_0x4715cf&&typeof _0x4715cf===_0x268a8d(0x70)&&_0x4715cf[_0x268a8d(0x8b)]&&(_0x3dcde6[_0x10bbed]=_0x4715cf);}const _0x4164c3=_0x1fb7b0[_0x268a8d(0x8a)]||undefined,_0x3b2f2d=Object['keys'](_0x3dcde6)[_0x268a8d(0x87)]>0x0,_0x1eed5a=_0x58bcce||_0x5c6071||_0x347f6a||_0x202468||_0x4164c3||undefined,_0x124f6b=stringConfigValue(_0x5769c0[_0x268a8d(0x8b)]),_0x67aa42=_0x124f6b?Object[_0x268a8d(0x7b)](_0x3dcde6)[_0x268a8d(0x84)](([,_0x3ee0d5])=>_0x3ee0d5?.[_0x268a8d(0x8b)]===_0x124f6b):undefined,_0x2446d1=_0x67aa42?.[0x0],_0x16b2fd=_0x67aa42?.[0x1],_0x2f83c9=_0x124f6b?_0x2446d1:_0x1eed5a;let _0x139e13=_0x2f83c9&&_0x3dcde6[_0x2f83c9]?_0x3dcde6[_0x2f83c9]:undefined;_0x124f6b&&_0x16b2fd&&(_0x139e13=_0x16b2fd);const _0x35c54d=_0x124f6b?_0x16b2fd??_0x139e13:_0x139e13,_0x23978b=!_0x58bcce&&!_0x5c6071&&_0x347f6a&&_0x2f83c9===_0x347f6a,_0x4873a9=_0x58bcce||(_0x23978b?_0x347f6a:undefined)||(_0x124f6b?_0x2446d1:undefined),_0x135629=_0x35c54d?.['appcode'],_0x2aa0fe=_0x2f46c7?resolveTopLevelAppCode(_0x4436b0):undefined,_0x52bc9f=_0x1082f0?resolveTopLevelAppCode(_0x53db04):undefined,_0x4f86e0=_0x58bcce||_0x5c6071?_0x135629:undefined,_0x4f134c=!_0x58bcce&&!_0x5c6071?_0x135629:undefined,_0x519dff=_0x124f6b||_0x4f86e0||_0x2aa0fe||_0x4f134c||_0x52bc9f||undefined,_0x3c500e=_0x2f46c7?stringConfigValue(_0x4436b0[_0x268a8d(0x92)]):undefined,_0x19672e=_0x1082f0?stringConfigValue(_0x53db04[_0x268a8d(0x92)]):undefined,_0x37f493=_0x5769c0['env']||_0x35c54d?.[_0x268a8d(0x92)]||_0x3c500e||_0x4aecb0(_0x268a8d(0x75))||_0x19672e||_0x1fb7b0[_0x268a8d(0x92)]||DEFAULT_CONFIG_VALUES[_0x268a8d(0x92)],_0x590d49=_0x35c54d?.['locale']||_0x1fb7b0[_0x268a8d(0x73)]||DEFAULT_CONFIG_VALUES[_0x268a8d(0x73)],_0x3d8cf8=_0x4aecb0(_0x268a8d(0x83))||_0x35c54d?.[_0x268a8d(0x89)]||_0x1fb7b0['cookie']||undefined,_0x320511=_0x4aecb0(_0x268a8d(0x6c))||_0x35c54d?.['accessKey']||_0x1fb7b0['accessKey']||undefined,_0x6d9655=_0x5769c0[_0x268a8d(0x74)]||_0x4aecb0('FORMAT')||_0x35c54d?.['format']||_0x1fb7b0['format'],_0x4e79e6=normalizeLegacyOutputFormat(_0x6d9655),_0x1d7e9b=_0x4aecb0(_0x268a8d(0x7c))||_0x35c54d?.[_0x268a8d(0x8e)]||_0x1fb7b0[_0x268a8d(0x8e)],_0xbc777f=_0x1d7e9b?Number(_0x1d7e9b)||undefined:undefined,_0x5120f5=_0x4aecb0(_0x268a8d(0x81))||_0x4aecb0(_0x268a8d(0x86))||_0x35c54d?.[_0x268a8d(0x76)]||_0x1fb7b0[_0x268a8d(0x76)]||_0x1fb7b0[_0x268a8d(0x80)],_0x428200=_0x5120f5===_0x268a8d(0x6e)||_0x5120f5===_0x268a8d(0x93)?_0x5120f5:DEFAULT_CONFIG_VALUES[_0x268a8d(0x76)],_0x5c0d07=_0x4aecb0(_0x268a8d(0x6d)),_0x50cc69=_0x5c0d07==='1'||_0x5c0d07===_0x268a8d(0x7e),_0x209dea=_0x35c54d?.['apiDir']||_0x1fb7b0[_0x268a8d(0x91)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x26d2f3=isDaily(normalizeEnv(String(_0x37f493)))?_0x268a8d(0x79):_0x268a8d(0x72);return{'appCode':typeof _0x519dff===_0x268a8d(0x78)&&_0x519dff[_0x268a8d(0x6f)]()?_0x519dff[_0x268a8d(0x6f)]():undefined,'env':_0x26d2f3,'locale':_0x590d49,'cookie':_0x3d8cf8,'accessKey':_0x320511,'format':_0x4e79e6,'pageSize':_0xbc777f,'riskLevel':_0x428200,'verbose':_0x50cc69,'apiDir':_0x209dea,'apps':_0x3dcde6,'defaultApp':_0x4164c3,'currentApp':_0x3b2f2d?_0x2f83c9:undefined,'explicitAppName':_0x4873a9};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a181_0x3365(_0x1003a9,_0x529717){_0x1003a9=_0x1003a9-0xfc;const _0x13e547=a181_0x13e5();let _0x336585=_0x13e547[_0x1003a9];return _0x336585;}(function(_0x3cc039,_0x46db70){const _0x469a5f=a181_0x3365,_0x157656=_0x3cc039();while(!![]){try{const _0x372e62=parseInt(_0x469a5f(0xff))/0x1*(parseInt(_0x469a5f(0x102))/0x2)+-parseInt(_0x469a5f(0xfe))/0x3+parseInt(_0x469a5f(0x107))/0x4*(-parseInt(_0x469a5f(0x101))/0x5)+parseInt(_0x469a5f(0x105))/0x6+parseInt(_0x469a5f(0xfd))/0x7*(parseInt(_0x469a5f(0x100))/0x8)+-parseInt(_0x469a5f(0xfc))/0x9+parseInt(_0x469a5f(0x103))/0xa;if(_0x372e62===_0x46db70)break;else _0x157656['push'](_0x157656['shift']());}catch(_0xcfe5f8){_0x157656['push'](_0x157656['shift']());}}}(a181_0x13e5,0x66198));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a181_0x13e5(){const _0x43905d=['51129AiZICh','217ueMjWH','954327yZsTUe','1jyDgba','48016DfBGWc','15llRipU','351692iqmFyg','10040470YoOcdV','authRequired','325056HZTWZs','cookie','904188AJtrHk','../auth/get-cookie.js'];a181_0x13e5=function(){return _0x43905d;};return a181_0x13e5();}export async function buildAuth(_0x2db8ce){const _0x5a6641=a181_0x3365,{getCookie:_0xd372af}=await import(_0x5a6641(0x108)),_0x27e429=_0x2db8ce[_0x5a6641(0x106)]||_0xd372af(),_0xf5dbd0=_0x27e429?await getIsSessionValid():![];return{'cookie':_0x27e429,'isLoggedIn':_0xf5dbd0,async 'getOrLogin'(){const _0x2305ba=_0x5a6641;if(_0x27e429&&_0xf5dbd0)return _0x27e429;throw CliErrors[_0x2305ba(0x104)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a182_0x41ff03=a182_0x5a9c;function a182_0x5a9c(_0x3dad80,_0x9903c2){_0x3dad80=_0x3dad80-0x1a6;const _0x5d33b3=a182_0x5d33();let _0x5a9c99=_0x5d33b3[_0x3dad80];return _0x5a9c99;}(function(_0x3e6002,_0x1c65c2){const _0x3c4a1f=a182_0x5a9c,_0x23fd7d=_0x3e6002();while(!![]){try{const _0xf63bd8=parseInt(_0x3c4a1f(0x1c8))/0x1+-parseInt(_0x3c4a1f(0x1a7))/0x2*(parseInt(_0x3c4a1f(0x1d1))/0x3)+parseInt(_0x3c4a1f(0x1b2))/0x4+-parseInt(_0x3c4a1f(0x1a8))/0x5*(parseInt(_0x3c4a1f(0x1b7))/0x6)+-parseInt(_0x3c4a1f(0x1ae))/0x7*(parseInt(_0x3c4a1f(0x1b5))/0x8)+-parseInt(_0x3c4a1f(0x1c5))/0x9+parseInt(_0x3c4a1f(0x1c2))/0xa*(parseInt(_0x3c4a1f(0x1c0))/0xb);if(_0xf63bd8===_0x1c65c2)break;else _0x23fd7d['push'](_0x23fd7d['shift']());}catch(_0x418ac6){_0x23fd7d['push'](_0x23fd7d['shift']());}}}(a182_0x5d33,0x57dbc));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';function a182_0x5d33(){const _0x5a858a=['apiDir','trim','cookie','object','parse','2850785YezLKR','status','.tmp','cwd','885148hegiba','.rabetbase.json','app','8RBAvBx','utf8','10434WckkFt','env','locale','format','appcode','migrated','error','silent','inherit','66GWRKzS','project','2799180JgmSet','defaultApp','get','3778650Bfrbvr','empty','config','52966GLTNMB','apps','accessKey','riskLevel','missing','length','.lovrabet.json','warn','keys','111MfgmMq','stringify','\x0a\x20\x20','string','5822IGyNUy','1895qYgWzj'];a182_0x5d33=function(){return _0x5a858a;};return a182_0x5d33();}export const NEW_CONFIG_NAME=a182_0x41ff03(0x1b3);export const CONFIG_NAMES=[a182_0x41ff03(0x1b3),a182_0x41ff03(0x1ce),'.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x410843=>_0x410843!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x19fffa){for(const _0x5bad2b of CONFIG_NAMES){const _0x63c9af=resolve(_0x19fffa,_0x5bad2b);if(existsSync(_0x63c9af))return _0x63c9af;}return undefined;}export function findProjectRootDirectory(_0x262ce4=process['cwd']()){let _0x3b70e=resolve(_0x262ce4);const {root:_0xa1c197}=parse(_0x3b70e),_0x3542a2=homedir();while(!![]){if(resolveConfigPath(_0x3b70e)){if(_0x3b70e===_0x3542a2)break;return _0x3b70e;}if(_0x3b70e===_0xa1c197||_0x3b70e===_0x3542a2)break;const _0x18cc98=dirname(_0x3b70e);if(_0x18cc98===_0x3b70e)break;_0x3b70e=_0x18cc98;}return resolve(_0x262ce4);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0xcd2eba){const _0x515e5b=a182_0x41ff03;if(!existsSync(_0xcd2eba))return{'status':_0x515e5b(0x1cc)};try{const _0xed6745=readFileSync(_0xcd2eba,{'encoding':'utf8'});if(!_0xed6745?.[_0x515e5b(0x1aa)]())return{'status':'empty'};const _0x5de999=JSON[_0x515e5b(0x1ad)](_0xed6745);return{'status':'ok','data':_0x5de999};}catch(_0x43b90e){return{'status':_0x515e5b(0x1bd),'message':_0x43b90e instanceof Error?_0x43b90e['message']:String(_0x43b90e)};}}function parseCliConfigJsonFile(_0x363069,_0x52de9c,_0x392c0c){const _0x458b7d=a182_0x41ff03,_0x21c210=inspectCliConfigJsonFile(_0x363069);if(_0x21c210['status']===_0x458b7d(0x1cc)||_0x21c210['status']===_0x458b7d(0x1c6))return{};if(_0x21c210[_0x458b7d(0x1af)]==='ok')return _0x21c210['data'];return _0x52de9c===_0x458b7d(0x1cf)&&_0x392c0c&&console[_0x458b7d(0x1bd)](CLI_BIN_NAME+':\x20'+_0x392c0c+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x363069+_0x458b7d(0x1d3)+_0x21c210['message']),{};}function normalizeLegacyConfigShape(_0x530ca1){const _0x34eaa3=a182_0x41ff03;if(!_0x530ca1||typeof _0x530ca1!==_0x34eaa3(0x1ac))return{'config':{},'migrated':![]};const _0x5c063f={..._0x530ca1},_0x41f4fc=_0x5c063f[_0x34eaa3(0x1c9)]&&typeof _0x5c063f['apps']===_0x34eaa3(0x1ac)?{..._0x5c063f[_0x34eaa3(0x1c9)]}:{},_0x56d489=Object[_0x34eaa3(0x1d0)](_0x41f4fc)[_0x34eaa3(0x1cd)],_0x59ac5f=_0x5c063f[_0x34eaa3(0x1bb)]||_0x5c063f[_0x34eaa3(0x1b4)];let _0x1ad019=![];if(_0x59ac5f&&_0x56d489===0x0){const _0x13b00b=typeof _0x5c063f['defaultApp']===_0x34eaa3(0x1a6)&&_0x5c063f[_0x34eaa3(0x1c3)][_0x34eaa3(0x1aa)]()?_0x5c063f[_0x34eaa3(0x1c3)]:String(_0x59ac5f)[_0x34eaa3(0x1aa)]();_0x41f4fc[_0x13b00b]={'appcode':String(_0x59ac5f)[_0x34eaa3(0x1aa)](),..._0x5c063f[_0x34eaa3(0x1b8)]!=null?{'env':_0x5c063f[_0x34eaa3(0x1b8)]}:{},..._0x5c063f['apiDir']!=null?{'apiDir':_0x5c063f[_0x34eaa3(0x1a9)]}:{},..._0x5c063f['cookie']!=null?{'cookie':_0x5c063f[_0x34eaa3(0x1ab)]}:{},..._0x5c063f[_0x34eaa3(0x1ca)]!=null?{'accessKey':_0x5c063f[_0x34eaa3(0x1ca)]}:{},..._0x5c063f['format']!=null?{'format':_0x5c063f['format']}:{},..._0x5c063f['pageSize']!=null?{'pageSize':_0x5c063f['pageSize']}:{},..._0x5c063f[_0x34eaa3(0x1cb)]!=null?{'riskLevel':_0x5c063f[_0x34eaa3(0x1cb)]}:{},..._0x5c063f[_0x34eaa3(0x1b9)]!=null?{'locale':_0x5c063f['locale']}:{}},_0x5c063f['apps']=_0x41f4fc;if(!_0x5c063f[_0x34eaa3(0x1c3)])_0x5c063f[_0x34eaa3(0x1c3)]=_0x13b00b;_0x1ad019=!![];}return(_0x34eaa3(0x1bb)in _0x5c063f||_0x34eaa3(0x1b4)in _0x5c063f)&&(delete _0x5c063f['appcode'],delete _0x5c063f['app'],_0x1ad019=!![]),{'config':_0x5c063f,'migrated':_0x1ad019};}function writeNormalizedConfigIfNeeded(_0xe44320,_0x3e75cf){const _0x31138c=a182_0x41ff03,_0x4e9c3e=JSON[_0x31138c(0x1d2)](_0x3e75cf,null,0x2)+'\x0a';if(normalizedWriteCache[_0x31138c(0x1c4)](_0xe44320)===_0x4e9c3e)return;writeConfigFile(_0xe44320,_0x3e75cf),normalizedWriteCache['set'](_0xe44320,_0x4e9c3e);}function parseAndNormalizeConfig(_0x539193,_0x496514,_0x1628a8){const _0x497d3e=a182_0x41ff03,_0x659aaf=parseCliConfigJsonFile(_0x539193,_0x496514,_0x1628a8),_0x281607=normalizeLegacyConfigShape(_0x659aaf);if(_0x281607[_0x497d3e(0x1bc)])try{writeNormalizedConfigIfNeeded(_0x539193,_0x281607[_0x497d3e(0x1c7)]);}catch{}return _0x281607['config'];}export function loadRawConfigLayers(_0x375a81){const _0x243753=a182_0x41ff03;let _0x4a5a76={},_0x4d1329={};const _0x50b72f=resolveConfigPath(homedir());_0x50b72f&&(_0x4a5a76=parseAndNormalizeConfig(_0x50b72f,_0x243753(0x1cf),'Global'));const _0x423b19=_0x375a81??findProjectRootDirectory(),_0x4b975f=resolveConfigPath(_0x423b19);return _0x4b975f&&(_0x4d1329=parseAndNormalizeConfig(_0x4b975f,_0x243753(0x1cf),'Project')),{'globalPath':_0x50b72f,'projectPath':_0x4b975f,'globalConfig':_0x4a5a76,'projectConfig':_0x4d1329};}const INHERIT_WHITELIST=[a182_0x41ff03(0x1ab),a182_0x41ff03(0x1ca),a182_0x41ff03(0x1b9),a182_0x41ff03(0x1ba),'riskLevel','pageSize'];export function mergeRawConfigLayers(_0x41e62c){const _0x61e026=a182_0x41ff03,{globalConfig:_0x349790,projectConfig:_0x541390}=_0x41e62c,_0x48d207=Object[_0x61e026(0x1d0)](_0x541390)['length']>0x0;if(!_0x48d207)return mergeGlobalOnly(_0x349790);if(_0x541390[_0x61e026(0x1bf)]===!![])return mergeFullInherit(_0x349790,_0x541390);if(_0x541390[_0x61e026(0x1bf)]===![])return mergeIsolated(_0x541390);return mergeProjectFirst(_0x349790,_0x541390);}function mergeGlobalOnly(_0x129a5c){const _0x5a8067=a182_0x41ff03,_0x1358a6={..._0x129a5c},_0x44baf0=_0x129a5c['apps']&&typeof _0x129a5c['apps']===_0x5a8067(0x1ac)?_0x129a5c[_0x5a8067(0x1c9)]:{};if(Object[_0x5a8067(0x1d0)](_0x44baf0)[_0x5a8067(0x1cd)]>0x0)_0x1358a6[_0x5a8067(0x1c9)]=_0x44baf0;if(_0x129a5c[_0x5a8067(0x1c3)])_0x1358a6['defaultApp']=_0x129a5c[_0x5a8067(0x1c3)];else{const _0xb4a6a5=Object[_0x5a8067(0x1d0)](_0x44baf0);if(_0xb4a6a5['length']>0x0)_0x1358a6[_0x5a8067(0x1c3)]=_0xb4a6a5[0x0];}return _0x1358a6;}function mergeIsolated(_0x2a1408){const _0x5ca20b=a182_0x41ff03,_0x38b995={..._0x2a1408};delete _0x38b995[_0x5ca20b(0x1bf)];const _0x2be56e=_0x2a1408[_0x5ca20b(0x1c9)]&&typeof _0x2a1408[_0x5ca20b(0x1c9)]==='object'?_0x2a1408[_0x5ca20b(0x1c9)]:{};Object[_0x5ca20b(0x1d0)](_0x2be56e)[_0x5ca20b(0x1cd)]>0x0?_0x38b995[_0x5ca20b(0x1c9)]=_0x2be56e:delete _0x38b995['apps'];if(_0x5ca20b(0x1c3)in _0x2a1408)_0x38b995['defaultApp']=_0x2a1408[_0x5ca20b(0x1c3)];else Object[_0x5ca20b(0x1d0)](_0x2be56e)['length']>0x0?_0x38b995[_0x5ca20b(0x1c3)]=Object[_0x5ca20b(0x1d0)](_0x2be56e)[0x0]:delete _0x38b995[_0x5ca20b(0x1c3)];return _0x38b995;}function mergeProjectFirst(_0x2d432b,_0x4f9267){const _0x4b1f30=a182_0x41ff03,_0x1d516f={..._0x4f9267};delete _0x1d516f[_0x4b1f30(0x1bf)];for(const _0x95685c of INHERIT_WHITELIST){!(_0x95685c in _0x1d516f)&&_0x95685c in _0x2d432b&&(_0x1d516f[_0x95685c]=_0x2d432b[_0x95685c]);}const _0x3b9bc8=_0x4f9267[_0x4b1f30(0x1c9)]&&typeof _0x4f9267['apps']==='object'?_0x4f9267[_0x4b1f30(0x1c9)]:{};Object[_0x4b1f30(0x1d0)](_0x3b9bc8)[_0x4b1f30(0x1cd)]>0x0?_0x1d516f['apps']=_0x3b9bc8:delete _0x1d516f['apps'];if(_0x4b1f30(0x1c3)in _0x4f9267)_0x1d516f[_0x4b1f30(0x1c3)]=_0x4f9267[_0x4b1f30(0x1c3)];else Object[_0x4b1f30(0x1d0)](_0x3b9bc8)[_0x4b1f30(0x1cd)]>0x0?_0x1d516f[_0x4b1f30(0x1c3)]=Object[_0x4b1f30(0x1d0)](_0x3b9bc8)[0x0]:delete _0x1d516f['defaultApp'];return _0x1d516f;}function mergeFullInherit(_0x5e26f0,_0x2df668){const _0x33325b=a182_0x41ff03,_0x39f01b=_0x5e26f0[_0x33325b(0x1c9)]&&typeof _0x5e26f0['apps']===_0x33325b(0x1ac)?_0x5e26f0[_0x33325b(0x1c9)]:{},_0xb806ae=_0x2df668[_0x33325b(0x1c9)]&&typeof _0x2df668['apps']===_0x33325b(0x1ac)?_0x2df668[_0x33325b(0x1c9)]:{},_0x33f176={..._0x39f01b,..._0xb806ae},_0x4d6448={..._0x5e26f0,..._0x2df668};delete _0x4d6448[_0x33325b(0x1bf)];if(Object[_0x33325b(0x1d0)](_0x33f176)[_0x33325b(0x1cd)]>0x0)_0x4d6448['apps']=_0x33f176;if(_0x33325b(0x1c3)in _0x2df668)_0x4d6448[_0x33325b(0x1c3)]=_0x2df668[_0x33325b(0x1c3)];else{if(Object['keys'](_0xb806ae)[_0x33325b(0x1cd)]>0x0)_0x4d6448[_0x33325b(0x1c3)]=Object['keys'](_0xb806ae)[0x0];else{if(_0x5e26f0['defaultApp'])_0x4d6448['defaultApp']=_0x5e26f0[_0x33325b(0x1c3)];else{const _0x46b3ee=Object['keys'](_0x39f01b);if(_0x46b3ee[_0x33325b(0x1cd)]>0x0)_0x4d6448[_0x33325b(0x1c3)]=_0x46b3ee[0x0];}}}return _0x4d6448;}export function readRawConfigWithLayers(_0x2f880b){const _0x3536bf=loadRawConfigLayers(_0x2f880b);return{'config':mergeRawConfigLayers(_0x3536bf),'layers':_0x3536bf};}export function readRawConfig(_0x55ad18){return mergeRawConfigLayers(loadRawConfigLayers(_0x55ad18));}export function readConfigFile(_0x1e75d1){const _0x1ea68a=a182_0x41ff03;return parseAndNormalizeConfig(_0x1e75d1,_0x1ea68a(0x1be));}export function writeConfigFile(_0x2202aa,_0x3e6fcc){const _0x4d36b1=a182_0x41ff03,_0xccd914=dirname(_0x2202aa);!existsSync(_0xccd914)&&mkdirSync(_0xccd914,{'recursive':!![]});const _0x2befbe=_0x2202aa+_0x4d36b1(0x1b0);try{writeFileSync(_0x2befbe,JSON['stringify'](_0x3e6fcc,null,0x2)+'\x0a',{'encoding':_0x4d36b1(0x1b6),'mode':0x180}),renameSync(_0x2befbe,_0x2202aa);}catch(_0x305198){try{unlinkSync(_0x2befbe);}catch{}throw _0x305198;}}export function resolveWriteConfigPath(_0x284f1a){const _0x5f2f32=a182_0x41ff03,_0x405cc2=_0x284f1a===_0x5f2f32(0x1c1)?process[_0x5f2f32(0x1b1)]():homedir(),_0x17a7db=resolveConfigPath(_0x405cc2);return _0x17a7db??resolve(_0x405cc2,NEW_CONFIG_NAME);}
|
|
1
|
+
const a182_0x24c76c=a182_0x4fd4;(function(_0x544ed3,_0x3d865a){const _0x2cc661=a182_0x4fd4,_0x253264=_0x544ed3();while(!![]){try{const _0x32f001=-parseInt(_0x2cc661(0xcf))/0x1*(parseInt(_0x2cc661(0xe7))/0x2)+parseInt(_0x2cc661(0xed))/0x3*(parseInt(_0x2cc661(0xf7))/0x4)+-parseInt(_0x2cc661(0xe9))/0x5+-parseInt(_0x2cc661(0xef))/0x6+-parseInt(_0x2cc661(0xe2))/0x7*(parseInt(_0x2cc661(0xeb))/0x8)+parseInt(_0x2cc661(0xf9))/0x9*(-parseInt(_0x2cc661(0xe8))/0xa)+parseInt(_0x2cc661(0xe3))/0xb;if(_0x32f001===_0x3d865a)break;else _0x253264['push'](_0x253264['shift']());}catch(_0x347ed7){_0x253264['push'](_0x253264['shift']());}}}(a182_0x1a6c,0x7fd65));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=a182_0x24c76c(0xdf);export const CONFIG_NAMES=[a182_0x24c76c(0xdf),a182_0x24c76c(0xd4),a182_0x24c76c(0xdc)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a182_0x24c76c(0xf4)](_0x46f20a=>_0x46f20a!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x366952){for(const _0x5c6a12 of CONFIG_NAMES){const _0x307f19=resolve(_0x366952,_0x5c6a12);if(existsSync(_0x307f19))return _0x307f19;}return undefined;}export function findProjectRootDirectory(_0x417dce=process[a182_0x24c76c(0xcc)]()){let _0x40a4bb=resolve(_0x417dce);const {root:_0x545af5}=parse(_0x40a4bb),_0x56a184=homedir();while(!![]){if(resolveConfigPath(_0x40a4bb)){if(_0x40a4bb===_0x56a184)break;return _0x40a4bb;}if(_0x40a4bb===_0x545af5||_0x40a4bb===_0x56a184)break;const _0x1df679=dirname(_0x40a4bb);if(_0x1df679===_0x40a4bb)break;_0x40a4bb=_0x1df679;}return resolve(_0x417dce);}export function getProjectConfigPath(){const _0x539b75=a182_0x24c76c;return resolveConfigPath(process[_0x539b75(0xcc)]());}function a182_0x4fd4(_0x200447,_0x4c06cf){_0x200447=_0x200447-0xcc;const _0x1a6c38=a182_0x1a6c();let _0x4fd492=_0x1a6c38[_0x200447];return _0x4fd492;}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x4cb5d9){const _0x1a62ce=a182_0x24c76c;if(!existsSync(_0x4cb5d9))return{'status':'missing'};try{const _0x1be0f0=readFileSync(_0x4cb5d9,{'encoding':_0x1a62ce(0xf1)});if(!_0x1be0f0?.[_0x1a62ce(0xd1)]())return{'status':_0x1a62ce(0xee)};const _0xdfccd3=JSON[_0x1a62ce(0xd8)](_0x1be0f0);return{'status':'ok','data':_0xdfccd3};}catch(_0x35c68c){return{'status':_0x1a62ce(0xd3),'message':_0x35c68c instanceof Error?_0x35c68c['message']:String(_0x35c68c)};}}function parseCliConfigJsonFile(_0xa5b8d2,_0x3a0a28,_0xfb0ec2){const _0x1fa40e=a182_0x24c76c,_0x12fce6=inspectCliConfigJsonFile(_0xa5b8d2);if(_0x12fce6['status']===_0x1fa40e(0xf6)||_0x12fce6[_0x1fa40e(0xda)]===_0x1fa40e(0xee))return{};if(_0x12fce6[_0x1fa40e(0xda)]==='ok')return _0x12fce6['data'];return _0x3a0a28===_0x1fa40e(0xf5)&&_0xfb0ec2&&console[_0x1fa40e(0xd3)](CLI_BIN_NAME+':\x20'+_0xfb0ec2+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0xa5b8d2+_0x1fa40e(0xf0)+_0x12fce6[_0x1fa40e(0xe5)]),{};}function normalizeLegacyConfigShape(_0x3d5eaf){const _0x11565=a182_0x24c76c;if(!_0x3d5eaf||typeof _0x3d5eaf!==_0x11565(0xf2))return{'config':{},'migrated':![]};const _0x18a97d={..._0x3d5eaf},_0x50d02c=_0x18a97d['apps']&&typeof _0x18a97d['apps']===_0x11565(0xf2)?{..._0x18a97d[_0x11565(0xfa)]}:{},_0x18b3cb=Object['keys'](_0x50d02c)['length'],_0x43833c=_0x18a97d[_0x11565(0xcd)]||_0x18a97d[_0x11565(0xf3)];let _0x57b422=![];if(_0x43833c&&_0x18b3cb===0x0){const _0x3720b8=typeof _0x18a97d['defaultApp']==='string'&&_0x18a97d['defaultApp'][_0x11565(0xd1)]()?_0x18a97d['defaultApp']:String(_0x43833c)[_0x11565(0xd1)]();_0x50d02c[_0x3720b8]={'appcode':String(_0x43833c)[_0x11565(0xd1)](),..._0x18a97d[_0x11565(0xe1)]!=null?{'env':_0x18a97d[_0x11565(0xe1)]}:{},..._0x18a97d[_0x11565(0xd0)]!=null?{'apiDir':_0x18a97d[_0x11565(0xd0)]}:{},..._0x18a97d[_0x11565(0xe4)]!=null?{'cookie':_0x18a97d[_0x11565(0xe4)]}:{},..._0x18a97d[_0x11565(0xec)]!=null?{'accessKey':_0x18a97d[_0x11565(0xec)]}:{},..._0x18a97d['format']!=null?{'format':_0x18a97d[_0x11565(0xd5)]}:{},..._0x18a97d[_0x11565(0xd2)]!=null?{'pageSize':_0x18a97d[_0x11565(0xd2)]}:{},..._0x18a97d['riskLevel']!=null?{'riskLevel':_0x18a97d[_0x11565(0xe6)]}:{},..._0x18a97d[_0x11565(0xfc)]!=null?{'locale':_0x18a97d[_0x11565(0xfc)]}:{}},_0x18a97d['apps']=_0x50d02c;if(!_0x18a97d[_0x11565(0xde)])_0x18a97d['defaultApp']=_0x3720b8;_0x57b422=!![];}return(_0x11565(0xcd)in _0x18a97d||_0x11565(0xf3)in _0x18a97d)&&(delete _0x18a97d[_0x11565(0xcd)],delete _0x18a97d[_0x11565(0xf3)],_0x57b422=!![]),{'config':_0x18a97d,'migrated':_0x57b422};}function writeNormalizedConfigIfNeeded(_0x1bbd65,_0x14c5fc){const _0x1edcbf=a182_0x24c76c,_0x2cdff6=JSON[_0x1edcbf(0xfb)](_0x14c5fc,null,0x2)+'\x0a';if(normalizedWriteCache[_0x1edcbf(0xea)](_0x1bbd65)===_0x2cdff6)return;writeConfigFile(_0x1bbd65,_0x14c5fc),normalizedWriteCache[_0x1edcbf(0xdb)](_0x1bbd65,_0x2cdff6);}function parseAndNormalizeConfig(_0x316f6f,_0x4e6694,_0x2606d7){const _0x4bb6ce=a182_0x24c76c,_0x5bf2ff=parseCliConfigJsonFile(_0x316f6f,_0x4e6694,_0x2606d7),_0x5da83b=normalizeLegacyConfigShape(_0x5bf2ff);if(_0x5da83b[_0x4bb6ce(0xce)])try{writeNormalizedConfigIfNeeded(_0x316f6f,_0x5da83b[_0x4bb6ce(0xd7)]);}catch{}return _0x5da83b[_0x4bb6ce(0xd7)];}export function loadRawConfigLayers(_0x4f6d57){const _0x464d55=a182_0x24c76c;let _0x5d42f8={},_0x6883b4={};const _0x2166bd=resolveConfigPath(homedir());_0x2166bd&&(_0x5d42f8=parseAndNormalizeConfig(_0x2166bd,'warn',_0x464d55(0xdd)));const _0x28f599=_0x4f6d57??findProjectRootDirectory(),_0x5c74b9=resolveConfigPath(_0x28f599);return _0x5c74b9&&(_0x6883b4=parseAndNormalizeConfig(_0x5c74b9,_0x464d55(0xf5),'Project')),{'globalPath':_0x2166bd,'projectPath':_0x5c74b9,'globalConfig':_0x5d42f8,'projectConfig':_0x6883b4};}const INHERIT_WHITELIST=[a182_0x24c76c(0xe4),a182_0x24c76c(0xec),'locale',a182_0x24c76c(0xd5),a182_0x24c76c(0xe6),a182_0x24c76c(0xd2)];export function mergeRawConfigLayers(_0x7153bd){const _0x44dc78=a182_0x24c76c,{globalConfig:_0x274590,projectConfig:_0x32de61}=_0x7153bd,_0x43e231=Object[_0x44dc78(0xe0)](_0x32de61)[_0x44dc78(0xf8)]>0x0;if(!_0x43e231)return mergeGlobalOnly(_0x274590);if(_0x32de61['inherit']===!![])return mergeFullInherit(_0x274590,_0x32de61);if(_0x32de61[_0x44dc78(0xd6)]===![])return mergeIsolated(_0x32de61);return mergeProjectFirst(_0x274590,_0x32de61);}function mergeGlobalOnly(_0x351e43){const _0x184aee=a182_0x24c76c,_0x22da13={..._0x351e43},_0x1ad3fc=_0x351e43['apps']&&typeof _0x351e43['apps']==='object'?_0x351e43[_0x184aee(0xfa)]:{};if(Object[_0x184aee(0xe0)](_0x1ad3fc)['length']>0x0)_0x22da13[_0x184aee(0xfa)]=_0x1ad3fc;if(_0x351e43[_0x184aee(0xde)])_0x22da13['defaultApp']=_0x351e43[_0x184aee(0xde)];else{const _0xd9cc68=Object[_0x184aee(0xe0)](_0x1ad3fc);if(_0xd9cc68[_0x184aee(0xf8)]>0x0)_0x22da13['defaultApp']=_0xd9cc68[0x0];}return _0x22da13;}function mergeIsolated(_0x20d600){const _0x50a63b=a182_0x24c76c,_0xe3cd69={..._0x20d600};delete _0xe3cd69[_0x50a63b(0xd6)];const _0x4558f4=_0x20d600[_0x50a63b(0xfa)]&&typeof _0x20d600[_0x50a63b(0xfa)]===_0x50a63b(0xf2)?_0x20d600[_0x50a63b(0xfa)]:{};Object['keys'](_0x4558f4)[_0x50a63b(0xf8)]>0x0?_0xe3cd69[_0x50a63b(0xfa)]=_0x4558f4:delete _0xe3cd69[_0x50a63b(0xfa)];if(_0x50a63b(0xde)in _0x20d600)_0xe3cd69[_0x50a63b(0xde)]=_0x20d600['defaultApp'];else Object['keys'](_0x4558f4)['length']>0x0?_0xe3cd69[_0x50a63b(0xde)]=Object[_0x50a63b(0xe0)](_0x4558f4)[0x0]:delete _0xe3cd69['defaultApp'];return _0xe3cd69;}function a182_0x1a6c(){const _0x36062d=['cwd','appcode','migrated','366181BJnPcY','apiDir','trim','pageSize','error','.lovrabet.json','format','inherit','config','parse','project','status','set','.lovrabetrc','Global','defaultApp','.rabetbase.json','keys','env','7NdbHqv','28158251xlWdPn','cookie','message','riskLevel','2fOltEm','22870FCYnwf','845715ajiUBX','get','8094104RhiwWw','accessKey','214563BOBHmC','empty','3958968OkfAeR','\x0a\x20\x20','utf8','object','app','filter','warn','missing','24hGBqPk','length','1017fvwynK','apps','stringify','locale'];a182_0x1a6c=function(){return _0x36062d;};return a182_0x1a6c();}function mergeProjectFirst(_0x8c8ff6,_0x2ec883){const _0x2c38fe=a182_0x24c76c,_0x27ad10={..._0x2ec883};delete _0x27ad10['inherit'];for(const _0xf485d1 of INHERIT_WHITELIST){!(_0xf485d1 in _0x27ad10)&&_0xf485d1 in _0x8c8ff6&&(_0x27ad10[_0xf485d1]=_0x8c8ff6[_0xf485d1]);}const _0x512ac4=_0x2ec883[_0x2c38fe(0xfa)]&&typeof _0x2ec883[_0x2c38fe(0xfa)]===_0x2c38fe(0xf2)?_0x2ec883[_0x2c38fe(0xfa)]:{};Object[_0x2c38fe(0xe0)](_0x512ac4)[_0x2c38fe(0xf8)]>0x0?_0x27ad10[_0x2c38fe(0xfa)]=_0x512ac4:delete _0x27ad10['apps'];if(_0x2c38fe(0xde)in _0x2ec883)_0x27ad10[_0x2c38fe(0xde)]=_0x2ec883[_0x2c38fe(0xde)];else Object[_0x2c38fe(0xe0)](_0x512ac4)[_0x2c38fe(0xf8)]>0x0?_0x27ad10[_0x2c38fe(0xde)]=Object['keys'](_0x512ac4)[0x0]:delete _0x27ad10['defaultApp'];return _0x27ad10;}function mergeFullInherit(_0x13d361,_0x460cc){const _0x3be8d1=a182_0x24c76c,_0x262b70=_0x13d361[_0x3be8d1(0xfa)]&&typeof _0x13d361['apps']===_0x3be8d1(0xf2)?_0x13d361['apps']:{},_0x3c3d8f=_0x460cc['apps']&&typeof _0x460cc[_0x3be8d1(0xfa)]===_0x3be8d1(0xf2)?_0x460cc[_0x3be8d1(0xfa)]:{},_0xb4e260={..._0x262b70,..._0x3c3d8f},_0x1299f={..._0x13d361,..._0x460cc};delete _0x1299f[_0x3be8d1(0xd6)];if(Object[_0x3be8d1(0xe0)](_0xb4e260)['length']>0x0)_0x1299f['apps']=_0xb4e260;if(_0x3be8d1(0xde)in _0x460cc)_0x1299f[_0x3be8d1(0xde)]=_0x460cc[_0x3be8d1(0xde)];else{if(Object['keys'](_0x3c3d8f)[_0x3be8d1(0xf8)]>0x0)_0x1299f[_0x3be8d1(0xde)]=Object[_0x3be8d1(0xe0)](_0x3c3d8f)[0x0];else{if(_0x13d361[_0x3be8d1(0xde)])_0x1299f[_0x3be8d1(0xde)]=_0x13d361['defaultApp'];else{const _0x2d5376=Object[_0x3be8d1(0xe0)](_0x262b70);if(_0x2d5376[_0x3be8d1(0xf8)]>0x0)_0x1299f[_0x3be8d1(0xde)]=_0x2d5376[0x0];}}}return _0x1299f;}export function readRawConfigWithLayers(_0x544d8b){const _0x589e0c=loadRawConfigLayers(_0x544d8b);return{'config':mergeRawConfigLayers(_0x589e0c),'layers':_0x589e0c};}export function readRawConfig(_0x4e07a5){return mergeRawConfigLayers(loadRawConfigLayers(_0x4e07a5));}export function readConfigFile(_0x33a9aa){return parseAndNormalizeConfig(_0x33a9aa,'silent');}export function writeConfigFile(_0x3a3068,_0x2f8856){const _0x81ffd2=a182_0x24c76c,_0x37f91c=dirname(_0x3a3068);!existsSync(_0x37f91c)&&mkdirSync(_0x37f91c,{'recursive':!![]});const _0x103a46=_0x3a3068+'.tmp';try{writeFileSync(_0x103a46,JSON[_0x81ffd2(0xfb)](_0x2f8856,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x103a46,_0x3a3068);}catch(_0x419fd7){try{unlinkSync(_0x103a46);}catch{}throw _0x419fd7;}}export function resolveWriteConfigPath(_0x132ad5){const _0x26f77e=a182_0x24c76c,_0x5ce741=_0x132ad5===_0x26f77e(0xd9)?process[_0x26f77e(0xcc)]():homedir(),_0x1c36e8=resolveConfigPath(_0x5ce741);return _0x1c36e8??resolve(_0x5ce741,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a183_0x288a97=a183_0x3c96;(function(_0x378304,_0x450422){const _0x569cb2=a183_0x3c96,_0x23f53f=_0x378304();while(!![]){try{const _0x394e47=parseInt(_0x569cb2(0xbe))/0x1*(-parseInt(_0x569cb2(0xbc))/0x2)+parseInt(_0x569cb2(0xc2))/0x3*(parseInt(_0x569cb2(0xb2))/0x4)+-parseInt(_0x569cb2(0xb0))/0x5+-parseInt(_0x569cb2(0xc3))/0x6*(parseInt(_0x569cb2(0xaa))/0x7)+parseInt(_0x569cb2(0xc6))/0x8+-parseInt(_0x569cb2(0xcb))/0x9*(parseInt(_0x569cb2(0xba))/0xa)+-parseInt(_0x569cb2(0xcc))/0xb*(-parseInt(_0x569cb2(0xd2))/0xc);if(_0x394e47===_0x450422)break;else _0x23f53f['push'](_0x23f53f['shift']());}catch(_0x4c17b5){_0x23f53f['push'](_0x23f53f['shift']());}}}(a183_0x5aaa,0xdf7bf));import{resolve}from'node:path';function a183_0x5aaa(){const _0x4ec0a1=['keys','appcode','1138430ZNUVcb','projectConfig','313038avtHne','runtimeDomain','2AvWVsj','trim','object','./utils/is-non-interactive.js','264gcmOGc','34428ZXJfZP','join','string','5703160jeIGWP','project','apps','env','./constant/domain.js','27UjuizE','33vTmUWZ','-api.ts','template_base_url','./constant/env.js','argv','https://g.lovrabet.com/dist/lovrabet-skill','1283796HyTvCp','api.ts','setRawCommand','userDomain','119pxmgiI','apiDomain','slice','apiDir','defaultApp','length','2380980doQeBB','find','50448cYHtmq','replace','entries','globalConfig','setLogPath','filter'];a183_0x5aaa=function(){return _0x4ec0a1;};return a183_0x5aaa();}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(_0x360244){return process.env[`RABETBASE_${_0x360244}`]||process.env[`LOVRABET_${_0x360244}`]||undefined;}export async function createContext(_0x452130){const _0x4b5b80=a183_0x3c96,{config:_0x425bcc,layers:_0x1bb086}=readRawConfigWithLayers(),_0x5e0418=buildConfig(_0x425bcc,_0x452130,_0x1bb086),{initEnv:_0x457ac1}=await import(_0x4b5b80(0xcf));if(_0x5e0418[_0x4b5b80(0xc9)])_0x457ac1(_0x5e0418['env']);else _0x452130['env']&&typeof _0x452130['env']==='string'&&_0x457ac1(_0x452130[_0x4b5b80(0xc9)]);const {initDomains:_0x3424bd,getUserDomain:_0x9764d2,getApiDomain:_0x2169b8}=await import(_0x4b5b80(0xca));_0x3424bd({'apiDomain':_0x425bcc[_0x4b5b80(0xab)]||undefined,'userDomain':_0x425bcc[_0x4b5b80(0xd5)]||undefined,'runtimeDomain':_0x425bcc[_0x4b5b80(0xbd)]||undefined});const _0xc6d7de={'apiDomain':_0x2169b8(),'userDomain':_0x9764d2()},_0x58b412=await buildAuth(_0x5e0418);logger[_0x4b5b80(0xb6)](process['cwd']());const _0x558956=(CLI_BIN_NAME+'\x20'+process[_0x4b5b80(0xd0)][_0x4b5b80(0xac)](0x2)[_0x4b5b80(0xc4)]('\x20'))[_0x4b5b80(0xbf)]();logger[_0x4b5b80(0xd4)](_0x558956);const {isNonInteractive:_0x250fac}=await import(_0x4b5b80(0xc1)),_0x77fd9b=_0x250fac(_0x452130);return{'config':_0x5e0418,'auth':_0x58b412,'logger':logger,'env':_0xc6d7de,'nonInteractive':_0x77fd9b};}function a183_0x3c96(_0x4689b5,_0x555415){_0x4689b5=_0x4689b5-0xaa;const _0x5aaadf=a183_0x5aaa();let _0x3c965a=_0x5aaadf[_0x4689b5];return _0x3c965a;}export function buildConfigFromFlags(_0x3bc7b6){const {config:_0x3ec316,layers:_0x31f856}=readRawConfigWithLayers();return buildConfig(_0x3ec316,_0x3bc7b6,_0x31f856);}export function getConfigAppCode(_0x1ba985){const _0x4d45d0=a183_0x3c96,_0x5f0e6f=readRawConfig(_0x1ba985);if(_0x5f0e6f[_0x4d45d0(0xc8)]&&typeof _0x5f0e6f[_0x4d45d0(0xc8)]===_0x4d45d0(0xc0)){const _0x2ca386=_0x5f0e6f['defaultApp'];if(_0x2ca386&&_0x5f0e6f['apps'][_0x2ca386]?.[_0x4d45d0(0xb9)])return String(_0x5f0e6f[_0x4d45d0(0xc8)][_0x2ca386]['appcode'])[_0x4d45d0(0xbf)]();const _0x38fba7=Object['values'](_0x5f0e6f[_0x4d45d0(0xc8)])[0x0];if(_0x38fba7?.['appcode'])return String(_0x38fba7[_0x4d45d0(0xb9)])[_0x4d45d0(0xbf)]();}const _0x4b5352=_0x5f0e6f[_0x4d45d0(0xb9)]||_0x5f0e6f['app'];if(typeof _0x4b5352!==_0x4d45d0(0xc5)||_0x4b5352[_0x4d45d0(0xbf)]()==='')return undefined;return _0x4b5352[_0x4d45d0(0xbf)]();}export function getMultiAppConfigs(_0x204486=a183_0x288a97(0xc7),_0x60d23e){const _0xf0f15a=a183_0x288a97,_0x424903=loadRawConfigLayers(_0x60d23e);let _0x55ad4e,_0x3bde63;if(_0x204486==='merged'){const _0x256581=_0x424903['globalConfig'][_0xf0f15a(0xc8)]&&typeof _0x424903['globalConfig'][_0xf0f15a(0xc8)]===_0xf0f15a(0xc0)?_0x424903[_0xf0f15a(0xb5)][_0xf0f15a(0xc8)]:{},_0x1944dc=_0x424903[_0xf0f15a(0xbb)][_0xf0f15a(0xc8)]&&typeof _0x424903[_0xf0f15a(0xbb)][_0xf0f15a(0xc8)]==='object'?_0x424903[_0xf0f15a(0xbb)]['apps']:{};_0x55ad4e={..._0x256581,..._0x1944dc};const _0x561255=readRawConfig(_0x60d23e);_0x3bde63=_0x561255[_0xf0f15a(0xae)];}else _0x55ad4e=_0x424903[_0xf0f15a(0xbb)]['apps'],_0x3bde63=_0x424903[_0xf0f15a(0xbb)][_0xf0f15a(0xae)];if(!_0x55ad4e||typeof _0x55ad4e!==_0xf0f15a(0xc0)||Object[_0xf0f15a(0xb8)](_0x55ad4e)[_0xf0f15a(0xaf)]===0x0)return null;return Object[_0xf0f15a(0xb4)](_0x55ad4e)['map'](([_0x3b8fee,_0x14244a])=>({'name':_0x3b8fee,'appcode':_0x14244a?.['appcode']||'','isDefault':_0x3b8fee===_0x3bde63,'env':_0x14244a?.[_0xf0f15a(0xc9)],'apiDir':_0x14244a?.['apiDir'],'cookie':_0x14244a?.['cookie']||undefined}))[_0xf0f15a(0xb7)](_0x1df7b3=>_0x1df7b3[_0xf0f15a(0xb9)]);}export function getTemplateBaseUrl(_0xa49bbf){const _0x3e14a8=a183_0x288a97,_0x25d0d8=readRawConfig(_0xa49bbf);if(_0x25d0d8[_0x3e14a8(0xce)]&&typeof _0x25d0d8[_0x3e14a8(0xce)]===_0x3e14a8(0xc5))return _0x25d0d8[_0x3e14a8(0xce)][_0x3e14a8(0xb3)](/\/$/,'');return _0x3e14a8(0xd1);}function buildConfig(_0x4b5dca,_0x2798d8,_0x26057c){return{...resolveAppConfig({'raw':_0x4b5dca,'flags':_0x2798d8,'layers':_0x26057c,'readEnv':env}),'raw':_0x4b5dca};}export function resolveApiFilePath(_0x432ffe,_0x2f4cc3){const _0x3cba37=a183_0x288a97,_0x3de03a=resolve(process['cwd'](),_0x432ffe),_0x538007=resolve(_0x3de03a,_0x3cba37(0xd3));if(!_0x2f4cc3)return _0x538007;const _0x4c0496=readRawConfig(),_0x1ab188=_0x4c0496[_0x3cba37(0xc8)]&&typeof _0x4c0496[_0x3cba37(0xc8)]===_0x3cba37(0xc0)?_0x4c0496[_0x3cba37(0xc8)]:{},_0x4a786e=Object[_0x3cba37(0xb4)](_0x1ab188)[_0x3cba37(0xb1)](([,_0x47708f])=>_0x47708f?.[_0x3cba37(0xb9)]===_0x2f4cc3);if(!_0x4a786e)return _0x538007;const [_0x3b5ee5,_0x2440a4]=_0x4a786e,_0x4d737f=typeof _0x4c0496['defaultApp']===_0x3cba37(0xc5)?_0x4c0496[_0x3cba37(0xae)]:undefined;if(_0x2440a4?.[_0x3cba37(0xad)])return _0x538007;if(_0x4d737f&&_0x3b5ee5!==_0x4d737f)return resolve(_0x3de03a,_0x3b5ee5+_0x3cba37(0xcd));return _0x538007;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c488a,_0x3018cf){const _0x212581=a184_0x323f,_0x15d233=_0x1c488a();while(!![]){try{const _0x53de24=-parseInt(_0x212581(0x1a9))/0x1+-parseInt(_0x212581(0x1a7))/0x2+parseInt(_0x212581(0x19e))/0x3+-parseInt(_0x212581(0x1a4))/0x4+-parseInt(_0x212581(0x1a6))/0x5*(parseInt(_0x212581(0x1a2))/0x6)+parseInt(_0x212581(0x1ab))/0x7+parseInt(_0x212581(0x1aa))/0x8;if(_0x53de24===_0x3018cf)break;else _0x15d233['push'](_0x15d233['shift']());}catch(_0x4925b2){_0x15d233['push'](_0x15d233['shift']());}}}(a184_0x5ec3,0xe8191));function a184_0x323f(_0x53d142,_0x491859){_0x53d142=_0x53d142-0x19d;const _0x5ec362=a184_0x5ec3();let _0x323fca=_0x5ec362[_0x53d142];return _0x323fca;}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x3ad4c1){const _0x3baa7e=a184_0x323f,_0x1ddd90=[],_0x5f5125=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x2cfd2c;while((_0x2cfd2c=_0x5f5125[_0x3baa7e(0x1a1)](_0x3ad4c1))!==null){_0x1ddd90['push']({'datasetCode':_0x2cfd2c[0x1],'tableName':_0x2cfd2c[0x2],'name':_0x2cfd2c[0x3],'alias':_0x2cfd2c[0x4]});}return _0x1ddd90;}export function loadAliasMap(_0x10b72f,_0x3378e2,_0x1dbdac){const _0x31e390=a184_0x323f,_0x279153=_0x1dbdac??resolve(process[_0x31e390(0x1a8)](),_0x10b72f,_0x31e390(0x1a5));if(cache[_0x31e390(0x19f)](_0x279153))return cache['get'](_0x279153);if(!existsSync(_0x279153))return cache['set'](_0x279153,[]),[];try{const _0x7fd1c8=readFileSync(_0x279153,_0x31e390(0x1a0)),_0x4f816b=parseApiFile(_0x7fd1c8);return cache[_0x31e390(0x1ac)](_0x279153,_0x4f816b),_0x4f816b;}catch{return cache[_0x31e390(0x1ac)](_0x279153,[]),[];}}function a184_0x5ec3(){const _0x30a3d6=['exec','6HcYqKD','alias','4946488JoeiaV','api.ts','3667675dwOyOG','2505352tehAzU','cwd','1741104vlnsyT','25752408XjoUOa','11745783ChifOv','set','find','datasetCode','3052770SlAGOv','has','utf-8'];a184_0x5ec3=function(){return _0x30a3d6;};return a184_0x5ec3();}export function resolveAlias(_0x248bf5,_0x2b7a08,_0x1107a6,_0x293479){const _0x4d8546=a184_0x323f;if(!_0x2b7a08)return undefined;const _0x314c9b=loadAliasMap(_0x248bf5,_0x1107a6,_0x293479),_0x3be8c4=_0x314c9b[_0x4d8546(0x1ad)](_0x386873=>_0x386873[_0x4d8546(0x1a3)]===_0x2b7a08);return _0x3be8c4?.[_0x4d8546(0x19d)];}export function listAliases(_0x56ec53,_0x2705cd,_0x3391ce){return loadAliasMap(_0x56ec53,_0x2705cd,_0x3391ce);}
|