@lovrabet/rabetbase-cli 2.3.8 → 2.3.9-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/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_0x1e99a9=a173_0x23c4;(function(_0x1fb75a,_0x15b489){const _0x42673b=a173_0x23c4,_0x3f0fa8=_0x1fb75a();while(!![]){try{const _0x41e04b=parseInt(_0x42673b(0x172))/0x1+-parseInt(_0x42673b(0x164))/0x2*(-parseInt(_0x42673b(0x18a))/0x3)+-parseInt(_0x42673b(0x159))/0x4+-parseInt(_0x42673b(0x1a4))/0x5+-parseInt(_0x42673b(0x1a6))/0x6*(parseInt(_0x42673b(0x15f))/0x7)+parseInt(_0x42673b(0x14e))/0x8*(parseInt(_0x42673b(0x13f))/0x9)+-parseInt(_0x42673b(0x1aa))/0xa*(-parseInt(_0x42673b(0x18b))/0xb);if(_0x41e04b===_0x15b489)break;else _0x3f0fa8['push'](_0x3f0fa8['shift']());}catch(_0x4478a8){_0x3f0fa8['push'](_0x3f0fa8['shift']());}}}(a173_0x1ae3,0x7e651));export const CLI_BIN_NAME=a173_0x1e99a9(0x1a5);export const CLI_DISPLAY_NAME=a173_0x1e99a9(0x17e);function a173_0x23c4(_0x47bf78,_0x3974e0){_0x47bf78=_0x47bf78-0x13a;const _0x1ae324=a173_0x1ae3();let _0x23c42e=_0x1ae324[_0x47bf78];return _0x23c42e;}export const NPM_PACKAGE_NAME=a173_0x1e99a9(0x151);function a173_0x1ae3(){const _0x1fcad8=['Page\x20number','dbid','functionNode','force','description-file','Keyword\x20filter','Force\x20non-interactive\x20mode\x20(CI)','Alias\x20for\x20--non-interactive','enable-bff-save','output','Read\x20value\x20from\x20environment\x20variable','stdin','3036720UcUPVr','rabetbase','379554VaBzES','Expected\x20affected\x20count','descriptionFile','watch','3527380SZPZQM','params','expectedCount','keyword','Dataset\x20code','DB\x20ID','18fAAcOh','dbId','Page\x20size','sql','non-interactive','Description\x20file','appcode','target','Watch\x20mode','datasetcode','Use\x20global\x20config\x20scope','tags','page','Output\x20format','boolean','3151424ziYgNI','verbose','SQL\x20string','@lovrabet/rabetbase-cli','name','Select\x20app\x20profile\x20by\x20name','File\x20path','JSON\x20params','app','Title','project','2321448UePDNv','json\x20|\x20pretty\x20|\x20compress','value','Confirm\x20destructive\x20action','remote','sqlname','49VDTAVm','skip-imports','description','key','env','1653854QJTUXD','sql-name','Output\x20path','nonInteractive','operation','title','global','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Environment','Use\x20remote','sqlcode','Preview\x20operation\x20without\x20executing','Config\x20value','Enable\x20BFF\x20save','180711mCLBHK','Verbose\x20output','yes','Type\x20filter','all','dryRun','reveal','string','clear','<code>','pagesize','Reveal\x20sensitive\x20value','Rabetbase\x20CLI','Operation\x20type','Schemas','<expr>','SQL\x20name','Override\x20appcode','file','Read\x20value\x20from\x20stdin','Skip\x20import\x20generation','map','Use\x20project\x20config\x20scope','Description','3zNYzqI','11QAYwsA','Record\x20ID','sqlName','Force\x20overwrite','Target\x20path','db-id','type','dry-run','function-node','operationType','schemas','code','Skip\x20confirmation\x20for\x20high-risk\x20writes'];a173_0x1ae3=function(){return _0x1fcad8;};return a173_0x1ae3();}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a173_0x1e99a9(0x145),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x183),'hint':a173_0x1e99a9(0x17b)},{'name':a173_0x1e99a9(0x156),'meowKey':a173_0x1e99a9(0x156),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x153),'hint':'<name>'},{'name':a173_0x1e99a9(0x163),'meowKey':a173_0x1e99a9(0x163),'type':'string','description':a173_0x1e99a9(0x16c),'hint':'production\x20|\x20daily'},{'name':'format','meowKey':'format','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x14c),'hint':a173_0x1e99a9(0x15a)},{'name':'jq','meowKey':'jq','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x16b),'hint':a173_0x1e99a9(0x181)},{'name':a173_0x1e99a9(0x192),'meowKey':a173_0x1e99a9(0x177),'type':'boolean','description':a173_0x1e99a9(0x16f)},{'name':'yes','meowKey':a173_0x1e99a9(0x174),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x197)},{'name':a173_0x1e99a9(0x143),'meowKey':a173_0x1e99a9(0x167),'type':'boolean','description':a173_0x1e99a9(0x19e)},{'name':a173_0x1e99a9(0x16a),'meowKey':a173_0x1e99a9(0x16a),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x149)},{'name':'project','meowKey':a173_0x1e99a9(0x158),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x188)},{'name':'ci','meowKey':'ci','type':'boolean','description':a173_0x1e99a9(0x19f),'hidden':!![]},{'name':'help','meowKey':'help','type':'boolean','description':'Show\x20help'},{'name':a173_0x1e99a9(0x152),'meowKey':a173_0x1e99a9(0x152),'type':a173_0x1e99a9(0x179),'description':'Name','hidden':!![]},{'name':a173_0x1e99a9(0x169),'meowKey':a173_0x1e99a9(0x169),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x157),'hidden':!![]},{'name':a173_0x1e99a9(0x17a),'meowKey':'clear','type':'boolean','description':'Clear','hidden':!![]},{'name':a173_0x1e99a9(0x1a9),'meowKey':a173_0x1e99a9(0x1a9),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x147),'hidden':!![]},{'name':a173_0x1e99a9(0x1a1),'meowKey':'output','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x166),'hidden':!![]},{'name':'params','meowKey':a173_0x1e99a9(0x13a),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x155),'hidden':!![]},{'name':a173_0x1e99a9(0x148),'meowKey':a173_0x1e99a9(0x148),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x13d),'hidden':!![]},{'name':a173_0x1e99a9(0x176),'meowKey':a173_0x1e99a9(0x176),'type':a173_0x1e99a9(0x14d),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a173_0x1e99a9(0x1a0),'meowKey':'enableBffSave','type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x171),'hidden':!![]},{'name':'id','meowKey':'id','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x18c),'hidden':!![]},{'name':'type','meowKey':'type','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x175),'hidden':!![]},{'name':a173_0x1e99a9(0x184),'meowKey':'file','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x154),'hidden':!![]},{'name':a173_0x1e99a9(0x16e),'meowKey':'sqlcode','type':'string','description':'SQL\x20code','hidden':!![]},{'name':a173_0x1e99a9(0x165),'meowKey':a173_0x1e99a9(0x18d),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x182),'hidden':!![]},{'name':'sqlname','meowKey':a173_0x1e99a9(0x15e),'type':a173_0x1e99a9(0x179),'description':'SQL\x20name','hidden':!![]},{'name':a173_0x1e99a9(0x190),'meowKey':a173_0x1e99a9(0x140),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x13e),'hidden':!![]},{'name':a173_0x1e99a9(0x199),'meowKey':a173_0x1e99a9(0x199),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x13e),'hidden':!![]},{'name':a173_0x1e99a9(0x161),'meowKey':a173_0x1e99a9(0x161),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x189),'hidden':!![]},{'name':a173_0x1e99a9(0x19c),'meowKey':a173_0x1e99a9(0x1a8),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x144),'hidden':!![]},{'name':a173_0x1e99a9(0x14b),'meowKey':'page','type':'string','description':a173_0x1e99a9(0x198),'hidden':!![]},{'name':a173_0x1e99a9(0x17c),'meowKey':'pagesize','type':'string','description':a173_0x1e99a9(0x141),'hidden':!![]},{'name':a173_0x1e99a9(0x13c),'meowKey':a173_0x1e99a9(0x13c),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x19d),'hidden':!![]},{'name':a173_0x1e99a9(0x196),'meowKey':'code','type':'string','description':'Code\x20filter','hidden':!![]},{'name':a173_0x1e99a9(0x142),'meowKey':a173_0x1e99a9(0x142),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x150),'hidden':!![]},{'name':a173_0x1e99a9(0x195),'meowKey':a173_0x1e99a9(0x195),'type':'string','description':a173_0x1e99a9(0x180),'hidden':!![]},{'name':'operation','meowKey':a173_0x1e99a9(0x168),'type':a173_0x1e99a9(0x179),'description':'Operation\x20type','hidden':!![]},{'name':a173_0x1e99a9(0x146),'meowKey':'target','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x18f),'hidden':!![]},{'name':a173_0x1e99a9(0x160),'meowKey':'skipImports','type':'boolean','description':a173_0x1e99a9(0x186),'hidden':!![]},{'name':a173_0x1e99a9(0x162),'meowKey':a173_0x1e99a9(0x162),'type':'string','description':'Config\x20key','hidden':!![]},{'name':a173_0x1e99a9(0x15b),'meowKey':a173_0x1e99a9(0x15b),'type':'string','description':a173_0x1e99a9(0x170),'hidden':!![]},{'name':a173_0x1e99a9(0x14a),'meowKey':'tags','type':a173_0x1e99a9(0x179),'description':'Tags','hidden':!![]},{'name':a173_0x1e99a9(0x1a3),'meowKey':a173_0x1e99a9(0x1a3),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x185),'hidden':!![]},{'name':'from-env','meowKey':'fromEnv','type':'string','description':a173_0x1e99a9(0x1a2),'hidden':!![]},{'name':a173_0x1e99a9(0x178),'meowKey':'reveal','type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x17d),'hidden':!![]},{'name':a173_0x1e99a9(0x19b),'meowKey':a173_0x1e99a9(0x19b),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x18e),'hidden':!![]},{'name':'confirm','meowKey':'confirm','type':'boolean','description':a173_0x1e99a9(0x15c),'hidden':!![]},{'name':a173_0x1e99a9(0x15d),'meowKey':'remote','type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x16d),'hidden':!![]},{'name':'verbose','meowKey':a173_0x1e99a9(0x14f),'type':'boolean','description':a173_0x1e99a9(0x173),'hidden':!![]},{'name':'expected-count','meowKey':a173_0x1e99a9(0x13b),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x1a7),'hidden':!![]},{'name':'operation-type','meowKey':a173_0x1e99a9(0x194),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x17f),'hidden':!![]},{'name':a173_0x1e99a9(0x193),'meowKey':a173_0x1e99a9(0x19a),'type':'string','description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a173_0x1e99a9(0x145),'app',a173_0x1e99a9(0x163),'format','jq',a173_0x1e99a9(0x192),'yes',a173_0x1e99a9(0x143),'ci']);export function buildMeowFlags(){const _0x5dec7d=a173_0x1e99a9;return Object['fromEntries'](GLOBAL_FLAGS[_0x5dec7d(0x187)](_0x41769a=>[_0x41769a['meowKey'],{'type':_0x41769a[_0x5dec7d(0x191)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a174_0x53472f=a174_0x2849;(function(_0x23d44f,_0xedf660){const _0x18e807=a174_0x2849,_0xe759fc=_0x23d44f();while(!![]){try{const _0x1d22cd=parseInt(_0x18e807(0x19e))/0x1*(parseInt(_0x18e807(0x1a0))/0x2)+parseInt(_0x18e807(0x1a6))/0x3+-parseInt(_0x18e807(0x1a2))/0x4+-parseInt(_0x18e807(0x19a))/0x5*(-parseInt(_0x18e807(0x19f))/0x6)+parseInt(_0x18e807(0x1a3))/0x7*(-parseInt(_0x18e807(0x1a4))/0x8)+parseInt(_0x18e807(0x1a7))/0x9*(parseInt(_0x18e807(0x1a1))/0xa)+parseInt(_0x18e807(0x19d))/0xb*(parseInt(_0x18e807(0x1a5))/0xc);if(_0x1d22cd===_0xedf660)break;else _0xe759fc['push'](_0xe759fc['shift']());}catch(_0x35f735){_0xe759fc['push'](_0xe759fc['shift']());}}}(a174_0x3f09,0xc5444));import{DEFAULT_API_DIR}from'../constant/paths.js';function a174_0x2849(_0x2c67b7,_0xa8d00c){_0x2c67b7=_0x2c67b7-0x19a;const _0x3f09a=a174_0x3f09();let _0x2849cd=_0x3f09a[_0x2c67b7];return _0x2849cd;}export const DEFAULT_CONFIG_VALUES={'env':a174_0x53472f(0x1a8),'format':'compress','locale':a174_0x53472f(0x19c),'riskLevel':a174_0x53472f(0x19b),'apiDir':DEFAULT_API_DIR};function a174_0x3f09(){const _0xd43ee7=['8206YmmjQS','9waqukf','857868mKOCeS','220278uuJiJy','20vEwOEM','1964968NFwThv','2574173WmgTsP','32hBMEbt','3300jilcyH','1489653kZFxJv','2274021MeUppC','production','20ZvRqJF','high-risk-write','en-US'];a174_0x3f09=function(){return _0xd43ee7;};return a174_0x3f09();}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a175_0x210f33=a175_0x53c2;(function(_0x48f277,_0x40bb7c){const _0x16ff65=a175_0x53c2,_0x4b0f91=_0x48f277();while(!![]){try{const _0x32feb7=-parseInt(_0x16ff65(0x116))/0x1*(parseInt(_0x16ff65(0x104))/0x2)+-parseInt(_0x16ff65(0x113))/0x3*(-parseInt(_0x16ff65(0x102))/0x4)+parseInt(_0x16ff65(0x10e))/0x5+parseInt(_0x16ff65(0x114))/0x6*(-parseInt(_0x16ff65(0x112))/0x7)+parseInt(_0x16ff65(0x105))/0x8+parseInt(_0x16ff65(0x108))/0x9+-parseInt(_0x16ff65(0x10a))/0xa*(parseInt(_0x16ff65(0x118))/0xb);if(_0x32feb7===_0x40bb7c)break;else _0x4b0f91['push'](_0x4b0f91['shift']());}catch(_0x34165e){_0x4b0f91['push'](_0x4b0f91['shift']());}}}(a175_0x35c7,0x388ee));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a175_0x53c2(_0x282bde,_0x1af9b1){_0x282bde=_0x282bde-0x102;const _0x35c73c=a175_0x35c7();let _0x53c26e=_0x35c73c[_0x282bde];return _0x53c26e;}export function initDomains(_0x1f7b46){const _0x22e891=a175_0x53c2;customApiDomain=_0x1f7b46?.[_0x22e891(0x110)],customUserDomain=_0x1f7b46?.[_0x22e891(0x107)],customRuntimeDomain=_0x1f7b46?.[_0x22e891(0x109)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a175_0x210f33(0x117):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a175_0x210f33(0x111):a175_0x210f33(0x106));function a175_0x35c7(){const _0x388718=['https://api.lovrabet.com','21oskUKn','1695jQJaQg','389250yngOuj','/app/','32edmIJC','https://user.lovrabet.com','1101287XwjLfh','856RjCXZn','/web-app/app/','10956TcVdFX','2785664vFhOZD','https://daily-api.lovrabet.com','userDomain','1920978lhndQO','runtimeDomain','10USIZOA','https://daily-runtime.lovrabet.com','https://app.lovrabet.com','https://runtime.lovrabet.com','95700wYxuJm','https://daily.lovrabet.com','apiDomain'];a175_0x35c7=function(){return _0x388718;};return a175_0x35c7();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a175_0x210f33(0x10d):a175_0x210f33(0x10b));export const getAppDomain=()=>isProduction(getEnv())?a175_0x210f33(0x10c):a175_0x210f33(0x10f);export const getAppBaseUrl=_0x4c118c=>{const _0x2e9a43=a175_0x210f33,_0x50c8b3=encodeURIComponent(_0x4c118c['trim']());return isProduction(getEnv())?getAppDomain()+_0x2e9a43(0x115)+_0x50c8b3:getAppDomain()+_0x2e9a43(0x103)+_0x50c8b3;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a176_0x5d5c31=a176_0x2341;(function(_0x2cf896,_0x10fb25){const _0x1c33f2=a176_0x2341,_0x3233a9=_0x2cf896();while(!![]){try{const _0xf06624=parseInt(_0x1c33f2(0x107))/0x1*(parseInt(_0x1c33f2(0x10e))/0x2)+-parseInt(_0x1c33f2(0x105))/0x3+parseInt(_0x1c33f2(0x10a))/0x4*(-parseInt(_0x1c33f2(0x103))/0x5)+-parseInt(_0x1c33f2(0x10c))/0x6*(-parseInt(_0x1c33f2(0x10f))/0x7)+parseInt(_0x1c33f2(0x109))/0x8+parseInt(_0x1c33f2(0x10b))/0x9+-parseInt(_0x1c33f2(0x104))/0xa;if(_0xf06624===_0x10fb25)break;else _0x3233a9['push'](_0x3233a9['shift']());}catch(_0x4f4f0e){_0x3233a9['push'](_0x3233a9['shift']());}}}(a176_0x42b3,0x1ba32));export const RABETBASE_ENV_VALUES=[a176_0x5d5c31(0x108),a176_0x5d5c31(0x110)];export function normalizeEnv(_0x5ee101){const _0x15a57c=a176_0x5d5c31;return _0x5ee101===_0x15a57c(0x106)?_0x15a57c(0x108):_0x5ee101;}export function isProduction(_0x43f707){const _0x42efa5=a176_0x5d5c31;return normalizeEnv(_0x43f707)===_0x42efa5(0x108);}function a176_0x2341(_0x5be24e,_0x48d79e){_0x5be24e=_0x5be24e-0x103;const _0x42b3f1=a176_0x42b3();let _0x23414f=_0x42b3f1[_0x5be24e];return _0x23414f;}export function isDaily(_0x18ccf9){const _0x1d24a8=a176_0x5d5c31;return normalizeEnv(_0x18ccf9)===_0x1d24a8(0x110);}export function isDev(_0x3e5cb2){const _0x1a2d9a=a176_0x5d5c31,_0x21a918=normalizeEnv(_0x3e5cb2);return _0x21a918==='development'||_0x21a918===_0x1a2d9a(0x10d);}function a176_0x42b3(){const _0x2b2ecf=['523668fdgzLn','online','2eMDyvB','production','1487080hGraMJ','21076TcMOdJ','1286568LhehBy','426fHaGPm','dev','188776yuCnNc','8407uoCmwv','daily','115zfnQWo','1939390COAURj'];a176_0x42b3=function(){return _0x2b2ecf;};return a176_0x42b3();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a176_0x5d5c31(0x108));export function getEnv(){return env;}export function initEnv(_0x443bcd){env=normalizeEnv(_0x443bcd);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a177_0x2b77cd=a177_0x492b;function a177_0x5bb2(){const _0x102f7c=['18jueTsa','5922248hOMwyB','30003PcNafu','1369690dNQSRA','6819728vMBsrd','2277055gMpXlP','json','16035510gRatGp','9NgHuux','1604122iicQiA','316DbjDpD'];a177_0x5bb2=function(){return _0x102f7c;};return a177_0x5bb2();}function a177_0x492b(_0x221678,_0x335e51){_0x221678=_0x221678-0x148;const _0x5bb2e7=a177_0x5bb2();let _0x492ba5=_0x5bb2e7[_0x221678];return _0x492ba5;}(function(_0x2690a0,_0x3bdf10){const _0x4bc76e=a177_0x492b,_0x332b55=_0x2690a0();while(!![]){try{const _0x1e162c=-parseInt(_0x4bc76e(0x152))/0x1+parseInt(_0x4bc76e(0x148))/0x2*(parseInt(_0x4bc76e(0x14b))/0x3)+parseInt(_0x4bc76e(0x14d))/0x4+-parseInt(_0x4bc76e(0x14e))/0x5+-parseInt(_0x4bc76e(0x149))/0x6*(-parseInt(_0x4bc76e(0x14c))/0x7)+-parseInt(_0x4bc76e(0x14a))/0x8*(-parseInt(_0x4bc76e(0x151))/0x9)+-parseInt(_0x4bc76e(0x150))/0xa;if(_0x1e162c===_0x3bdf10)break;else _0x332b55['push'](_0x332b55['shift']());}catch(_0x2acd18){_0x332b55['push'](_0x332b55['shift']());}}}(a177_0x5bb2,0xe7c31));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a177_0x2b77cd(0x14f),'pretty','compress'];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a178_0x5e154d=a178_0x379b;(function(_0x49a62d,_0x279566){const _0x358f43=a178_0x379b,_0x32fe0e=_0x49a62d();while(!![]){try{const _0x25378e=parseInt(_0x358f43(0x11b))/0x1*(-parseInt(_0x358f43(0x11a))/0x2)+-parseInt(_0x358f43(0x119))/0x3+parseInt(_0x358f43(0x116))/0x4+parseInt(_0x358f43(0x113))/0x5*(parseInt(_0x358f43(0x117))/0x6)+-parseInt(_0x358f43(0x118))/0x7*(-parseInt(_0x358f43(0x114))/0x8)+-parseInt(_0x358f43(0x115))/0x9+parseInt(_0x358f43(0x111))/0xa;if(_0x25378e===_0x279566)break;else _0x32fe0e['push'](_0x32fe0e['shift']());}catch(_0x3e78da){_0x32fe0e['push'](_0x32fe0e['shift']());}}}(a178_0x3515,0x98d6e));export const DEFAULT_API_DIR=a178_0x5e154d(0x112);function a178_0x379b(_0x326031,_0x5c5c0a){_0x326031=_0x326031-0x111;const _0x351534=a178_0x3515();let _0x379b05=_0x351534[_0x326031];return _0x379b05;}function a178_0x3515(){const _0x4b4c71=['./src/api','40650dUlofv','21512avWlnz','7575462EIivEx','3290100FcirzH','396kLsDTK','679txURrG','1265826VBVajt','2ablYhb','823927FuuTne','10936790UyaBdb'];a178_0x3515=function(){return _0x4b4c71;};return a178_0x3515();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a179_0x39ca(_0x4a3b7c,_0x23edbd){_0x4a3b7c=_0x4a3b7c-0x107;const _0x36a97b=a179_0x36a9();let _0x39ca1a=_0x36a97b[_0x4a3b7c];return _0x39ca1a;}(function(_0x2c6cd2,_0xef1af4){const _0x1b4920=a179_0x39ca,_0x44f78c=_0x2c6cd2();while(!![]){try{const _0x33abb6=parseInt(_0x1b4920(0x10e))/0x1*(parseInt(_0x1b4920(0x110))/0x2)+parseInt(_0x1b4920(0x111))/0x3*(-parseInt(_0x1b4920(0x10b))/0x4)+parseInt(_0x1b4920(0x10f))/0x5+parseInt(_0x1b4920(0x109))/0x6+parseInt(_0x1b4920(0x108))/0x7+parseInt(_0x1b4920(0x107))/0x8*(-parseInt(_0x1b4920(0x10d))/0x9)+parseInt(_0x1b4920(0x10c))/0xa*(parseInt(_0x1b4920(0x10a))/0xb);if(_0x33abb6===_0xef1af4)break;else _0x44f78c['push'](_0x44f78c['shift']());}catch(_0x28ecb4){_0x44f78c['push'](_0x44f78c['shift']());}}}(a179_0x36a9,0xd9509));function a179_0x36a9(){const _0x20c2fb=['92792CPCKFa','238227uvAliz','12556216dptlGn','859397uzXwUD','7397706envAwX','11TOhrcY','84lFQZRS','8475690irZcFZ','9soxrkl','23EyJqlu','4284190tnyxje'];a179_0x36a9=function(){return _0x20c2fb;};return a179_0x36a9();}export const RISK_LEVEL_VALUES=['read','write','high-risk-write'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c64da,_0x4d2b1d){const _0x296d4b=a180_0xbe8d,_0x42cb70=_0x3c64da();while(!![]){try{const _0x50e34e=parseInt(_0x296d4b(0x12c))/0x1+parseInt(_0x296d4b(0x14e))/0x2*(parseInt(_0x296d4b(0x136))/0x3)+-parseInt(_0x296d4b(0x146))/0x4+-parseInt(_0x296d4b(0x144))/0x5+parseInt(_0x296d4b(0x145))/0x6*(-parseInt(_0x296d4b(0x126))/0x7)+-parseInt(_0x296d4b(0x142))/0x8*(-parseInt(_0x296d4b(0x12b))/0x9)+-parseInt(_0x296d4b(0x130))/0xa*(-parseInt(_0x296d4b(0x14b))/0xb);if(_0x50e34e===_0x4d2b1d)break;else _0x42cb70['push'](_0x42cb70['shift']());}catch(_0x25c848){_0x42cb70['push'](_0x42cb70['shift']());}}}(a180_0x4f86,0x2b45d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x5a00d5){const _0x15d180=a180_0xbe8d;return typeof _0x5a00d5==='string'&&_0x5a00d5[_0x15d180(0x12a)]()?_0x5a00d5[_0x15d180(0x12a)]():undefined;}function appProfiles(_0x57b98c){const _0x3f339b=a180_0xbe8d;return _0x57b98c[_0x3f339b(0x134)]&&typeof _0x57b98c['apps']===_0x3f339b(0x125)?_0x57b98c['apps']:{};}function resolveDefaultAppName(_0x2b19e5){const _0x1529b2=stringConfigValue(_0x2b19e5['defaultApp']);if(_0x1529b2)return _0x1529b2;return Object['keys'](appProfiles(_0x2b19e5))[0x0];}function resolveTopLevelAppCode(_0x57aa9d){const _0x1c6c46=a180_0xbe8d;return stringConfigValue(_0x57aa9d['appcode'])||stringConfigValue(_0x57aa9d[_0x1c6c46(0x143)]);}function a180_0x4f86(){const _0x48386d=['1398972ICUdHv','MAX_RISK','COOKIE','true','apiDir','341418SxDxLd','env','maxRisk','2ShAvlG','globalConfig','format','cookie','object','424340ThhdTs','length','APP','keys','trim','162SSbFtw','254267PjtvBL','ACCESS_KEY','production','locale','190pFFLBj','inherit','write','riskLevel','apps','entries','62802JDBiiH','pageSize','daily','read','accessKey','RISK_LEVEL','appcode','VERBOSE','PAGE_SIZE','ENV','find','projectConfig','75560SEIfHu','app','1630425LYQaVJ','18lYoANQ'];a180_0x4f86=function(){return _0x48386d;};return a180_0x4f86();}function a180_0xbe8d(_0x453cfa,_0x13d8a6){_0x453cfa=_0x453cfa-0x124;const _0x4f861f=a180_0x4f86();let _0xbe8d3c=_0x4f861f[_0x453cfa];return _0xbe8d3c;}export function resolveAppConfig({raw:_0x1bf03e,flags:_0x2f2ca4,layers:_0x337bb8,readEnv:_0x5bfa38}){const _0x53cab6=a180_0xbe8d,_0x171d45=_0x337bb8?.[_0x53cab6(0x141)]??{},_0x166719=_0x337bb8?.[_0x53cab6(0x14f)]??{},_0x55c347=Object[_0x53cab6(0x129)](_0x171d45)[_0x53cab6(0x127)]>0x0,_0x2a8309=!_0x55c347||_0x171d45[_0x53cab6(0x131)]===!![],_0x53eee3=_0x55c347?resolveDefaultAppName(_0x171d45):undefined,_0x1fb474=_0x2a8309?resolveDefaultAppName(_0x166719):undefined,_0x5701e3=stringConfigValue(_0x2f2ca4['app']),_0x4ef1e9=_0x5bfa38(_0x53cab6(0x128)),_0x534a34={};if(_0x1bf03e[_0x53cab6(0x134)]&&typeof _0x1bf03e[_0x53cab6(0x134)]===_0x53cab6(0x125))for(const [_0x14de04,_0x409a23]of Object[_0x53cab6(0x135)](_0x1bf03e[_0x53cab6(0x134)])){_0x409a23&&typeof _0x409a23===_0x53cab6(0x125)&&_0x409a23['appcode']&&(_0x534a34[_0x14de04]=_0x409a23);}const _0x7d0266=_0x1bf03e['defaultApp']||undefined,_0x37c807=Object[_0x53cab6(0x129)](_0x534a34)[_0x53cab6(0x127)]>0x0,_0x351cfb=_0x5701e3||_0x53eee3||_0x4ef1e9||_0x1fb474||_0x7d0266||undefined,_0x16e9e7=stringConfigValue(_0x2f2ca4['appcode']),_0x2ed721=_0x16e9e7?Object[_0x53cab6(0x135)](_0x534a34)[_0x53cab6(0x140)](([,_0x26ce8e])=>_0x26ce8e?.['appcode']===_0x16e9e7):undefined,_0x4a5c74=_0x2ed721?.[0x0],_0x4bc9f0=_0x2ed721?.[0x1],_0x370c30=_0x16e9e7?_0x4a5c74:_0x351cfb;let _0x3a96ce=_0x370c30&&_0x534a34[_0x370c30]?_0x534a34[_0x370c30]:undefined;_0x16e9e7&&_0x4bc9f0&&(_0x3a96ce=_0x4bc9f0);const _0x2440c9=_0x16e9e7?_0x4bc9f0??_0x3a96ce:_0x3a96ce,_0x4f4ad7=!_0x5701e3&&!_0x53eee3&&_0x4ef1e9&&_0x370c30===_0x4ef1e9,_0x377522=_0x5701e3||(_0x4f4ad7?_0x4ef1e9:undefined)||(_0x16e9e7?_0x4a5c74:undefined),_0x106187=_0x2440c9?.[_0x53cab6(0x13c)],_0x4704e3=_0x55c347?resolveTopLevelAppCode(_0x171d45):undefined,_0x13cbba=_0x2a8309?resolveTopLevelAppCode(_0x166719):undefined,_0x463380=_0x5701e3||_0x53eee3?_0x106187:undefined,_0x1d1a86=!_0x5701e3&&!_0x53eee3?_0x106187:undefined,_0xa27913=_0x16e9e7||_0x463380||_0x4704e3||_0x1d1a86||_0x13cbba||undefined,_0x30f28a=_0x55c347?stringConfigValue(_0x171d45[_0x53cab6(0x14c)]):undefined,_0x7b8126=_0x2a8309?stringConfigValue(_0x166719[_0x53cab6(0x14c)]):undefined,_0x3042e4=_0x2f2ca4[_0x53cab6(0x14c)]||_0x2440c9?.['env']||_0x30f28a||_0x5bfa38(_0x53cab6(0x13f))||_0x7b8126||_0x1bf03e[_0x53cab6(0x14c)]||DEFAULT_CONFIG_VALUES['env'],_0x4aa5d4=_0x2440c9?.[_0x53cab6(0x12f)]||_0x1bf03e[_0x53cab6(0x12f)]||DEFAULT_CONFIG_VALUES[_0x53cab6(0x12f)],_0x2f6fd4=_0x5bfa38(_0x53cab6(0x148))||_0x2440c9?.[_0x53cab6(0x124)]||_0x1bf03e[_0x53cab6(0x124)]||undefined,_0x3dbd0d=_0x5bfa38(_0x53cab6(0x12d))||_0x2440c9?.[_0x53cab6(0x13a)]||_0x1bf03e[_0x53cab6(0x13a)]||undefined,_0x32580e=_0x2f2ca4[_0x53cab6(0x150)]||_0x5bfa38('FORMAT')||_0x2440c9?.[_0x53cab6(0x150)]||_0x1bf03e[_0x53cab6(0x150)],_0x49b5bf=normalizeLegacyOutputFormat(_0x32580e),_0x1b9a7d=_0x5bfa38(_0x53cab6(0x13e))||_0x2440c9?.[_0x53cab6(0x137)]||_0x1bf03e['pageSize'],_0x288fc5=_0x1b9a7d?Number(_0x1b9a7d)||undefined:undefined,_0x4785a0=_0x5bfa38(_0x53cab6(0x13b))||_0x5bfa38(_0x53cab6(0x147))||_0x2440c9?.[_0x53cab6(0x133)]||_0x1bf03e[_0x53cab6(0x133)]||_0x1bf03e[_0x53cab6(0x14d)],_0x496f5e=_0x4785a0===_0x53cab6(0x139)||_0x4785a0===_0x53cab6(0x132)?_0x4785a0:DEFAULT_CONFIG_VALUES[_0x53cab6(0x133)],_0x939fa4=_0x5bfa38(_0x53cab6(0x13d)),_0x2e9751=_0x939fa4==='1'||_0x939fa4===_0x53cab6(0x149),_0x2f261a=_0x2440c9?.[_0x53cab6(0x14a)]||_0x1bf03e['apiDir']||DEFAULT_CONFIG_VALUES[_0x53cab6(0x14a)],_0x13fc2c=isDaily(normalizeEnv(String(_0x3042e4)))?_0x53cab6(0x138):_0x53cab6(0x12e);return{'appCode':typeof _0xa27913==='string'&&_0xa27913[_0x53cab6(0x12a)]()?_0xa27913[_0x53cab6(0x12a)]():undefined,'env':_0x13fc2c,'locale':_0x4aa5d4,'cookie':_0x2f6fd4,'accessKey':_0x3dbd0d,'format':_0x49b5bf,'pageSize':_0x288fc5,'riskLevel':_0x496f5e,'verbose':_0x2e9751,'apiDir':_0x2f261a,'apps':_0x534a34,'defaultApp':_0x7d0266,'currentApp':_0x37c807?_0x370c30:undefined,'explicitAppName':_0x377522};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x109f51,_0x5b5929){const _0x298dc5=a181_0x483f,_0xd4bb57=_0x109f51();while(!![]){try{const _0x1368e4=parseInt(_0x298dc5(0x15a))/0x1+-parseInt(_0x298dc5(0x15c))/0x2*(parseInt(_0x298dc5(0x15e))/0x3)+parseInt(_0x298dc5(0x160))/0x4*(parseInt(_0x298dc5(0x154))/0x5)+parseInt(_0x298dc5(0x15b))/0x6*(-parseInt(_0x298dc5(0x159))/0x7)+parseInt(_0x298dc5(0x157))/0x8*(-parseInt(_0x298dc5(0x155))/0x9)+-parseInt(_0x298dc5(0x15d))/0xa*(-parseInt(_0x298dc5(0x15f))/0xb)+parseInt(_0x298dc5(0x158))/0xc;if(_0x1368e4===_0x5b5929)break;else _0xd4bb57['push'](_0xd4bb57['shift']());}catch(_0x20aa6a){_0xd4bb57['push'](_0xd4bb57['shift']());}}}(a181_0x2edb,0x70040));import{getIsSessionValid}from'../auth/is-session-valid.js';function a181_0x483f(_0x333cd2,_0x2c265e){_0x333cd2=_0x333cd2-0x153;const _0x2edb87=a181_0x2edb();let _0x483f93=_0x2edb87[_0x333cd2];return _0x483f93;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x3e5789){const _0x3b1e71=a181_0x483f,{getCookie:_0x284928}=await import(_0x3b1e71(0x156)),_0x215ed3=_0x3e5789[_0x3b1e71(0x153)]||_0x284928(),_0x440ab2=_0x215ed3?await getIsSessionValid():![];return{'cookie':_0x215ed3,'isLoggedIn':_0x440ab2,async 'getOrLogin'(){if(_0x215ed3&&_0x440ab2)return _0x215ed3;throw CliErrors['authRequired']();}};}function a181_0x2edb(){const _0x53b99c=['555201cpjLoH','../auth/get-cookie.js','8iZJqXG','159720fBclXg','48202fGinFk','115909mNaldR','180AujQDU','66mNsuFi','8889670puaoiT','79896rPqChz','11qnxISv','140FOEakB','cookie','83965GLEkbg'];a181_0x2edb=function(){return _0x53b99c;};return a181_0x2edb();}
|
|
@@ -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_0x2ef11d=a182_0x4780;(function(_0x3dd3b4,_0xaff8c4){const _0x4006b2=a182_0x4780,_0x3e26e9=_0x3dd3b4();while(!![]){try{const _0x525a17=parseInt(_0x4006b2(0x105))/0x1*(-parseInt(_0x4006b2(0x114))/0x2)+parseInt(_0x4006b2(0x10b))/0x3*(-parseInt(_0x4006b2(0x10e))/0x4)+-parseInt(_0x4006b2(0x113))/0x5+parseInt(_0x4006b2(0xee))/0x6*(-parseInt(_0x4006b2(0x109))/0x7)+parseInt(_0x4006b2(0x106))/0x8*(parseInt(_0x4006b2(0xe3))/0x9)+parseInt(_0x4006b2(0xf7))/0xa*(parseInt(_0x4006b2(0x104))/0xb)+parseInt(_0x4006b2(0xf3))/0xc*(parseInt(_0x4006b2(0xef))/0xd);if(_0x525a17===_0xaff8c4)break;else _0x3e26e9['push'](_0x3e26e9['shift']());}catch(_0x214b07){_0x3e26e9['push'](_0x3e26e9['shift']());}}}(a182_0x5edf,0x3234c));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME='.rabetbase.json';export const CONFIG_NAMES=['.rabetbase.json',a182_0x2ef11d(0xf6),a182_0x2ef11d(0x100)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x2a3666=>_0x2a3666!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x4a83b3){for(const _0x64ad3a of CONFIG_NAMES){const _0x5934b6=resolve(_0x4a83b3,_0x64ad3a);if(existsSync(_0x5934b6))return _0x5934b6;}return undefined;}export function findProjectRootDirectory(_0x3b7b1b=process['cwd']()){let _0x243d13=resolve(_0x3b7b1b);const {root:_0x5988d8}=parse(_0x243d13),_0x17098b=homedir();while(!![]){if(resolveConfigPath(_0x243d13)){if(_0x243d13===_0x17098b)break;return _0x243d13;}if(_0x243d13===_0x5988d8||_0x243d13===_0x17098b)break;const _0x23c5dd=dirname(_0x243d13);if(_0x23c5dd===_0x243d13)break;_0x243d13=_0x23c5dd;}return resolve(_0x3b7b1b);}export function getProjectConfigPath(){const _0x282190=a182_0x2ef11d;return resolveConfigPath(process[_0x282190(0xeb)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x1f9216){const _0x59854c=a182_0x2ef11d;if(!existsSync(_0x1f9216))return{'status':_0x59854c(0xff)};try{const _0x1b4c19=readFileSync(_0x1f9216,{'encoding':_0x59854c(0x103)});if(!_0x1b4c19?.['trim']())return{'status':_0x59854c(0x10a)};const _0x35518b=JSON['parse'](_0x1b4c19);return{'status':'ok','data':_0x35518b};}catch(_0x1d1f73){return{'status':_0x59854c(0x112),'message':_0x1d1f73 instanceof Error?_0x1d1f73[_0x59854c(0xfe)]:String(_0x1d1f73)};}}function a182_0x4780(_0x2c23be,_0x2a75a1){_0x2c23be=_0x2c23be-0xe2;const _0x5edf01=a182_0x5edf();let _0x4780bf=_0x5edf01[_0x2c23be];return _0x4780bf;}function a182_0x5edf(){const _0xac928c=['1150QyYSYO','project','locale','1063467gfJcEY','defaultApp','apiDir','trim','config','string','warn','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','cwd','pageSize','.tmp','526314yKmhac','156lhFbIt','migrated','env','inherit','508764wQaodx','status','apps','.lovrabet.json','900EncJZR','get','length','object','app','cookie','riskLevel','message','missing','.lovrabetrc','Global','data','utf8','17369EkFxZs','121UXtPDp','16geqVtE','accessKey','format','21FpsPfR','empty','32856bJaslp','stringify','keys','68YHkxDS','appcode','set','Project','error','813200ggNwEq'];a182_0x5edf=function(){return _0xac928c;};return a182_0x5edf();}function parseCliConfigJsonFile(_0xb40fe6,_0x243ac3,_0x508900){const _0x33751b=a182_0x2ef11d,_0x271f2f=inspectCliConfigJsonFile(_0xb40fe6);if(_0x271f2f['status']===_0x33751b(0xff)||_0x271f2f['status']===_0x33751b(0x10a))return{};if(_0x271f2f[_0x33751b(0xf4)]==='ok')return _0x271f2f[_0x33751b(0x102)];return _0x243ac3===_0x33751b(0xe9)&&_0x508900&&console[_0x33751b(0x112)](CLI_BIN_NAME+':\x20'+_0x508900+_0x33751b(0xea)+_0xb40fe6+'\x0a\x20\x20'+_0x271f2f[_0x33751b(0xfe)]),{};}function normalizeLegacyConfigShape(_0x42d643){const _0x14098a=a182_0x2ef11d;if(!_0x42d643||typeof _0x42d643!==_0x14098a(0xfa))return{'config':{},'migrated':![]};const _0x1a6bd6={..._0x42d643},_0x18d411=_0x1a6bd6[_0x14098a(0xf5)]&&typeof _0x1a6bd6[_0x14098a(0xf5)]===_0x14098a(0xfa)?{..._0x1a6bd6[_0x14098a(0xf5)]}:{},_0x44fe53=Object['keys'](_0x18d411)[_0x14098a(0xf9)],_0x644e5e=_0x1a6bd6[_0x14098a(0x10f)]||_0x1a6bd6[_0x14098a(0xfb)];let _0x129b0e=![];if(_0x644e5e&&_0x44fe53===0x0){const _0x2b7b7c=typeof _0x1a6bd6[_0x14098a(0xe4)]===_0x14098a(0xe8)&&_0x1a6bd6['defaultApp'][_0x14098a(0xe6)]()?_0x1a6bd6[_0x14098a(0xe4)]:String(_0x644e5e)[_0x14098a(0xe6)]();_0x18d411[_0x2b7b7c]={'appcode':String(_0x644e5e)['trim'](),..._0x1a6bd6[_0x14098a(0xf1)]!=null?{'env':_0x1a6bd6['env']}:{},..._0x1a6bd6[_0x14098a(0xe5)]!=null?{'apiDir':_0x1a6bd6[_0x14098a(0xe5)]}:{},..._0x1a6bd6[_0x14098a(0xfc)]!=null?{'cookie':_0x1a6bd6[_0x14098a(0xfc)]}:{},..._0x1a6bd6[_0x14098a(0x107)]!=null?{'accessKey':_0x1a6bd6['accessKey']}:{},..._0x1a6bd6[_0x14098a(0x108)]!=null?{'format':_0x1a6bd6[_0x14098a(0x108)]}:{},..._0x1a6bd6['pageSize']!=null?{'pageSize':_0x1a6bd6['pageSize']}:{},..._0x1a6bd6[_0x14098a(0xfd)]!=null?{'riskLevel':_0x1a6bd6[_0x14098a(0xfd)]}:{},..._0x1a6bd6[_0x14098a(0xe2)]!=null?{'locale':_0x1a6bd6[_0x14098a(0xe2)]}:{}},_0x1a6bd6[_0x14098a(0xf5)]=_0x18d411;if(!_0x1a6bd6['defaultApp'])_0x1a6bd6[_0x14098a(0xe4)]=_0x2b7b7c;_0x129b0e=!![];}return(_0x14098a(0x10f)in _0x1a6bd6||_0x14098a(0xfb)in _0x1a6bd6)&&(delete _0x1a6bd6[_0x14098a(0x10f)],delete _0x1a6bd6[_0x14098a(0xfb)],_0x129b0e=!![]),{'config':_0x1a6bd6,'migrated':_0x129b0e};}function writeNormalizedConfigIfNeeded(_0x337ee7,_0x177d38){const _0x14cb2f=a182_0x2ef11d,_0x35c3f8=JSON[_0x14cb2f(0x10c)](_0x177d38,null,0x2)+'\x0a';if(normalizedWriteCache[_0x14cb2f(0xf8)](_0x337ee7)===_0x35c3f8)return;writeConfigFile(_0x337ee7,_0x177d38),normalizedWriteCache[_0x14cb2f(0x110)](_0x337ee7,_0x35c3f8);}function parseAndNormalizeConfig(_0x34707a,_0xe4ae38,_0x4a983e){const _0x2156a6=a182_0x2ef11d,_0x137d38=parseCliConfigJsonFile(_0x34707a,_0xe4ae38,_0x4a983e),_0x29d7d0=normalizeLegacyConfigShape(_0x137d38);if(_0x29d7d0[_0x2156a6(0xf0)])try{writeNormalizedConfigIfNeeded(_0x34707a,_0x29d7d0[_0x2156a6(0xe7)]);}catch{}return _0x29d7d0[_0x2156a6(0xe7)];}export function loadRawConfigLayers(_0xbde42c){const _0x19d974=a182_0x2ef11d;let _0x2391d2={},_0x23ede7={};const _0x5e19be=resolveConfigPath(homedir());_0x5e19be&&(_0x2391d2=parseAndNormalizeConfig(_0x5e19be,_0x19d974(0xe9),_0x19d974(0x101)));const _0x5cfa78=_0xbde42c??findProjectRootDirectory(),_0x231b36=resolveConfigPath(_0x5cfa78);return _0x231b36&&(_0x23ede7=parseAndNormalizeConfig(_0x231b36,'warn',_0x19d974(0x111))),{'globalPath':_0x5e19be,'projectPath':_0x231b36,'globalConfig':_0x2391d2,'projectConfig':_0x23ede7};}const INHERIT_WHITELIST=[a182_0x2ef11d(0xfc),a182_0x2ef11d(0x107),a182_0x2ef11d(0xe2),'format',a182_0x2ef11d(0xfd),a182_0x2ef11d(0xec)];export function mergeRawConfigLayers(_0x207a67){const _0x91ab8b=a182_0x2ef11d,{globalConfig:_0x41cb60,projectConfig:_0x125519}=_0x207a67,_0x597b1b=Object['keys'](_0x125519)[_0x91ab8b(0xf9)]>0x0;if(!_0x597b1b)return mergeGlobalOnly(_0x41cb60);if(_0x125519[_0x91ab8b(0xf2)]===!![])return mergeFullInherit(_0x41cb60,_0x125519);if(_0x125519[_0x91ab8b(0xf2)]===![])return mergeIsolated(_0x125519);return mergeProjectFirst(_0x41cb60,_0x125519);}function mergeGlobalOnly(_0x324cce){const _0x47efd2=a182_0x2ef11d,_0x1a2722={..._0x324cce},_0x58fb2c=_0x324cce[_0x47efd2(0xf5)]&&typeof _0x324cce[_0x47efd2(0xf5)]==='object'?_0x324cce['apps']:{};if(Object[_0x47efd2(0x10d)](_0x58fb2c)[_0x47efd2(0xf9)]>0x0)_0x1a2722[_0x47efd2(0xf5)]=_0x58fb2c;if(_0x324cce[_0x47efd2(0xe4)])_0x1a2722[_0x47efd2(0xe4)]=_0x324cce[_0x47efd2(0xe4)];else{const _0x4ebaf0=Object['keys'](_0x58fb2c);if(_0x4ebaf0[_0x47efd2(0xf9)]>0x0)_0x1a2722['defaultApp']=_0x4ebaf0[0x0];}return _0x1a2722;}function mergeIsolated(_0x47b625){const _0x45e4ce=a182_0x2ef11d,_0x4b23fe={..._0x47b625};delete _0x4b23fe['inherit'];const _0x4eba9e=_0x47b625[_0x45e4ce(0xf5)]&&typeof _0x47b625[_0x45e4ce(0xf5)]==='object'?_0x47b625['apps']:{};Object['keys'](_0x4eba9e)[_0x45e4ce(0xf9)]>0x0?_0x4b23fe['apps']=_0x4eba9e:delete _0x4b23fe[_0x45e4ce(0xf5)];if(_0x45e4ce(0xe4)in _0x47b625)_0x4b23fe[_0x45e4ce(0xe4)]=_0x47b625[_0x45e4ce(0xe4)];else Object[_0x45e4ce(0x10d)](_0x4eba9e)['length']>0x0?_0x4b23fe['defaultApp']=Object[_0x45e4ce(0x10d)](_0x4eba9e)[0x0]:delete _0x4b23fe['defaultApp'];return _0x4b23fe;}function mergeProjectFirst(_0x2c2286,_0xd4d7df){const _0x3ee7f6=a182_0x2ef11d,_0x1ec6c7={..._0xd4d7df};delete _0x1ec6c7['inherit'];for(const _0x3024bd of INHERIT_WHITELIST){!(_0x3024bd in _0x1ec6c7)&&_0x3024bd in _0x2c2286&&(_0x1ec6c7[_0x3024bd]=_0x2c2286[_0x3024bd]);}const _0x32e148=_0xd4d7df['apps']&&typeof _0xd4d7df[_0x3ee7f6(0xf5)]==='object'?_0xd4d7df[_0x3ee7f6(0xf5)]:{};Object[_0x3ee7f6(0x10d)](_0x32e148)[_0x3ee7f6(0xf9)]>0x0?_0x1ec6c7[_0x3ee7f6(0xf5)]=_0x32e148:delete _0x1ec6c7[_0x3ee7f6(0xf5)];if(_0x3ee7f6(0xe4)in _0xd4d7df)_0x1ec6c7['defaultApp']=_0xd4d7df[_0x3ee7f6(0xe4)];else Object[_0x3ee7f6(0x10d)](_0x32e148)[_0x3ee7f6(0xf9)]>0x0?_0x1ec6c7['defaultApp']=Object[_0x3ee7f6(0x10d)](_0x32e148)[0x0]:delete _0x1ec6c7['defaultApp'];return _0x1ec6c7;}function mergeFullInherit(_0x45e74d,_0x5a2aa9){const _0x4c734a=a182_0x2ef11d,_0x275cf2=_0x45e74d[_0x4c734a(0xf5)]&&typeof _0x45e74d[_0x4c734a(0xf5)]===_0x4c734a(0xfa)?_0x45e74d['apps']:{},_0x16153e=_0x5a2aa9['apps']&&typeof _0x5a2aa9[_0x4c734a(0xf5)]==='object'?_0x5a2aa9[_0x4c734a(0xf5)]:{},_0x386f38={..._0x275cf2,..._0x16153e},_0xe072ce={..._0x45e74d,..._0x5a2aa9};delete _0xe072ce['inherit'];if(Object[_0x4c734a(0x10d)](_0x386f38)[_0x4c734a(0xf9)]>0x0)_0xe072ce[_0x4c734a(0xf5)]=_0x386f38;if(_0x4c734a(0xe4)in _0x5a2aa9)_0xe072ce[_0x4c734a(0xe4)]=_0x5a2aa9[_0x4c734a(0xe4)];else{if(Object[_0x4c734a(0x10d)](_0x16153e)[_0x4c734a(0xf9)]>0x0)_0xe072ce[_0x4c734a(0xe4)]=Object[_0x4c734a(0x10d)](_0x16153e)[0x0];else{if(_0x45e74d[_0x4c734a(0xe4)])_0xe072ce[_0x4c734a(0xe4)]=_0x45e74d[_0x4c734a(0xe4)];else{const _0x293d0c=Object[_0x4c734a(0x10d)](_0x275cf2);if(_0x293d0c[_0x4c734a(0xf9)]>0x0)_0xe072ce[_0x4c734a(0xe4)]=_0x293d0c[0x0];}}}return _0xe072ce;}export function readRawConfigWithLayers(_0x370d73){const _0x2be4fb=loadRawConfigLayers(_0x370d73);return{'config':mergeRawConfigLayers(_0x2be4fb),'layers':_0x2be4fb};}export function readRawConfig(_0x222dd4){return mergeRawConfigLayers(loadRawConfigLayers(_0x222dd4));}export function readConfigFile(_0x524672){return parseAndNormalizeConfig(_0x524672,'silent');}export function writeConfigFile(_0x2ec1fe,_0x14c63f){const _0x351623=a182_0x2ef11d,_0x1a56f4=dirname(_0x2ec1fe);!existsSync(_0x1a56f4)&&mkdirSync(_0x1a56f4,{'recursive':!![]});const _0x499daa=_0x2ec1fe+_0x351623(0xed);try{writeFileSync(_0x499daa,JSON[_0x351623(0x10c)](_0x14c63f,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x499daa,_0x2ec1fe);}catch(_0x46ecca){try{unlinkSync(_0x499daa);}catch{}throw _0x46ecca;}}export function resolveWriteConfigPath(_0x4c643b){const _0x39ac19=a182_0x2ef11d,_0x1c49a5=_0x4c643b===_0x39ac19(0x115)?process[_0x39ac19(0xeb)]():homedir(),_0x241248=resolveConfigPath(_0x1c49a5);return _0x241248??resolve(_0x1c49a5,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a183_0xbb4c47=a183_0x25da;(function(_0x54330d,_0x2697ef){const _0x3aee17=a183_0x25da,_0x237c0c=_0x54330d();while(!![]){try{const _0x386045=parseInt(_0x3aee17(0x113))/0x1+parseInt(_0x3aee17(0x103))/0x2+parseInt(_0x3aee17(0xfe))/0x3+-parseInt(_0x3aee17(0xf8))/0x4+parseInt(_0x3aee17(0x112))/0x5+-parseInt(_0x3aee17(0xf4))/0x6+-parseInt(_0x3aee17(0x10c))/0x7;if(_0x386045===_0x2697ef)break;else _0x237c0c['push'](_0x237c0c['shift']());}catch(_0x2bbb40){_0x237c0c['push'](_0x237c0c['shift']());}}}(a183_0x505d,0x33ef8));import{resolve}from'node:path';function a183_0x25da(_0x571eff,_0x22c379){_0x571eff=_0x571eff-0xec;const _0x505d9a=a183_0x505d();let _0x25da19=_0x505d9a[_0x571eff];return _0x25da19;}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 a183_0x505d(){const _0x19229d=['./utils/is-non-interactive.js','argv','apps','merged','769260sDztPN','apiDir','filter','project','setRawCommand','string','cwd','replace','appcode','4532465FAfGwq','api.ts','env','./constant/domain.js','find','trim','858595eRMTeI','413385xCjTsT','defaultApp','entries','object','projectConfig','setLogPath','userDomain','-api.ts','./constant/env.js','1800768wmFSya','https://g.lovrabet.com/dist/lovrabet-skill','join','app','118540IeBCkv','template_base_url','runtimeDomain','keys','globalConfig','apiDomain','660756glDXBw'];a183_0x505d=function(){return _0x19229d;};return a183_0x505d();}function env(_0x45cfde){return process.env[`RABETBASE_${_0x45cfde}`]||process.env[`LOVRABET_${_0x45cfde}`]||undefined;}export async function createContext(_0x358f77){const _0x4dcb35=a183_0x25da,{config:_0xceb6fb,layers:_0x75fdc4}=readRawConfigWithLayers(),_0x1625c2=buildConfig(_0xceb6fb,_0x358f77,_0x75fdc4),{initEnv:_0x4df509}=await import(_0x4dcb35(0xf3));if(_0x1625c2[_0x4dcb35(0x10e)])_0x4df509(_0x1625c2[_0x4dcb35(0x10e)]);else _0x358f77[_0x4dcb35(0x10e)]&&typeof _0x358f77['env']===_0x4dcb35(0x108)&&_0x4df509(_0x358f77['env']);const {initDomains:_0x5f08e2,getUserDomain:_0x4e0e24,getApiDomain:_0x5449be}=await import(_0x4dcb35(0x10f));_0x5f08e2({'apiDomain':_0xceb6fb[_0x4dcb35(0xfd)]||undefined,'userDomain':_0xceb6fb[_0x4dcb35(0xf1)]||undefined,'runtimeDomain':_0xceb6fb[_0x4dcb35(0xfa)]||undefined});const _0x43c59e={'apiDomain':_0x5449be(),'userDomain':_0x4e0e24()},_0x18565b=await buildAuth(_0x1625c2);logger[_0x4dcb35(0xf0)](process[_0x4dcb35(0x109)]());const _0x5bbce4=(CLI_BIN_NAME+'\x20'+process[_0x4dcb35(0x100)]['slice'](0x2)[_0x4dcb35(0xf6)]('\x20'))[_0x4dcb35(0x111)]();logger[_0x4dcb35(0x107)](_0x5bbce4);const {isNonInteractive:_0x3955cf}=await import(_0x4dcb35(0xff)),_0x598d7d=_0x3955cf(_0x358f77);return{'config':_0x1625c2,'auth':_0x18565b,'logger':logger,'env':_0x43c59e,'nonInteractive':_0x598d7d};}export function buildConfigFromFlags(_0x1365c3){const {config:_0x579011,layers:_0x165697}=readRawConfigWithLayers();return buildConfig(_0x579011,_0x1365c3,_0x165697);}export function getConfigAppCode(_0x133c47){const _0x2c7bbe=a183_0x25da,_0x5d8ce4=readRawConfig(_0x133c47);if(_0x5d8ce4['apps']&&typeof _0x5d8ce4[_0x2c7bbe(0x101)]===_0x2c7bbe(0xee)){const _0x29977d=_0x5d8ce4[_0x2c7bbe(0xec)];if(_0x29977d&&_0x5d8ce4[_0x2c7bbe(0x101)][_0x29977d]?.[_0x2c7bbe(0x10b)])return String(_0x5d8ce4['apps'][_0x29977d][_0x2c7bbe(0x10b)])[_0x2c7bbe(0x111)]();const _0x56d5a5=Object['values'](_0x5d8ce4[_0x2c7bbe(0x101)])[0x0];if(_0x56d5a5?.['appcode'])return String(_0x56d5a5['appcode'])[_0x2c7bbe(0x111)]();}const _0x18a724=_0x5d8ce4[_0x2c7bbe(0x10b)]||_0x5d8ce4[_0x2c7bbe(0xf7)];if(typeof _0x18a724!==_0x2c7bbe(0x108)||_0x18a724[_0x2c7bbe(0x111)]()==='')return undefined;return _0x18a724[_0x2c7bbe(0x111)]();}export function getMultiAppConfigs(_0x42cebb=a183_0xbb4c47(0x106),_0x1c4ab9){const _0xe3fa5d=a183_0xbb4c47,_0x2b4ba8=loadRawConfigLayers(_0x1c4ab9);let _0x3de425,_0x339468;if(_0x42cebb===_0xe3fa5d(0x102)){const _0x4a8121=_0x2b4ba8[_0xe3fa5d(0xfc)][_0xe3fa5d(0x101)]&&typeof _0x2b4ba8[_0xe3fa5d(0xfc)][_0xe3fa5d(0x101)]===_0xe3fa5d(0xee)?_0x2b4ba8['globalConfig'][_0xe3fa5d(0x101)]:{},_0x5ac302=_0x2b4ba8['projectConfig'][_0xe3fa5d(0x101)]&&typeof _0x2b4ba8[_0xe3fa5d(0xef)]['apps']===_0xe3fa5d(0xee)?_0x2b4ba8[_0xe3fa5d(0xef)][_0xe3fa5d(0x101)]:{};_0x3de425={..._0x4a8121,..._0x5ac302};const _0x19dfef=readRawConfig(_0x1c4ab9);_0x339468=_0x19dfef[_0xe3fa5d(0xec)];}else _0x3de425=_0x2b4ba8[_0xe3fa5d(0xef)][_0xe3fa5d(0x101)],_0x339468=_0x2b4ba8[_0xe3fa5d(0xef)]['defaultApp'];if(!_0x3de425||typeof _0x3de425!==_0xe3fa5d(0xee)||Object[_0xe3fa5d(0xfb)](_0x3de425)['length']===0x0)return null;return Object[_0xe3fa5d(0xed)](_0x3de425)['map'](([_0x25df06,_0x3c7f71])=>({'name':_0x25df06,'appcode':_0x3c7f71?.[_0xe3fa5d(0x10b)]||'','isDefault':_0x25df06===_0x339468,'env':_0x3c7f71?.[_0xe3fa5d(0x10e)],'apiDir':_0x3c7f71?.[_0xe3fa5d(0x104)],'cookie':_0x3c7f71?.['cookie']||undefined}))[_0xe3fa5d(0x105)](_0x475b79=>_0x475b79[_0xe3fa5d(0x10b)]);}export function getTemplateBaseUrl(_0x25f2e5){const _0x3f8398=a183_0xbb4c47,_0x410fb5=readRawConfig(_0x25f2e5);if(_0x410fb5[_0x3f8398(0xf9)]&&typeof _0x410fb5[_0x3f8398(0xf9)]===_0x3f8398(0x108))return _0x410fb5['template_base_url'][_0x3f8398(0x10a)](/\/$/,'');return _0x3f8398(0xf5);}function buildConfig(_0x2a09ae,_0x2c06f4,_0x572176){return{...resolveAppConfig({'raw':_0x2a09ae,'flags':_0x2c06f4,'layers':_0x572176,'readEnv':env}),'raw':_0x2a09ae};}export function resolveApiFilePath(_0x5a485c,_0xa1d63){const _0x11ad2a=a183_0xbb4c47,_0x5bd85e=resolve(process[_0x11ad2a(0x109)](),_0x5a485c),_0x19cdee=resolve(_0x5bd85e,_0x11ad2a(0x10d));if(!_0xa1d63)return _0x19cdee;const _0x5195bf=readRawConfig(),_0x429f39=_0x5195bf['apps']&&typeof _0x5195bf[_0x11ad2a(0x101)]==='object'?_0x5195bf[_0x11ad2a(0x101)]:{},_0x132118=Object[_0x11ad2a(0xed)](_0x429f39)[_0x11ad2a(0x110)](([,_0x15e56e])=>_0x15e56e?.['appcode']===_0xa1d63);if(!_0x132118)return _0x19cdee;const [_0x5f012c,_0x4a9eed]=_0x132118,_0x5f33f8=typeof _0x5195bf['defaultApp']==='string'?_0x5195bf[_0x11ad2a(0xec)]:undefined;if(_0x4a9eed?.[_0x11ad2a(0x104)])return _0x19cdee;if(_0x5f33f8&&_0x5f012c!==_0x5f33f8)return resolve(_0x5bd85e,_0x5f012c+_0x11ad2a(0xf2));return _0x19cdee;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2132f7,_0x38bf33){const _0x297b7e=a184_0x1502,_0xc8c4d7=_0x2132f7();while(!![]){try{const _0x19ce2f=parseInt(_0x297b7e(0x185))/0x1*(-parseInt(_0x297b7e(0x178))/0x2)+-parseInt(_0x297b7e(0x17d))/0x3+parseInt(_0x297b7e(0x184))/0x4*(-parseInt(_0x297b7e(0x182))/0x5)+parseInt(_0x297b7e(0x175))/0x6*(-parseInt(_0x297b7e(0x183))/0x7)+-parseInt(_0x297b7e(0x179))/0x8*(-parseInt(_0x297b7e(0x17b))/0x9)+parseInt(_0x297b7e(0x186))/0xa*(parseInt(_0x297b7e(0x17c))/0xb)+parseInt(_0x297b7e(0x173))/0xc;if(_0x19ce2f===_0x38bf33)break;else _0xc8c4d7['push'](_0xc8c4d7['shift']());}catch(_0x14754f){_0xc8c4d7['push'](_0xc8c4d7['shift']());}}}(a184_0x42a9,0xed5b9));import{readFileSync,existsSync}from'node:fs';function a184_0x1502(_0x475ce8,_0x551144){_0x475ce8=_0x475ce8-0x172;const _0x42a912=a184_0x42a9();let _0x15024f=_0x42a912[_0x475ce8];return _0x15024f;}function a184_0x42a9(){const _0x314cae=['68947788SgPScW','push','5496misJDC','find','datasetCode','2iLroXd','10528YdTCsB','set','4545NQgudO','77eYXWeg','4071474MjdniR','alias','exec','cwd','get','30EZmZVb','11494gXsoRG','971224SpPpnW','1571257WqexlY','644730LFvnDf','has'];a184_0x42a9=function(){return _0x314cae;};return a184_0x42a9();}import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0xffe81){const _0x3fff16=a184_0x1502,_0x33dde9=[],_0x47b97e=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x505bb1;while((_0x505bb1=_0x47b97e[_0x3fff16(0x17f)](_0xffe81))!==null){_0x33dde9[_0x3fff16(0x174)]({'datasetCode':_0x505bb1[0x1],'tableName':_0x505bb1[0x2],'name':_0x505bb1[0x3],'alias':_0x505bb1[0x4]});}return _0x33dde9;}export function loadAliasMap(_0xd0c49a,_0x274a97,_0x210ec3){const _0x117585=a184_0x1502,_0x4c93a3=_0x210ec3??resolve(process[_0x117585(0x180)](),_0xd0c49a,'api.ts');if(cache[_0x117585(0x172)](_0x4c93a3))return cache[_0x117585(0x181)](_0x4c93a3);if(!existsSync(_0x4c93a3))return cache[_0x117585(0x17a)](_0x4c93a3,[]),[];try{const _0x25dcbe=readFileSync(_0x4c93a3,'utf-8'),_0xc257ad=parseApiFile(_0x25dcbe);return cache['set'](_0x4c93a3,_0xc257ad),_0xc257ad;}catch{return cache[_0x117585(0x17a)](_0x4c93a3,[]),[];}}export function resolveAlias(_0x276337,_0x559194,_0x48d760,_0x358b3a){const _0x7cdc4d=a184_0x1502;if(!_0x559194)return undefined;const _0x523974=loadAliasMap(_0x276337,_0x48d760,_0x358b3a),_0x589245=_0x523974[_0x7cdc4d(0x176)](_0x503619=>_0x503619[_0x7cdc4d(0x17e)]===_0x559194);return _0x589245?.[_0x7cdc4d(0x177)];}export function listAliases(_0x3d8891,_0x632100,_0x5e4eb0){return loadAliasMap(_0x3d8891,_0x632100,_0x5e4eb0);}
|