@lovrabet/rabetbase-cli 2.3.11 → 2.3.12-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a185_0x207a77=a185_0x65eb;(function(_0x7200ed,_0x31723d){const _0x312382=a185_0x65eb,_0x3f6742=_0x7200ed();while(!![]){try{const _0x4b84ca=-parseInt(_0x312382(0x18f))/0x1*(-parseInt(_0x312382(0x1b9))/0x2)+parseInt(_0x312382(0x16f))/0x3*(parseInt(_0x312382(0x171))/0x4)+-parseInt(_0x312382(0x17a))/0x5+-parseInt(_0x312382(0x1bc))/0x6*(parseInt(_0x312382(0x17f))/0x7)+-parseInt(_0x312382(0x1ce))/0x8*(parseInt(_0x312382(0x18e))/0x9)+-parseInt(_0x312382(0x1d8))/0xa+parseInt(_0x312382(0x1d9))/0xb*(parseInt(_0x312382(0x192))/0xc);if(_0x4b84ca===_0x31723d)break;else _0x3f6742['push'](_0x3f6742['shift']());}catch(_0x3c3817){_0x3f6742['push'](_0x3f6742['shift']());}}}(a185_0x2ad0,0x926f5));export const CLI_BIN_NAME='rabetbase';function a185_0x65eb(_0x4fc959,_0x4a69bc){_0x4fc959=_0x4fc959-0x15d;const _0x2ad004=a185_0x2ad0();let _0x65eb13=_0x2ad004[_0x4fc959];return _0x65eb13;}export const CLI_DISPLAY_NAME=a185_0x207a77(0x1b2);export const NPM_PACKAGE_NAME=a185_0x207a77(0x16e);function a185_0x2ad0(){const _0x226791=['Clear','Description','sql-name','enableBffSave','map','2221430blzAXc','Show\x20help','appcode','format','Expected\x20current\x20menu\x20path','854tQqrpZ','Name','function-node','SQL\x20string','target','Page\x20number','clear','Operation\x20type','Function\x20node','skipImports','dbid','Verbose\x20output','keyword','Asynchronous\x20task\x20ID','watch','278991GvhIXn','669616BycSoQ','Config\x20value','nonInteractive','12jIPTHA','Skip\x20confirmation\x20for\x20high-risk\x20writes','global','Override\x20appcode','Use\x20project\x20config\x20scope','all','schemas','page','expectedCount','Reveal\x20sensitive\x20value','project','code','expected-count','Comma-separated\x20menu\x20IDs','dryRun','dry-run','Expected\x20affected\x20count','enable-bff-save','name','Expected\x20current\x20child\x20count','Watch\x20mode','env','Schemas','DB\x20ID','Output\x20format','Code\x20filter','confirm','Alias\x20for\x20--non-interactive','Parent\x20menu\x20id','sqlName','stdin','sqlcode','Rabetbase\x20CLI','Read\x20value\x20from\x20stdin','task-id','from-env','description-file','Dataset\x20code','verbose','2CGaCSj','Keyword\x20filter','operationType','30372emHZsT','Force\x20overwrite','datasetcode','sql','Description\x20file','Use\x20global\x20config\x20scope','description','Environment','non-interactive','expectedChildrenCount','Apply\x20to\x20all','<name>','<code>','meowKey','SQL\x20name','production\x20|\x20daily','tags','Read\x20value\x20from\x20environment\x20variable','64pBOrjH','help','Select\x20app\x20profile\x20by\x20name','descriptionFile','expect-parent-id','Menu\x20sort\x20value','Page\x20size','force','File\x20path','expectParentId','4981780DPnUPC','18463918yiZEqD','string','Config\x20key','title','dbId','taskId','app','value','parent-id','operation','menu-ids','key','output','params','<expr>','json\x20|\x20pretty\x20|\x20compress','expected-children-count','yes','sqlname','label','SQL\x20code','functionNode','boolean','remote','type','skip-imports','@lovrabet/rabetbase-cli','3QBKONN','sort','238652yjcclo','Type\x20filter','Skip\x20import\x20generation','reveal'];a185_0x2ad0=function(){return _0x226791;};return a185_0x2ad0();}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x195),'hint':a185_0x207a77(0x1c8)},{'name':a185_0x207a77(0x1df),'meowKey':a185_0x207a77(0x1df),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1d0),'hint':a185_0x207a77(0x1c7)},{'name':a185_0x207a77(0x1a7),'meowKey':a185_0x207a77(0x1a7),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1c3),'hint':a185_0x207a77(0x1cb)},{'name':a185_0x207a77(0x17d),'meowKey':a185_0x207a77(0x17d),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1aa),'hint':a185_0x207a77(0x163)},{'name':'jq','meowKey':'jq','type':a185_0x207a77(0x1da),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a185_0x207a77(0x162)},{'name':'dry-run','meowKey':a185_0x207a77(0x1a0),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':'yes','type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x193)},{'name':a185_0x207a77(0x1c4),'meowKey':a185_0x207a77(0x191),'type':a185_0x207a77(0x16a),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a185_0x207a77(0x194),'meowKey':a185_0x207a77(0x194),'type':'boolean','description':a185_0x207a77(0x1c1)},{'name':'project','meowKey':a185_0x207a77(0x19c),'type':'boolean','description':a185_0x207a77(0x196)},{'name':'ci','meowKey':'ci','type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x1ad),'hidden':!![]},{'name':a185_0x207a77(0x1cf),'meowKey':'help','type':'boolean','description':a185_0x207a77(0x17b)},{'name':a185_0x207a77(0x1a4),'meowKey':'name','type':'string','description':a185_0x207a77(0x180),'hidden':!![]},{'name':'title','meowKey':a185_0x207a77(0x1dc),'type':'string','description':'Title','hidden':!![]},{'name':a185_0x207a77(0x185),'meowKey':'clear','type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x175),'hidden':!![]},{'name':a185_0x207a77(0x18d),'meowKey':a185_0x207a77(0x18d),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x1a6),'hidden':!![]},{'name':'output','meowKey':a185_0x207a77(0x160),'type':a185_0x207a77(0x1da),'description':'Output\x20path','hidden':!![]},{'name':a185_0x207a77(0x161),'meowKey':'params','type':'string','description':'JSON\x20params','hidden':!![]},{'name':a185_0x207a77(0x1be),'meowKey':a185_0x207a77(0x1be),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1b7),'hidden':!![]},{'name':a185_0x207a77(0x197),'meowKey':a185_0x207a77(0x197),'type':'boolean','description':a185_0x207a77(0x1c6),'hidden':!![]},{'name':a185_0x207a77(0x1a3),'meowKey':a185_0x207a77(0x178),'type':a185_0x207a77(0x16a),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a185_0x207a77(0x16c),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x172),'hidden':!![]},{'name':'file','meowKey':'file','type':'string','description':a185_0x207a77(0x1d6),'hidden':!![]},{'name':a185_0x207a77(0x1b1),'meowKey':a185_0x207a77(0x1b1),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x168),'hidden':!![]},{'name':a185_0x207a77(0x177),'meowKey':a185_0x207a77(0x1af),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1ca),'hidden':!![]},{'name':'sqlname','meowKey':a185_0x207a77(0x166),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1ca),'hidden':!![]},{'name':'db-id','meowKey':a185_0x207a77(0x1dd),'type':'string','description':a185_0x207a77(0x1a9),'hidden':!![]},{'name':a185_0x207a77(0x189),'meowKey':a185_0x207a77(0x189),'type':a185_0x207a77(0x1da),'description':'DB\x20ID','hidden':!![]},{'name':a185_0x207a77(0x1c2),'meowKey':a185_0x207a77(0x1c2),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x176),'hidden':!![]},{'name':a185_0x207a77(0x1b6),'meowKey':a185_0x207a77(0x1d1),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1c0),'hidden':!![]},{'name':a185_0x207a77(0x199),'meowKey':a185_0x207a77(0x199),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x184),'hidden':!![]},{'name':'pagesize','meowKey':'pagesize','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1d4),'hidden':!![]},{'name':a185_0x207a77(0x18b),'meowKey':'keyword','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1ba),'hidden':!![]},{'name':a185_0x207a77(0x19d),'meowKey':a185_0x207a77(0x19d),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1ab),'hidden':!![]},{'name':a185_0x207a77(0x1bf),'meowKey':a185_0x207a77(0x1bf),'type':'string','description':a185_0x207a77(0x182),'hidden':!![]},{'name':'schemas','meowKey':a185_0x207a77(0x198),'type':'string','description':a185_0x207a77(0x1a8),'hidden':!![]},{'name':a185_0x207a77(0x15d),'meowKey':a185_0x207a77(0x15d),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x186),'hidden':!![]},{'name':a185_0x207a77(0x183),'meowKey':a185_0x207a77(0x183),'type':a185_0x207a77(0x1da),'description':'Target\x20path','hidden':!![]},{'name':a185_0x207a77(0x16d),'meowKey':a185_0x207a77(0x188),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x173),'hidden':!![]},{'name':a185_0x207a77(0x15f),'meowKey':'key','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1db),'hidden':!![]},{'name':'value','meowKey':a185_0x207a77(0x1e0),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x190),'hidden':!![]},{'name':a185_0x207a77(0x1cc),'meowKey':a185_0x207a77(0x1cc),'type':a185_0x207a77(0x1da),'description':'Tags','hidden':!![]},{'name':a185_0x207a77(0x1b0),'meowKey':a185_0x207a77(0x1b0),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x1b3),'hidden':!![]},{'name':a185_0x207a77(0x1b5),'meowKey':'fromEnv','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1cd),'hidden':!![]},{'name':a185_0x207a77(0x174),'meowKey':a185_0x207a77(0x174),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x19b),'hidden':!![]},{'name':a185_0x207a77(0x1d5),'meowKey':a185_0x207a77(0x1d5),'type':'boolean','description':a185_0x207a77(0x1bd),'hidden':!![]},{'name':a185_0x207a77(0x1ac),'meowKey':'confirm','type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a185_0x207a77(0x16b),'meowKey':'remote','type':'boolean','description':'Use\x20remote','hidden':!![]},{'name':a185_0x207a77(0x1b8),'meowKey':a185_0x207a77(0x1b8),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x18a),'hidden':!![]},{'name':a185_0x207a77(0x19e),'meowKey':a185_0x207a77(0x19a),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1a2),'hidden':!![]},{'name':a185_0x207a77(0x167),'meowKey':a185_0x207a77(0x167),'type':a185_0x207a77(0x1da),'description':'Menu\x20label','hidden':!![]},{'name':a185_0x207a77(0x1e1),'meowKey':'parentId','type':'string','description':a185_0x207a77(0x1ae),'hidden':!![]},{'name':a185_0x207a77(0x170),'meowKey':a185_0x207a77(0x170),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1d3),'hidden':!![]},{'name':a185_0x207a77(0x1d2),'meowKey':a185_0x207a77(0x1d7),'type':a185_0x207a77(0x1da),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x17e),'hidden':!![]},{'name':a185_0x207a77(0x164),'meowKey':a185_0x207a77(0x1c5),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1a5),'hidden':!![]},{'name':a185_0x207a77(0x15e),'meowKey':'menuIds','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x19f),'hidden':!![]},{'name':a185_0x207a77(0x1b4),'meowKey':a185_0x207a77(0x1de),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x18c),'hidden':!![]},{'name':'operation-type','meowKey':a185_0x207a77(0x1bb),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x186),'hidden':!![]},{'name':a185_0x207a77(0x181),'meowKey':a185_0x207a77(0x169),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x187),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a185_0x207a77(0x17c),'app',a185_0x207a77(0x1a7),'format','jq',a185_0x207a77(0x1a1),a185_0x207a77(0x165),a185_0x207a77(0x1c4),'ci']);export function buildMeowFlags(){const _0x40ae4e=a185_0x207a77;return Object['fromEntries'](GLOBAL_FLAGS[_0x40ae4e(0x179)](_0x3a32d5=>[_0x3a32d5[_0x40ae4e(0x1c9)],{'type':_0x3a32d5[_0x40ae4e(0x16c)]}]));}
|
|
1
|
+
const a185_0x56bdc9=a185_0xac00;(function(_0x57d88,_0x2cf866){const _0x170bc1=a185_0xac00,_0x31c866=_0x57d88();while(!![]){try{const _0x1305e8=parseInt(_0x170bc1(0x207))/0x1*(parseInt(_0x170bc1(0x221))/0x2)+parseInt(_0x170bc1(0x211))/0x3*(parseInt(_0x170bc1(0x1ae))/0x4)+parseInt(_0x170bc1(0x1c8))/0x5*(-parseInt(_0x170bc1(0x1bf))/0x6)+-parseInt(_0x170bc1(0x1b8))/0x7+-parseInt(_0x170bc1(0x1bc))/0x8*(-parseInt(_0x170bc1(0x210))/0x9)+parseInt(_0x170bc1(0x1cf))/0xa+-parseInt(_0x170bc1(0x1f9))/0xb;if(_0x1305e8===_0x2cf866)break;else _0x31c866['push'](_0x31c866['shift']());}catch(_0x5bf36e){_0x31c866['push'](_0x31c866['shift']());}}}(a185_0x3c4b,0xb191b));function a185_0xac00(_0x444544,_0x1ff0b6){_0x444544=_0x444544-0x1a9;const _0x3c4bd6=a185_0x3c4b();let _0xac0007=_0x3c4bd6[_0x444544];return _0xac0007;}function a185_0x3c4b(){const _0x28c876=['SQL\x20string','10QjNQkA','Output\x20path','Asynchronous\x20task\x20ID','Reveal\x20sensitive\x20value','SQL\x20code','Skip\x20import\x20generation','dryRun','1070240AdPOHP','Page\x20size','Override\x20appcode','Alias\x20for\x20--non-interactive','dbid','expected-children-count','all','Use\x20project\x20config\x20scope','operation','taskId','watch','Expected\x20current\x20menu\x20path','tags','Keyword\x20filter','Apply\x20to\x20all','Dataset\x20code','production\x20|\x20daily','sort','Config\x20value','fromEntries','File\x20path','Schemas','expect-parent-id','operation-type','sqlname','map','functionNode','DB\x20ID','project','Menu\x20sort\x20value','Config\x20key','datasetcode','<expr>','nonInteractive','string','schemas','format','app','Read\x20value\x20from\x20environment\x20variable','Target\x20path','function-node','sql','11239459EfGjqO','appcode','Preview\x20operation\x20without\x20executing','help','remote','clear','Skip\x20confirmation\x20for\x20high-risk\x20writes','@lovrabet/rabetbase-cli','Force\x20non-interactive\x20mode\x20(CI)','Use\x20global\x20config\x20scope','type','target','value','yes','4yjsDlQ','Output\x20format','file','confirm','page','parent-id','sqlName','force','boolean','4176ojYgbH','2962728rneFct','skipImports','from-env','key','stdin','params','Read\x20value\x20from\x20stdin','Page\x20number','Force\x20overwrite','Watch\x20mode','env','SQL\x20name','expectParentId','expectedChildrenCount','Expected\x20current\x20child\x20count','keyword','580314zQSdnD','Expected\x20affected\x20count','Title','description-file','Verbose\x20output','meowKey','verbose','Confirm\x20destructive\x20action','code','Type\x20filter','sqlcode','description','output','4kAYVxB','non-interactive','expectPath','Clear','Code\x20filter','Operation\x20type','parentId','Parent\x20menu\x20id','fromEnv','Show\x20help','3712478Thwzvc','global','enableBffSave','title','21968utHRjI','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','name','3749778pJtuON','json\x20|\x20pretty\x20|\x20compress','Select\x20app\x20profile\x20by\x20name','label','Record\x20ID','reveal','pagesize','dry-run'];a185_0x3c4b=function(){return _0x28c876;};return a185_0x3c4b();}export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a185_0x56bdc9(0x200);export const GLOBAL_FLAGS=[{'name':a185_0x56bdc9(0x1fa),'meowKey':a185_0x56bdc9(0x1fa),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1d1),'hint':'<code>'},{'name':a185_0x56bdc9(0x1f4),'meowKey':a185_0x56bdc9(0x1f4),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1c1),'hint':'<name>'},{'name':'env','meowKey':a185_0x56bdc9(0x21b),'type':a185_0x56bdc9(0x1f1),'description':'Environment','hint':a185_0x56bdc9(0x1df)},{'name':a185_0x56bdc9(0x1f3),'meowKey':a185_0x56bdc9(0x1f3),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x208),'hint':a185_0x56bdc9(0x1c0)},{'name':'jq','meowKey':'jq','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1bd),'hint':a185_0x56bdc9(0x1ef)},{'name':a185_0x56bdc9(0x1c6),'meowKey':a185_0x56bdc9(0x1ce),'type':'boolean','description':a185_0x56bdc9(0x1fb)},{'name':a185_0x56bdc9(0x206),'meowKey':a185_0x56bdc9(0x206),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1ff)},{'name':a185_0x56bdc9(0x1af),'meowKey':a185_0x56bdc9(0x1f0),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x201)},{'name':a185_0x56bdc9(0x1b9),'meowKey':a185_0x56bdc9(0x1b9),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x202)},{'name':a185_0x56bdc9(0x1eb),'meowKey':a185_0x56bdc9(0x1eb),'type':'boolean','description':a185_0x56bdc9(0x1d6)},{'name':'ci','meowKey':'ci','type':'boolean','description':a185_0x56bdc9(0x1d2),'hidden':!![]},{'name':'help','meowKey':a185_0x56bdc9(0x1fc),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1b7)},{'name':a185_0x56bdc9(0x1be),'meowKey':a185_0x56bdc9(0x1be),'type':a185_0x56bdc9(0x1f1),'description':'Name','hidden':!![]},{'name':a185_0x56bdc9(0x1bb),'meowKey':a185_0x56bdc9(0x1bb),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x223),'hidden':!![]},{'name':a185_0x56bdc9(0x1fe),'meowKey':a185_0x56bdc9(0x1fe),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1b1),'hidden':!![]},{'name':a185_0x56bdc9(0x1d9),'meowKey':a185_0x56bdc9(0x1d9),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x21a),'hidden':!![]},{'name':a185_0x56bdc9(0x1ad),'meowKey':'output','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1c9),'hidden':!![]},{'name':a185_0x56bdc9(0x216),'meowKey':a185_0x56bdc9(0x216),'type':a185_0x56bdc9(0x1f1),'description':'JSON\x20params','hidden':!![]},{'name':a185_0x56bdc9(0x1ee),'meowKey':a185_0x56bdc9(0x1ee),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1de),'hidden':!![]},{'name':a185_0x56bdc9(0x1d5),'meowKey':'all','type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1dd),'hidden':!![]},{'name':'enable-bff-save','meowKey':a185_0x56bdc9(0x1ba),'type':a185_0x56bdc9(0x20f),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1c3),'hidden':!![]},{'name':a185_0x56bdc9(0x203),'meowKey':'type','type':'string','description':a185_0x56bdc9(0x1aa),'hidden':!![]},{'name':a185_0x56bdc9(0x209),'meowKey':a185_0x56bdc9(0x209),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1e3),'hidden':!![]},{'name':a185_0x56bdc9(0x1ab),'meowKey':'sqlcode','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1cc),'hidden':!![]},{'name':'sql-name','meowKey':a185_0x56bdc9(0x20d),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x21c),'hidden':!![]},{'name':a185_0x56bdc9(0x1e7),'meowKey':a185_0x56bdc9(0x1e7),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':'dbId','type':'string','description':a185_0x56bdc9(0x1ea),'hidden':!![]},{'name':a185_0x56bdc9(0x1d3),'meowKey':a185_0x56bdc9(0x1d3),'type':a185_0x56bdc9(0x1f1),'description':'DB\x20ID','hidden':!![]},{'name':'description','meowKey':a185_0x56bdc9(0x1ac),'type':a185_0x56bdc9(0x1f1),'description':'Description','hidden':!![]},{'name':a185_0x56bdc9(0x224),'meowKey':'descriptionFile','type':'string','description':'Description\x20file','hidden':!![]},{'name':a185_0x56bdc9(0x20b),'meowKey':'page','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x218),'hidden':!![]},{'name':a185_0x56bdc9(0x1c5),'meowKey':a185_0x56bdc9(0x1c5),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1d0),'hidden':!![]},{'name':'keyword','meowKey':a185_0x56bdc9(0x220),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1dc),'hidden':!![]},{'name':a185_0x56bdc9(0x1a9),'meowKey':a185_0x56bdc9(0x1a9),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1b2),'hidden':!![]},{'name':'sql','meowKey':a185_0x56bdc9(0x1f8),'type':'string','description':a185_0x56bdc9(0x1c7),'hidden':!![]},{'name':a185_0x56bdc9(0x1f2),'meowKey':'schemas','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1e4),'hidden':!![]},{'name':a185_0x56bdc9(0x1d7),'meowKey':a185_0x56bdc9(0x1d7),'type':a185_0x56bdc9(0x1f1),'description':'Operation\x20type','hidden':!![]},{'name':a185_0x56bdc9(0x204),'meowKey':'target','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1f6),'hidden':!![]},{'name':'skip-imports','meowKey':a185_0x56bdc9(0x212),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1cd),'hidden':!![]},{'name':a185_0x56bdc9(0x214),'meowKey':a185_0x56bdc9(0x214),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1ed),'hidden':!![]},{'name':a185_0x56bdc9(0x205),'meowKey':a185_0x56bdc9(0x205),'type':'string','description':a185_0x56bdc9(0x1e1),'hidden':!![]},{'name':a185_0x56bdc9(0x1db),'meowKey':'tags','type':a185_0x56bdc9(0x1f1),'description':'Tags','hidden':!![]},{'name':a185_0x56bdc9(0x215),'meowKey':a185_0x56bdc9(0x215),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x217),'hidden':!![]},{'name':a185_0x56bdc9(0x213),'meowKey':a185_0x56bdc9(0x1b6),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1f5),'hidden':!![]},{'name':'reveal','meowKey':a185_0x56bdc9(0x1c4),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1cb),'hidden':!![]},{'name':a185_0x56bdc9(0x20e),'meowKey':'force','type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x219),'hidden':!![]},{'name':a185_0x56bdc9(0x20a),'meowKey':a185_0x56bdc9(0x20a),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x228),'hidden':!![]},{'name':a185_0x56bdc9(0x1fd),'meowKey':'remote','type':a185_0x56bdc9(0x20f),'description':'Use\x20remote','hidden':!![]},{'name':a185_0x56bdc9(0x227),'meowKey':a185_0x56bdc9(0x227),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x225),'hidden':!![]},{'name':'expected-count','meowKey':'expectedCount','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x222),'hidden':!![]},{'name':a185_0x56bdc9(0x1c2),'meowKey':a185_0x56bdc9(0x1c2),'type':a185_0x56bdc9(0x1f1),'description':'Menu\x20label','hidden':!![]},{'name':a185_0x56bdc9(0x20c),'meowKey':a185_0x56bdc9(0x1b4),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1b5),'hidden':!![]},{'name':a185_0x56bdc9(0x1e0),'meowKey':a185_0x56bdc9(0x1e0),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1ec),'hidden':!![]},{'name':a185_0x56bdc9(0x1e5),'meowKey':a185_0x56bdc9(0x21d),'type':a185_0x56bdc9(0x1f1),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':a185_0x56bdc9(0x1b0),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1da),'hidden':!![]},{'name':a185_0x56bdc9(0x1d4),'meowKey':a185_0x56bdc9(0x21e),'type':'string','description':a185_0x56bdc9(0x21f),'hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':a185_0x56bdc9(0x1f1),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a185_0x56bdc9(0x1d8),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1ca),'hidden':!![]},{'name':a185_0x56bdc9(0x1e6),'meowKey':'operationType','type':'string','description':a185_0x56bdc9(0x1b3),'hidden':!![]},{'name':a185_0x56bdc9(0x1f7),'meowKey':a185_0x56bdc9(0x1e9),'type':'string','description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a185_0x56bdc9(0x1fa),a185_0x56bdc9(0x1f4),a185_0x56bdc9(0x21b),a185_0x56bdc9(0x1f3),'jq',a185_0x56bdc9(0x1c6),a185_0x56bdc9(0x206),a185_0x56bdc9(0x1af),'ci']);export function buildMeowFlags(){const _0x2833e1=a185_0x56bdc9;return Object[_0x2833e1(0x1e2)](GLOBAL_FLAGS[_0x2833e1(0x1e8)](_0x454c4b=>[_0x454c4b[_0x2833e1(0x226)],{'type':_0x454c4b[_0x2833e1(0x203)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a186_0x3ef8a0=a186_0x2d5a;(function(_0x4306ba,_0x1c5b99){const _0x2683f1=a186_0x2d5a,_0xebe803=_0x4306ba();while(!![]){try{const _0x269cf9=-parseInt(_0x2683f1(0xf4))/0x1+-parseInt(_0x2683f1(0xf7))/0x2+-parseInt(_0x2683f1(0xf0))/0x3+-parseInt(_0x2683f1(0xef))/0x4+-parseInt(_0x2683f1(0xf9))/0x5+parseInt(_0x2683f1(0xf8))/0x6*(-parseInt(_0x2683f1(0xee))/0x7)+parseInt(_0x2683f1(0xf5))/0x8;if(_0x269cf9===_0x1c5b99)break;else _0xebe803['push'](_0xebe803['shift']());}catch(_0x261aa9){_0xebe803['push'](_0xebe803['shift']());}}}(a186_0xc6fd,0xd76af));import{DEFAULT_API_DIR}from'../constant/paths.js';function a186_0xc6fd(){const _0xe0bd26=['1491602mNMYst','44749352kxOUgA','en-US','194546XLrnZn','72FXViXO','215850vmSyuF','828163gFbKBY','3497088LUiCEE','2355879Zoonjg','compress','high-risk-write','production'];a186_0xc6fd=function(){return _0xe0bd26;};return a186_0xc6fd();}export const DEFAULT_CONFIG_VALUES={'env':a186_0x3ef8a0(0xf3),'format':a186_0x3ef8a0(0xf1),'locale':a186_0x3ef8a0(0xf6),'riskLevel':a186_0x3ef8a0(0xf2),'apiDir':DEFAULT_API_DIR};function a186_0x2d5a(_0x52c99a,_0x4a8e79){_0x52c99a=_0x52c99a-0xee;const _0xc6fd25=a186_0xc6fd();let _0x2d5a99=_0xc6fd25[_0x52c99a];return _0x2d5a99;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a186_0x3ef8a0(0xf1);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a187_0x7fdee2=a187_0x3c5a;(function(_0x19025b,_0x483269){const _0x3c779e=a187_0x3c5a,_0x106400=_0x19025b();while(!![]){try{const _0x290bb1=parseInt(_0x3c779e(0x133))/0x1+parseInt(_0x3c779e(0x136))/0x2+parseInt(_0x3c779e(0x12e))/0x3+parseInt(_0x3c779e(0x124))/0x4*(-parseInt(_0x3c779e(0x122))/0x5)+parseInt(_0x3c779e(0x135))/0x6+-parseInt(_0x3c779e(0x134))/0x7*(-parseInt(_0x3c779e(0x125))/0x8)+parseInt(_0x3c779e(0x12a))/0x9*(-parseInt(_0x3c779e(0x12f))/0xa);if(_0x290bb1===_0x483269)break;else _0x106400['push'](_0x106400['shift']());}catch(_0x5e43e2){_0x106400['push'](_0x106400['shift']());}}}(a187_0x40f8,0xc1f40));import{getEnv,isProduction}from'../constant/env.js';function a187_0x40f8(){const _0x45fc37=['28zSGJBE','8hemHZE','trim','https://user-daily.lovrabet.com','userDomain','https://app.lovrabet.com','3012129etamrV','/web-app/app/','https://user.lovrabet.com','runtimeDomain','2169120asqCbC','80leZQuf','https://api.lovrabet.com','https://daily-api.lovrabet.com','https://runtime.lovrabet.com','836801gssbPi','3416245sLtXLt','1049772TojKGj','2536178leAWXy','https://daily.lovrabet.com','13605CixnBb','https://daily-runtime.lovrabet.com'];a187_0x40f8=function(){return _0x45fc37;};return a187_0x40f8();}function a187_0x3c5a(_0x40979b,_0x18ab4f){_0x40979b=_0x40979b-0x122;const _0x40f875=a187_0x40f8();let _0x3c5a68=_0x40f875[_0x40979b];return _0x3c5a68;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x40d594){const _0x5bc744=a187_0x3c5a;customApiDomain=_0x40d594?.['apiDomain'],customUserDomain=_0x40d594?.[_0x5bc744(0x128)],customRuntimeDomain=_0x40d594?.[_0x5bc744(0x12d)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a187_0x7fdee2(0x12c):a187_0x7fdee2(0x127));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a187_0x7fdee2(0x130):a187_0x7fdee2(0x131));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a187_0x7fdee2(0x132):a187_0x7fdee2(0x123));export const getAppDomain=()=>isProduction(getEnv())?a187_0x7fdee2(0x129):a187_0x7fdee2(0x137);export const getAppBaseUrl=_0xdcbc3b=>{const _0x11a1fb=a187_0x7fdee2,_0x1a8621=encodeURIComponent(_0xdcbc3b[_0x11a1fb(0x126)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x1a8621:getAppDomain()+_0x11a1fb(0x12b)+_0x1a8621;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a188_0x333a6e=a188_0x5bdd;(function(_0x350049,_0x13d1eb){const _0x2416c2=a188_0x5bdd,_0x5cdfda=_0x350049();while(!![]){try{const _0x403758=parseInt(_0x2416c2(0x1be))/0x1+-parseInt(_0x2416c2(0x1b3))/0x2*(parseInt(_0x2416c2(0x1b1))/0x3)+-parseInt(_0x2416c2(0x1b6))/0x4*(-parseInt(_0x2416c2(0x1b2))/0x5)+-parseInt(_0x2416c2(0x1bb))/0x6+-parseInt(_0x2416c2(0x1b5))/0x7+parseInt(_0x2416c2(0x1bf))/0x8*(parseInt(_0x2416c2(0x1b9))/0x9)+parseInt(_0x2416c2(0x1b8))/0xa;if(_0x403758===_0x13d1eb)break;else _0x5cdfda['push'](_0x5cdfda['shift']());}catch(_0xa386ad){_0x5cdfda['push'](_0x5cdfda['shift']());}}}(a188_0x1899,0xb19dd));export const RABETBASE_ENV_VALUES=[a188_0x333a6e(0x1b4),a188_0x333a6e(0x1b7)];export function normalizeEnv(_0x353e74){const _0x329169=a188_0x333a6e;return _0x353e74===_0x329169(0x1bd)?_0x329169(0x1b4):_0x353e74;}export function isProduction(_0x5a88de){const _0x452d1f=a188_0x333a6e;return normalizeEnv(_0x5a88de)===_0x452d1f(0x1b4);}export function isDaily(_0xa90595){const _0x52de56=a188_0x333a6e;return normalizeEnv(_0xa90595)===_0x52de56(0x1b7);}export function isDev(_0x41faa2){const _0x42e595=a188_0x333a6e,_0x636d6=normalizeEnv(_0x41faa2);return _0x636d6===_0x42e595(0x1bc)||_0x636d6===_0x42e595(0x1ba);}function a188_0x5bdd(_0x13e834,_0x31cef6){_0x13e834=_0x13e834-0x1b1;const _0x189990=a188_0x1899();let _0x5bdddf=_0x189990[_0x13e834];return _0x5bdddf;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a188_0x333a6e(0x1b4));function a188_0x1899(){const _0x4bb6bf=['968823bxzEDR','39305YUdCLJ','4GKCcHB','production','3053057AfiRQt','4etPilm','daily','19471270YgJiqk','18vXtQEd','dev','8515584DRHeRL','development','online','790540JtCYyq','1933144EVWytF'];a188_0x1899=function(){return _0x4bb6bf;};return a188_0x1899();}export function getEnv(){return env;}export function initEnv(_0x37d9ff){env=normalizeEnv(_0x37d9ff);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a189_0x3302(_0x106133,_0x362642){_0x106133=_0x106133-0x16f;const _0x38b8cd=a189_0x38b8();let _0x330272=_0x38b8cd[_0x106133];return _0x330272;}(function(_0x20bdb5,_0x249f30){const _0x53eefc=a189_0x3302,_0x6e0992=_0x20bdb5();while(!![]){try{const _0x26fe7=parseInt(_0x53eefc(0x177))/0x1+-parseInt(_0x53eefc(0x176))/0x2+-parseInt(_0x53eefc(0x174))/0x3+parseInt(_0x53eefc(0x173))/0x4*(-parseInt(_0x53eefc(0x170))/0x5)+parseInt(_0x53eefc(0x171))/0x6*(parseInt(_0x53eefc(0x175))/0x7)+parseInt(_0x53eefc(0x172))/0x8+parseInt(_0x53eefc(0x16f))/0x9;if(_0x26fe7===_0x249f30)break;else _0x6e0992['push'](_0x6e0992['shift']());}catch(_0x4a64c7){_0x6e0992['push'](_0x6e0992['shift']());}}}(a189_0x38b8,0x61391));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json','pretty','compress'];function a189_0x38b8(){const _0x240053=['828600jeZzZA','2538921iPPdfo','391882QhgzDL','435232lipwbe','4774104iJuHFf','1715sWAnzm','6QQckfB','514912HVjGWS','6092GSswfJ'];a189_0x38b8=function(){return _0x240053;};return a189_0x38b8();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a190_0x8cf1(_0x267af0,_0x4a1af1){_0x267af0=_0x267af0-0x95;const _0x328656=a190_0x3286();let _0x8cf1e7=_0x328656[_0x267af0];return _0x8cf1e7;}const a190_0x4248cd=a190_0x8cf1;(function(_0x575bcd,_0x5c4f57){const _0x5d4956=a190_0x8cf1,_0x1c2f20=_0x575bcd();while(!![]){try{const _0x45e31c=parseInt(_0x5d4956(0x9b))/0x1*(parseInt(_0x5d4956(0x9c))/0x2)+parseInt(_0x5d4956(0x9f))/0x3*(parseInt(_0x5d4956(0xa1))/0x4)+-parseInt(_0x5d4956(0x99))/0x5+parseInt(_0x5d4956(0x9d))/0x6*(-parseInt(_0x5d4956(0x98))/0x7)+-parseInt(_0x5d4956(0x96))/0x8*(parseInt(_0x5d4956(0x9e))/0x9)+-parseInt(_0x5d4956(0x9a))/0xa+-parseInt(_0x5d4956(0xa0))/0xb*(-parseInt(_0x5d4956(0x95))/0xc);if(_0x45e31c===_0x5c4f57)break;else _0x1c2f20['push'](_0x1c2f20['shift']());}catch(_0x3f51d2){_0x1c2f20['push'](_0x1c2f20['shift']());}}}(a190_0x3286,0x2e9a2));export const DEFAULT_API_DIR=a190_0x4248cd(0x97);function a190_0x3286(){const _0x3e2a94=['1206854Armfyv','417348NSEGUd','84tWfIHS','225656dqvIAJ','./src/api','707fnzUsi','684390lbLrWT','222570iKXsoU','3GEcvsH','129020AhNTjC','20742eRtvDC','117tvFBZk','3aSZFxX'];a190_0x3286=function(){return _0x3e2a94;};return a190_0x3286();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a191_0x5b424b=a191_0x5dee;function a191_0x5dee(_0x3ef366,_0x5540b3){_0x3ef366=_0x3ef366-0x1a5;const _0x2e9231=a191_0x2e92();let _0x5dee53=_0x2e9231[_0x3ef366];return _0x5dee53;}function a191_0x2e92(){const _0x3fc963=['355462rkCFzl','5UAUdLz','1317016qKTqmo','1256124YXoGNv','high-risk-write','write','3rhepsu','4402265REYRLq','36JZQWxU','7546920TjusLP','1196064drYZeP','read','1463090dJorSm'];a191_0x2e92=function(){return _0x3fc963;};return a191_0x2e92();}(function(_0x1eec0d,_0x4731d6){const _0x2a709c=a191_0x5dee,_0x5aee96=_0x1eec0d();while(!![]){try{const _0x58606d=parseInt(_0x2a709c(0x1b0))/0x1*(parseInt(_0x2a709c(0x1aa))/0x2)+-parseInt(_0x2a709c(0x1a7))/0x3+parseInt(_0x2a709c(0x1ac))/0x4*(parseInt(_0x2a709c(0x1ab))/0x5)+-parseInt(_0x2a709c(0x1ad))/0x6+parseInt(_0x2a709c(0x1b1))/0x7+-parseInt(_0x2a709c(0x1a6))/0x8+-parseInt(_0x2a709c(0x1a5))/0x9*(-parseInt(_0x2a709c(0x1a9))/0xa);if(_0x58606d===_0x4731d6)break;else _0x5aee96['push'](_0x5aee96['shift']());}catch(_0x2890a3){_0x5aee96['push'](_0x5aee96['shift']());}}}(a191_0x2e92,0x80373));export const RISK_LEVEL_VALUES=[a191_0x5b424b(0x1a8),a191_0x5b424b(0x1af),a191_0x5b424b(0x1ae)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x477086,_0x17686a){const _0xb31e4=a192_0xa0ab,_0x4a6175=_0x477086();while(!![]){try{const _0x2f03ae=-parseInt(_0xb31e4(0x130))/0x1*(-parseInt(_0xb31e4(0x13f))/0x2)+parseInt(_0xb31e4(0x131))/0x3*(parseInt(_0xb31e4(0x13d))/0x4)+parseInt(_0xb31e4(0x133))/0x5*(parseInt(_0xb31e4(0x14b))/0x6)+-parseInt(_0xb31e4(0x145))/0x7+parseInt(_0xb31e4(0x147))/0x8+-parseInt(_0xb31e4(0x149))/0x9+-parseInt(_0xb31e4(0x14f))/0xa;if(_0x2f03ae===_0x17686a)break;else _0x4a6175['push'](_0x4a6175['shift']());}catch(_0x288346){_0x4a6175['push'](_0x4a6175['shift']());}}}(a192_0x38ca,0x764f8));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a192_0x38ca(){const _0x4cab75=['production','900109CNnclN','FORMAT','4830488KIqoSg','riskLevel','8222130NQuhnv','env','6lRRmeZ','inherit','keys','daily','11631960KVJgWO','pageSize','accessKey','string','defaultApp','length','locale','RISK_LEVEL','maxRisk','globalConfig','trim','write','229GoAgAf','2681043UvElwC','MAX_RISK','4174960zEwzhm','apiDir','format','appcode','object','ENV','cookie','read','apps','app','4WKbouU','VERBOSE','3122SVAdKV','find','PAGE_SIZE','entries','true'];a192_0x38ca=function(){return _0x4cab75;};return a192_0x38ca();}import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x19de16){const _0x420d15=a192_0xa0ab;return typeof _0x19de16===_0x420d15(0x127)&&_0x19de16[_0x420d15(0x12e)]()?_0x19de16[_0x420d15(0x12e)]():undefined;}function appProfiles(_0x24ca20){const _0x5abbea=a192_0xa0ab;return _0x24ca20[_0x5abbea(0x13b)]&&typeof _0x24ca20[_0x5abbea(0x13b)]===_0x5abbea(0x137)?_0x24ca20[_0x5abbea(0x13b)]:{};}function resolveDefaultAppName(_0x275cf3){const _0x2490fc=a192_0xa0ab,_0x35be39=stringConfigValue(_0x275cf3[_0x2490fc(0x128)]);if(_0x35be39)return _0x35be39;return Object[_0x2490fc(0x14d)](appProfiles(_0x275cf3))[0x0];}function resolveTopLevelAppCode(_0x304924){const _0x5c88e1=a192_0xa0ab;return stringConfigValue(_0x304924[_0x5c88e1(0x136)])||stringConfigValue(_0x304924[_0x5c88e1(0x13c)]);}function a192_0xa0ab(_0x2b010b,_0x5e4405){_0x2b010b=_0x2b010b-0x126;const _0x38cad3=a192_0x38ca();let _0xa0ab5d=_0x38cad3[_0x2b010b];return _0xa0ab5d;}export function resolveAppConfig({raw:_0x3fad77,flags:_0xd758c8,layers:_0x4de036,readEnv:_0xb1ddd4}){const _0x5e08f1=a192_0xa0ab,_0x5abe31=_0x4de036?.['projectConfig']??{},_0x1f091c=_0x4de036?.[_0x5e08f1(0x12d)]??{},_0xfd7515=Object[_0x5e08f1(0x14d)](_0x5abe31)[_0x5e08f1(0x129)]>0x0,_0x2343f7=!_0xfd7515||_0x5abe31[_0x5e08f1(0x14c)]===!![],_0x198f5b=_0xfd7515?resolveDefaultAppName(_0x5abe31):undefined,_0x4ba850=_0x2343f7?resolveDefaultAppName(_0x1f091c):undefined,_0x12b4b4=stringConfigValue(_0xd758c8['app']),_0x4f554f=_0xb1ddd4('APP'),_0x4b0704={};if(_0x3fad77[_0x5e08f1(0x13b)]&&typeof _0x3fad77['apps']===_0x5e08f1(0x137))for(const [_0x67faee,_0x30a7a0]of Object[_0x5e08f1(0x142)](_0x3fad77[_0x5e08f1(0x13b)])){_0x30a7a0&&typeof _0x30a7a0===_0x5e08f1(0x137)&&_0x30a7a0['appcode']&&(_0x4b0704[_0x67faee]=_0x30a7a0);}const _0x8c6bf1=_0x3fad77['defaultApp']||undefined,_0x2e5ccb=Object[_0x5e08f1(0x14d)](_0x4b0704)[_0x5e08f1(0x129)]>0x0,_0x21ccfd=_0x12b4b4||_0x198f5b||_0x4f554f||_0x4ba850||_0x8c6bf1||undefined,_0x3a235e=stringConfigValue(_0xd758c8[_0x5e08f1(0x136)]),_0x2dfdba=_0x3a235e?Object[_0x5e08f1(0x142)](_0x4b0704)[_0x5e08f1(0x140)](([,_0x6baa37])=>_0x6baa37?.[_0x5e08f1(0x136)]===_0x3a235e):undefined,_0x588923=_0x2dfdba?.[0x0],_0x1ad0d5=_0x2dfdba?.[0x1],_0x1be1f3=_0x3a235e?_0x588923:_0x21ccfd;let _0x209298=_0x1be1f3&&_0x4b0704[_0x1be1f3]?_0x4b0704[_0x1be1f3]:undefined;_0x3a235e&&_0x1ad0d5&&(_0x209298=_0x1ad0d5);const _0x48e940=_0x3a235e?_0x1ad0d5??_0x209298:_0x209298,_0x4979aa=!_0x12b4b4&&!_0x198f5b&&_0x4f554f&&_0x1be1f3===_0x4f554f,_0x793a42=_0x12b4b4||(_0x4979aa?_0x4f554f:undefined)||(_0x3a235e?_0x588923:undefined),_0x4c2606=_0x48e940?.[_0x5e08f1(0x136)],_0x270104=_0xfd7515?resolveTopLevelAppCode(_0x5abe31):undefined,_0x28681d=_0x2343f7?resolveTopLevelAppCode(_0x1f091c):undefined,_0x4948b7=_0x12b4b4||_0x198f5b?_0x4c2606:undefined,_0x2db83a=!_0x12b4b4&&!_0x198f5b?_0x4c2606:undefined,_0xa1c69f=_0x3a235e||_0x4948b7||_0x270104||_0x2db83a||_0x28681d||undefined,_0x157334=_0xfd7515?stringConfigValue(_0x5abe31[_0x5e08f1(0x14a)]):undefined,_0x27458f=_0x2343f7?stringConfigValue(_0x1f091c[_0x5e08f1(0x14a)]):undefined,_0x4bd40a=_0xd758c8[_0x5e08f1(0x14a)]||_0x48e940?.[_0x5e08f1(0x14a)]||_0x157334||_0xb1ddd4(_0x5e08f1(0x138))||_0x27458f||_0x3fad77[_0x5e08f1(0x14a)]||DEFAULT_CONFIG_VALUES[_0x5e08f1(0x14a)],_0x326540=_0x48e940?.['locale']||_0x3fad77[_0x5e08f1(0x12a)]||DEFAULT_CONFIG_VALUES[_0x5e08f1(0x12a)],_0x2c4d0f=_0xb1ddd4('COOKIE')||_0x48e940?.[_0x5e08f1(0x139)]||_0x3fad77['cookie']||undefined,_0x276374=_0xb1ddd4('ACCESS_KEY')||_0x48e940?.[_0x5e08f1(0x126)]||_0x3fad77['accessKey']||undefined,_0x34f14e=_0xd758c8['format']||_0xb1ddd4(_0x5e08f1(0x146))||_0x48e940?.[_0x5e08f1(0x135)]||_0x3fad77['format'],_0x154e74=normalizeLegacyOutputFormat(_0x34f14e),_0x45ec79=_0xb1ddd4(_0x5e08f1(0x141))||_0x48e940?.[_0x5e08f1(0x150)]||_0x3fad77[_0x5e08f1(0x150)],_0x3d0bcf=_0x45ec79?Number(_0x45ec79)||undefined:undefined,_0x5856ab=_0xb1ddd4(_0x5e08f1(0x12b))||_0xb1ddd4(_0x5e08f1(0x132))||_0x48e940?.[_0x5e08f1(0x148)]||_0x3fad77[_0x5e08f1(0x148)]||_0x3fad77[_0x5e08f1(0x12c)],_0x36f20f=_0x5856ab===_0x5e08f1(0x13a)||_0x5856ab===_0x5e08f1(0x12f)?_0x5856ab:DEFAULT_CONFIG_VALUES[_0x5e08f1(0x148)],_0x1564cf=_0xb1ddd4(_0x5e08f1(0x13e)),_0x73d40f=_0x1564cf==='1'||_0x1564cf===_0x5e08f1(0x143),_0x345428=_0x48e940?.[_0x5e08f1(0x134)]||_0x3fad77['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],_0x2ef8f0=isDaily(normalizeEnv(String(_0x4bd40a)))?_0x5e08f1(0x14e):_0x5e08f1(0x144);return{'appCode':typeof _0xa1c69f==='string'&&_0xa1c69f[_0x5e08f1(0x12e)]()?_0xa1c69f['trim']():undefined,'env':_0x2ef8f0,'locale':_0x326540,'cookie':_0x2c4d0f,'accessKey':_0x276374,'format':_0x154e74,'pageSize':_0x3d0bcf,'riskLevel':_0x36f20f,'verbose':_0x73d40f,'apiDir':_0x345428,'apps':_0x4b0704,'defaultApp':_0x8c6bf1,'currentApp':_0x2e5ccb?_0x1be1f3:undefined,'explicitAppName':_0x793a42};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x23028f,_0x4b16a4){const _0x1c8b13=a193_0x5281,_0x56ad10=_0x23028f();while(!![]){try{const _0x56c8f8=parseInt(_0x1c8b13(0x1c7))/0x1*(parseInt(_0x1c8b13(0x1c5))/0x2)+parseInt(_0x1c8b13(0x1c6))/0x3*(-parseInt(_0x1c8b13(0x1bd))/0x4)+-parseInt(_0x1c8b13(0x1c4))/0x5*(parseInt(_0x1c8b13(0x1c2))/0x6)+parseInt(_0x1c8b13(0x1c9))/0x7*(parseInt(_0x1c8b13(0x1bf))/0x8)+-parseInt(_0x1c8b13(0x1c8))/0x9*(parseInt(_0x1c8b13(0x1c3))/0xa)+-parseInt(_0x1c8b13(0x1bc))/0xb+parseInt(_0x1c8b13(0x1c0))/0xc;if(_0x56c8f8===_0x4b16a4)break;else _0x56ad10['push'](_0x56ad10['shift']());}catch(_0x109bf1){_0x56ad10['push'](_0x56ad10['shift']());}}}(a193_0x4d2f,0x6d734));import{getIsSessionValid}from'../auth/is-session-valid.js';function a193_0x5281(_0x4e3d86,_0x52dfb0){_0x4e3d86=_0x4e3d86-0x1bc;const _0x4d2f91=a193_0x4d2f();let _0x52816b=_0x4d2f91[_0x4e3d86];return _0x52816b;}function a193_0x4d2f(){const _0x4b4e93=['../auth/get-cookie.js','6VuxMke','42610qMqpnb','2404795ZfhVzq','12602BQWDaK','514149OiNddW','46QzVXWQ','1593HzJFbz','4472776RhiYXb','8004942qyvxqW','4CuMAfe','cookie','8yoNtJg','19845060FPRPkb'];a193_0x4d2f=function(){return _0x4b4e93;};return a193_0x4d2f();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x13d5ee){const _0x3fdaef=a193_0x5281,{getCookie:_0x4e9dd3}=await import(_0x3fdaef(0x1c1)),_0xffc76e=_0x13d5ee[_0x3fdaef(0x1be)]||_0x4e9dd3(),_0x39a7bb=_0xffc76e?await getIsSessionValid():![];return{'cookie':_0xffc76e,'isLoggedIn':_0x39a7bb,async 'getOrLogin'(){if(_0xffc76e&&_0x39a7bb)return _0xffc76e;throw CliErrors['authRequired']();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a194_0x1887(_0xfac40d,_0x1232d4){_0xfac40d=_0xfac40d-0x1e6;const _0x333b1e=a194_0x333b();let _0x18876a=_0x333b1e[_0xfac40d];return _0x18876a;}const a194_0x44298e=a194_0x1887;(function(_0x318e15,_0xb94d53){const _0x4baa7a=a194_0x1887,_0x38ae92=_0x318e15();while(!![]){try{const _0x3eed5f=-parseInt(_0x4baa7a(0x203))/0x1*(-parseInt(_0x4baa7a(0x1ee))/0x2)+parseInt(_0x4baa7a(0x20b))/0x3*(parseInt(_0x4baa7a(0x210))/0x4)+parseInt(_0x4baa7a(0x1ef))/0x5+parseInt(_0x4baa7a(0x1f0))/0x6+parseInt(_0x4baa7a(0x1ff))/0x7+-parseInt(_0x4baa7a(0x1fa))/0x8+-parseInt(_0x4baa7a(0x20d))/0x9*(parseInt(_0x4baa7a(0x206))/0xa);if(_0x3eed5f===_0xb94d53)break;else _0x38ae92['push'](_0x38ae92['shift']());}catch(_0x39f50a){_0x38ae92['push'](_0x38ae92['shift']());}}}(a194_0x333b,0x89972));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a194_0x44298e(0x20c);export const CONFIG_NAMES=[a194_0x44298e(0x20c),'.lovrabet.json',a194_0x44298e(0x1f5)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x5d6072=>_0x5d6072!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x296d57){for(const _0x81de30 of CONFIG_NAMES){const _0x292eec=resolve(_0x296d57,_0x81de30);if(existsSync(_0x292eec))return _0x292eec;}return undefined;}export function findProjectRootDirectory(_0x2d29f6=process[a194_0x44298e(0x214)]()){let _0x48f8b7=resolve(_0x2d29f6);const {root:_0x300805}=parse(_0x48f8b7),_0x45d6ae=homedir();while(!![]){if(resolveConfigPath(_0x48f8b7)){if(_0x48f8b7===_0x45d6ae)break;return _0x48f8b7;}if(_0x48f8b7===_0x300805||_0x48f8b7===_0x45d6ae)break;const _0x2f9f6f=dirname(_0x48f8b7);if(_0x2f9f6f===_0x48f8b7)break;_0x48f8b7=_0x2f9f6f;}return resolve(_0x2d29f6);}function a194_0x333b(){const _0x37d609=['16234sTyJPB','data','utf8','60SuzhfR','pageSize','message','.tmp','status','1328619jrPjNa','.rabetbase.json','2697687rCCdXu','migrated','config','4okttCx','riskLevel','parse','string','cwd','appcode','locale','cookie','app','keys','accessKey','inherit','set','trim','108hdScPd','1328085yOrdvK','6161784FQJepM','length','format','silent','env','.lovrabetrc','apiDir','stringify','error','\x0a\x20\x20','3473272qAjKwC','warn','empty','apps','defaultApp','1288679QJDRrl','object','missing','project'];a194_0x333b=function(){return _0x37d609;};return a194_0x333b();}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x6fd759){const _0x3c8153=a194_0x44298e;if(!existsSync(_0x6fd759))return{'status':_0x3c8153(0x201)};try{const _0x2d8ff5=readFileSync(_0x6fd759,{'encoding':_0x3c8153(0x205)});if(!_0x2d8ff5?.[_0x3c8153(0x1ed)]())return{'status':_0x3c8153(0x1fc)};const _0x38de33=JSON[_0x3c8153(0x212)](_0x2d8ff5);return{'status':'ok','data':_0x38de33};}catch(_0x7dcdef){return{'status':_0x3c8153(0x1f8),'message':_0x7dcdef instanceof Error?_0x7dcdef[_0x3c8153(0x208)]:String(_0x7dcdef)};}}function parseCliConfigJsonFile(_0x4b7a90,_0x1f5c29,_0x3d8406){const _0x599e5e=a194_0x44298e,_0x3d54cf=inspectCliConfigJsonFile(_0x4b7a90);if(_0x3d54cf['status']===_0x599e5e(0x201)||_0x3d54cf[_0x599e5e(0x20a)]==='empty')return{};if(_0x3d54cf[_0x599e5e(0x20a)]==='ok')return _0x3d54cf[_0x599e5e(0x204)];return _0x1f5c29===_0x599e5e(0x1fb)&&_0x3d8406&&console[_0x599e5e(0x1f8)](CLI_BIN_NAME+':\x20'+_0x3d8406+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x4b7a90+_0x599e5e(0x1f9)+_0x3d54cf['message']),{};}function normalizeLegacyConfigShape(_0x43ebda){const _0x5ed286=a194_0x44298e;if(!_0x43ebda||typeof _0x43ebda!==_0x5ed286(0x200))return{'config':{},'migrated':![]};const _0x4ccf6a={..._0x43ebda},_0x3d7ee6=_0x4ccf6a[_0x5ed286(0x1fd)]&&typeof _0x4ccf6a[_0x5ed286(0x1fd)]===_0x5ed286(0x200)?{..._0x4ccf6a[_0x5ed286(0x1fd)]}:{},_0x23c829=Object['keys'](_0x3d7ee6)['length'],_0x1bb091=_0x4ccf6a[_0x5ed286(0x215)]||_0x4ccf6a['app'];let _0x274769=![];if(_0x1bb091&&_0x23c829===0x0){const _0x5b15a8=typeof _0x4ccf6a[_0x5ed286(0x1fe)]===_0x5ed286(0x213)&&_0x4ccf6a[_0x5ed286(0x1fe)][_0x5ed286(0x1ed)]()?_0x4ccf6a[_0x5ed286(0x1fe)]:String(_0x1bb091)[_0x5ed286(0x1ed)]();_0x3d7ee6[_0x5b15a8]={'appcode':String(_0x1bb091)[_0x5ed286(0x1ed)](),..._0x4ccf6a[_0x5ed286(0x1f4)]!=null?{'env':_0x4ccf6a[_0x5ed286(0x1f4)]}:{},..._0x4ccf6a[_0x5ed286(0x1f6)]!=null?{'apiDir':_0x4ccf6a['apiDir']}:{},..._0x4ccf6a[_0x5ed286(0x1e7)]!=null?{'cookie':_0x4ccf6a[_0x5ed286(0x1e7)]}:{},..._0x4ccf6a[_0x5ed286(0x1ea)]!=null?{'accessKey':_0x4ccf6a[_0x5ed286(0x1ea)]}:{},..._0x4ccf6a['format']!=null?{'format':_0x4ccf6a[_0x5ed286(0x1f2)]}:{},..._0x4ccf6a[_0x5ed286(0x207)]!=null?{'pageSize':_0x4ccf6a[_0x5ed286(0x207)]}:{},..._0x4ccf6a['riskLevel']!=null?{'riskLevel':_0x4ccf6a[_0x5ed286(0x211)]}:{},..._0x4ccf6a['locale']!=null?{'locale':_0x4ccf6a[_0x5ed286(0x1e6)]}:{}},_0x4ccf6a[_0x5ed286(0x1fd)]=_0x3d7ee6;if(!_0x4ccf6a['defaultApp'])_0x4ccf6a[_0x5ed286(0x1fe)]=_0x5b15a8;_0x274769=!![];}return(_0x5ed286(0x215)in _0x4ccf6a||'app'in _0x4ccf6a)&&(delete _0x4ccf6a[_0x5ed286(0x215)],delete _0x4ccf6a[_0x5ed286(0x1e8)],_0x274769=!![]),{'config':_0x4ccf6a,'migrated':_0x274769};}function writeNormalizedConfigIfNeeded(_0x24d748,_0x23b54e){const _0x1be19a=a194_0x44298e,_0x30fbfd=JSON['stringify'](_0x23b54e,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x24d748)===_0x30fbfd)return;writeConfigFile(_0x24d748,_0x23b54e),normalizedWriteCache[_0x1be19a(0x1ec)](_0x24d748,_0x30fbfd);}function parseAndNormalizeConfig(_0x2b7401,_0x5ad0f3,_0x1f1340){const _0x38fca8=a194_0x44298e,_0x569560=parseCliConfigJsonFile(_0x2b7401,_0x5ad0f3,_0x1f1340),_0x13f341=normalizeLegacyConfigShape(_0x569560);if(_0x13f341[_0x38fca8(0x20e)])try{writeNormalizedConfigIfNeeded(_0x2b7401,_0x13f341[_0x38fca8(0x20f)]);}catch{}return _0x13f341['config'];}export function loadRawConfigLayers(_0x5d35fe){const _0x284bcf=a194_0x44298e;let _0x5392fe={},_0x4ed6c7={};const _0x491581=resolveConfigPath(homedir());_0x491581&&(_0x5392fe=parseAndNormalizeConfig(_0x491581,_0x284bcf(0x1fb),'Global'));const _0x1ee6c8=_0x5d35fe??findProjectRootDirectory(),_0x2d9947=resolveConfigPath(_0x1ee6c8);return _0x2d9947&&(_0x4ed6c7=parseAndNormalizeConfig(_0x2d9947,_0x284bcf(0x1fb),'Project')),{'globalPath':_0x491581,'projectPath':_0x2d9947,'globalConfig':_0x5392fe,'projectConfig':_0x4ed6c7};}const INHERIT_WHITELIST=[a194_0x44298e(0x1e7),'accessKey',a194_0x44298e(0x1e6),a194_0x44298e(0x1f2),'riskLevel',a194_0x44298e(0x207)];export function mergeRawConfigLayers(_0x432719){const _0x2f2bd1=a194_0x44298e,{globalConfig:_0x7926ea,projectConfig:_0x4d0d85}=_0x432719,_0x340a4c=Object[_0x2f2bd1(0x1e9)](_0x4d0d85)[_0x2f2bd1(0x1f1)]>0x0;if(!_0x340a4c)return mergeGlobalOnly(_0x7926ea);if(_0x4d0d85[_0x2f2bd1(0x1eb)]===!![])return mergeFullInherit(_0x7926ea,_0x4d0d85);if(_0x4d0d85[_0x2f2bd1(0x1eb)]===![])return mergeIsolated(_0x4d0d85);return mergeProjectFirst(_0x7926ea,_0x4d0d85);}function mergeGlobalOnly(_0x1e1f51){const _0x15201a=a194_0x44298e,_0x424e90={..._0x1e1f51},_0x34ac13=_0x1e1f51[_0x15201a(0x1fd)]&&typeof _0x1e1f51[_0x15201a(0x1fd)]===_0x15201a(0x200)?_0x1e1f51['apps']:{};if(Object[_0x15201a(0x1e9)](_0x34ac13)[_0x15201a(0x1f1)]>0x0)_0x424e90['apps']=_0x34ac13;if(_0x1e1f51[_0x15201a(0x1fe)])_0x424e90[_0x15201a(0x1fe)]=_0x1e1f51[_0x15201a(0x1fe)];else{const _0x172d55=Object['keys'](_0x34ac13);if(_0x172d55[_0x15201a(0x1f1)]>0x0)_0x424e90[_0x15201a(0x1fe)]=_0x172d55[0x0];}return _0x424e90;}function mergeIsolated(_0x556269){const _0x32f3b3=a194_0x44298e,_0x7d9931={..._0x556269};delete _0x7d9931[_0x32f3b3(0x1eb)];const _0x3686f4=_0x556269[_0x32f3b3(0x1fd)]&&typeof _0x556269[_0x32f3b3(0x1fd)]===_0x32f3b3(0x200)?_0x556269[_0x32f3b3(0x1fd)]:{};Object[_0x32f3b3(0x1e9)](_0x3686f4)['length']>0x0?_0x7d9931['apps']=_0x3686f4:delete _0x7d9931[_0x32f3b3(0x1fd)];if('defaultApp'in _0x556269)_0x7d9931['defaultApp']=_0x556269['defaultApp'];else Object[_0x32f3b3(0x1e9)](_0x3686f4)[_0x32f3b3(0x1f1)]>0x0?_0x7d9931[_0x32f3b3(0x1fe)]=Object['keys'](_0x3686f4)[0x0]:delete _0x7d9931[_0x32f3b3(0x1fe)];return _0x7d9931;}function mergeProjectFirst(_0x31cd23,_0x1c0f5f){const _0x272919=a194_0x44298e,_0x1ef796={..._0x1c0f5f};delete _0x1ef796[_0x272919(0x1eb)];for(const _0x3c5836 of INHERIT_WHITELIST){!(_0x3c5836 in _0x1ef796)&&_0x3c5836 in _0x31cd23&&(_0x1ef796[_0x3c5836]=_0x31cd23[_0x3c5836]);}const _0x345df6=_0x1c0f5f[_0x272919(0x1fd)]&&typeof _0x1c0f5f['apps']===_0x272919(0x200)?_0x1c0f5f[_0x272919(0x1fd)]:{};Object['keys'](_0x345df6)[_0x272919(0x1f1)]>0x0?_0x1ef796[_0x272919(0x1fd)]=_0x345df6:delete _0x1ef796['apps'];if(_0x272919(0x1fe)in _0x1c0f5f)_0x1ef796[_0x272919(0x1fe)]=_0x1c0f5f['defaultApp'];else Object['keys'](_0x345df6)[_0x272919(0x1f1)]>0x0?_0x1ef796['defaultApp']=Object['keys'](_0x345df6)[0x0]:delete _0x1ef796[_0x272919(0x1fe)];return _0x1ef796;}function mergeFullInherit(_0x39e69c,_0x531ab7){const _0x53034d=a194_0x44298e,_0x52d08c=_0x39e69c[_0x53034d(0x1fd)]&&typeof _0x39e69c[_0x53034d(0x1fd)]===_0x53034d(0x200)?_0x39e69c[_0x53034d(0x1fd)]:{},_0x2a1cd9=_0x531ab7[_0x53034d(0x1fd)]&&typeof _0x531ab7[_0x53034d(0x1fd)]===_0x53034d(0x200)?_0x531ab7['apps']:{},_0x1d9d93={..._0x52d08c,..._0x2a1cd9},_0xd31e2b={..._0x39e69c,..._0x531ab7};delete _0xd31e2b[_0x53034d(0x1eb)];if(Object[_0x53034d(0x1e9)](_0x1d9d93)[_0x53034d(0x1f1)]>0x0)_0xd31e2b[_0x53034d(0x1fd)]=_0x1d9d93;if(_0x53034d(0x1fe)in _0x531ab7)_0xd31e2b['defaultApp']=_0x531ab7[_0x53034d(0x1fe)];else{if(Object['keys'](_0x2a1cd9)[_0x53034d(0x1f1)]>0x0)_0xd31e2b[_0x53034d(0x1fe)]=Object['keys'](_0x2a1cd9)[0x0];else{if(_0x39e69c[_0x53034d(0x1fe)])_0xd31e2b[_0x53034d(0x1fe)]=_0x39e69c[_0x53034d(0x1fe)];else{const _0x180c25=Object['keys'](_0x52d08c);if(_0x180c25[_0x53034d(0x1f1)]>0x0)_0xd31e2b[_0x53034d(0x1fe)]=_0x180c25[0x0];}}}return _0xd31e2b;}export function readRawConfigWithLayers(_0x54b4a4){const _0x1222ba=loadRawConfigLayers(_0x54b4a4);return{'config':mergeRawConfigLayers(_0x1222ba),'layers':_0x1222ba};}export function readRawConfig(_0x57d2a9){return mergeRawConfigLayers(loadRawConfigLayers(_0x57d2a9));}export function readConfigFile(_0x542273){const _0x429504=a194_0x44298e;return parseAndNormalizeConfig(_0x542273,_0x429504(0x1f3));}export function writeConfigFile(_0x471df1,_0x1873ee){const _0x15f523=a194_0x44298e,_0x44a014=dirname(_0x471df1);!existsSync(_0x44a014)&&mkdirSync(_0x44a014,{'recursive':!![]});const _0x5b9024=_0x471df1+_0x15f523(0x209);try{writeFileSync(_0x5b9024,JSON[_0x15f523(0x1f7)](_0x1873ee,null,0x2)+'\x0a',{'encoding':_0x15f523(0x205),'mode':0x180}),renameSync(_0x5b9024,_0x471df1);}catch(_0x54918e){try{unlinkSync(_0x5b9024);}catch{}throw _0x54918e;}}export function resolveWriteConfigPath(_0x943fc){const _0x1ee008=a194_0x44298e,_0x2941da=_0x943fc===_0x1ee008(0x202)?process[_0x1ee008(0x214)]():homedir(),_0x372d7e=resolveConfigPath(_0x2941da);return _0x372d7e??resolve(_0x2941da,NEW_CONFIG_NAME);}
|
|
1
|
+
const a194_0x49df06=a194_0x4e5f;(function(_0x42b810,_0x4e4853){const _0x3a51f1=a194_0x4e5f,_0x2f8bcc=_0x42b810();while(!![]){try{const _0x1d02c7=-parseInt(_0x3a51f1(0x129))/0x1+parseInt(_0x3a51f1(0x11e))/0x2*(parseInt(_0x3a51f1(0x115))/0x3)+-parseInt(_0x3a51f1(0x125))/0x4+parseInt(_0x3a51f1(0x10d))/0x5*(-parseInt(_0x3a51f1(0x13b))/0x6)+-parseInt(_0x3a51f1(0x131))/0x7+parseInt(_0x3a51f1(0x133))/0x8+-parseInt(_0x3a51f1(0x11d))/0x9*(-parseInt(_0x3a51f1(0x10b))/0xa);if(_0x1d02c7===_0x4e4853)break;else _0x2f8bcc['push'](_0x2f8bcc['shift']());}catch(_0x395f08){_0x2f8bcc['push'](_0x2f8bcc['shift']());}}}(a194_0x4bc7,0x6bce0));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';function a194_0x4e5f(_0x4edd40,_0x35cac1){_0x4edd40=_0x4edd40-0x10b;const _0x4bc772=a194_0x4bc7();let _0x4e5ff9=_0x4bc772[_0x4edd40];return _0x4e5ff9;}import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a194_0x49df06(0x10e);export const CONFIG_NAMES=[a194_0x49df06(0x10e),a194_0x49df06(0x127),'.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a194_0x49df06(0x114)](_0x1dbe4=>_0x1dbe4!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x2e9014){for(const _0x1b1a14 of CONFIG_NAMES){const _0x5027dc=resolve(_0x2e9014,_0x1b1a14);if(existsSync(_0x5027dc))return _0x5027dc;}return undefined;}export function findProjectRootDirectory(_0x13654e=process[a194_0x49df06(0x116)]()){let _0x2f0b1c=resolve(_0x13654e);const {root:_0x422909}=parse(_0x2f0b1c),_0x384f7c=homedir();while(!![]){if(resolveConfigPath(_0x2f0b1c)){if(_0x2f0b1c===_0x384f7c)break;return _0x2f0b1c;}if(_0x2f0b1c===_0x422909||_0x2f0b1c===_0x384f7c)break;const _0x4e6d26=dirname(_0x2f0b1c);if(_0x4e6d26===_0x2f0b1c)break;_0x2f0b1c=_0x4e6d26;}return resolve(_0x13654e);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}function a194_0x4bc7(){const _0x42ccf6=['13246HucwUF','data','apiDir','appcode','Global','error','cookie','1735616kjaoTW','app','.lovrabet.json','env','773415VTxskC','message','accessKey','riskLevel','migrated','empty','stringify','warn','3590160OSPrgD','format','5960752GReOsn','keys','object','trim','project','length','get','apps','2448288wGQdPG','locale','config','104330yzRwoV','defaultApp','10GWzCMO','.rabetbase.json','inherit','string','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','pageSize','\x0a\x20\x20','filter','156aaBRCP','cwd','.tmp','missing','set','status','silent','utf8','1629zNVYlq'];a194_0x4bc7=function(){return _0x42ccf6;};return a194_0x4bc7();}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x50b04a){const _0x51f739=a194_0x49df06;if(!existsSync(_0x50b04a))return{'status':_0x51f739(0x118)};try{const _0x190f74=readFileSync(_0x50b04a,{'encoding':'utf8'});if(!_0x190f74?.[_0x51f739(0x136)]())return{'status':'empty'};const _0x3e594a=JSON['parse'](_0x190f74);return{'status':'ok','data':_0x3e594a};}catch(_0x1aa857){return{'status':'error','message':_0x1aa857 instanceof Error?_0x1aa857[_0x51f739(0x12a)]:String(_0x1aa857)};}}function parseCliConfigJsonFile(_0x71848d,_0x4b4208,_0x388ba5){const _0x3b84e1=a194_0x49df06,_0x383c37=inspectCliConfigJsonFile(_0x71848d);if(_0x383c37[_0x3b84e1(0x11a)]===_0x3b84e1(0x118)||_0x383c37[_0x3b84e1(0x11a)]===_0x3b84e1(0x12e))return{};if(_0x383c37['status']==='ok')return _0x383c37[_0x3b84e1(0x11f)];return _0x4b4208===_0x3b84e1(0x130)&&_0x388ba5&&console[_0x3b84e1(0x123)](CLI_BIN_NAME+':\x20'+_0x388ba5+_0x3b84e1(0x111)+_0x71848d+_0x3b84e1(0x113)+_0x383c37['message']),{};}function normalizeLegacyConfigShape(_0x4e2f63){const _0x701bd4=a194_0x49df06;if(!_0x4e2f63||typeof _0x4e2f63!==_0x701bd4(0x135))return{'config':{},'migrated':![]};const _0x3cc760={..._0x4e2f63},_0x302487=_0x3cc760['apps']&&typeof _0x3cc760[_0x701bd4(0x13a)]===_0x701bd4(0x135)?{..._0x3cc760['apps']}:{},_0x2c43c0=Object[_0x701bd4(0x134)](_0x302487)[_0x701bd4(0x138)],_0x58c95a=_0x3cc760['appcode']||_0x3cc760[_0x701bd4(0x126)];let _0x956316=![];if(_0x58c95a&&_0x2c43c0===0x0){const _0x226180=typeof _0x3cc760[_0x701bd4(0x10c)]===_0x701bd4(0x110)&&_0x3cc760['defaultApp'][_0x701bd4(0x136)]()?_0x3cc760[_0x701bd4(0x10c)]:String(_0x58c95a)['trim']();_0x302487[_0x226180]={'appcode':String(_0x58c95a)['trim'](),..._0x3cc760['env']!=null?{'env':_0x3cc760[_0x701bd4(0x128)]}:{},..._0x3cc760[_0x701bd4(0x120)]!=null?{'apiDir':_0x3cc760[_0x701bd4(0x120)]}:{},..._0x3cc760['cookie']!=null?{'cookie':_0x3cc760[_0x701bd4(0x124)]}:{},..._0x3cc760[_0x701bd4(0x12b)]!=null?{'accessKey':_0x3cc760[_0x701bd4(0x12b)]}:{},..._0x3cc760['format']!=null?{'format':_0x3cc760[_0x701bd4(0x132)]}:{},..._0x3cc760[_0x701bd4(0x112)]!=null?{'pageSize':_0x3cc760[_0x701bd4(0x112)]}:{},..._0x3cc760['riskLevel']!=null?{'riskLevel':_0x3cc760[_0x701bd4(0x12c)]}:{},..._0x3cc760[_0x701bd4(0x13c)]!=null?{'locale':_0x3cc760['locale']}:{}},_0x3cc760[_0x701bd4(0x13a)]=_0x302487;if(!_0x3cc760[_0x701bd4(0x10c)])_0x3cc760[_0x701bd4(0x10c)]=_0x226180;_0x956316=!![];}return(_0x701bd4(0x121)in _0x3cc760||_0x701bd4(0x126)in _0x3cc760)&&(delete _0x3cc760[_0x701bd4(0x121)],delete _0x3cc760[_0x701bd4(0x126)],_0x956316=!![]),{'config':_0x3cc760,'migrated':_0x956316};}function writeNormalizedConfigIfNeeded(_0xbe26c6,_0x46621c){const _0x141e29=a194_0x49df06,_0x5ef4fe=JSON['stringify'](_0x46621c,null,0x2)+'\x0a';if(normalizedWriteCache[_0x141e29(0x139)](_0xbe26c6)===_0x5ef4fe)return;writeConfigFile(_0xbe26c6,_0x46621c),normalizedWriteCache[_0x141e29(0x119)](_0xbe26c6,_0x5ef4fe);}function parseAndNormalizeConfig(_0x5deb39,_0x240c8f,_0x3a87cc){const _0x1a687a=a194_0x49df06,_0x3c04f0=parseCliConfigJsonFile(_0x5deb39,_0x240c8f,_0x3a87cc),_0x39d551=normalizeLegacyConfigShape(_0x3c04f0);if(_0x39d551[_0x1a687a(0x12d)])try{writeNormalizedConfigIfNeeded(_0x5deb39,_0x39d551[_0x1a687a(0x13d)]);}catch{}return _0x39d551[_0x1a687a(0x13d)];}export function loadRawConfigLayers(_0x24770f){const _0x1d5849=a194_0x49df06;let _0x16560e={},_0x15fe6c={};const _0x5cb4bd=resolveConfigPath(homedir());_0x5cb4bd&&(_0x16560e=parseAndNormalizeConfig(_0x5cb4bd,_0x1d5849(0x130),_0x1d5849(0x122)));const _0x318594=_0x24770f??findProjectRootDirectory(),_0x26f096=resolveConfigPath(_0x318594);return _0x26f096&&(_0x15fe6c=parseAndNormalizeConfig(_0x26f096,_0x1d5849(0x130),'Project')),{'globalPath':_0x5cb4bd,'projectPath':_0x26f096,'globalConfig':_0x16560e,'projectConfig':_0x15fe6c};}const INHERIT_WHITELIST=[a194_0x49df06(0x124),a194_0x49df06(0x12b),a194_0x49df06(0x13c),a194_0x49df06(0x132),a194_0x49df06(0x12c),a194_0x49df06(0x112)];export function mergeRawConfigLayers(_0x1392dc){const _0x4e3c7e=a194_0x49df06,{globalConfig:_0x17a4c0,projectConfig:_0x417ea8}=_0x1392dc,_0x335c70=Object[_0x4e3c7e(0x134)](_0x417ea8)[_0x4e3c7e(0x138)]>0x0;if(!_0x335c70)return mergeGlobalOnly(_0x17a4c0);if(_0x417ea8[_0x4e3c7e(0x10f)]===!![])return mergeFullInherit(_0x17a4c0,_0x417ea8);if(_0x417ea8[_0x4e3c7e(0x10f)]===![])return mergeIsolated(_0x417ea8);return mergeProjectFirst(_0x17a4c0,_0x417ea8);}function mergeGlobalOnly(_0x49dfed){const _0x3fdd5e=a194_0x49df06,_0x44fcc3={..._0x49dfed},_0x152c21=_0x49dfed[_0x3fdd5e(0x13a)]&&typeof _0x49dfed[_0x3fdd5e(0x13a)]===_0x3fdd5e(0x135)?_0x49dfed[_0x3fdd5e(0x13a)]:{};if(Object[_0x3fdd5e(0x134)](_0x152c21)[_0x3fdd5e(0x138)]>0x0)_0x44fcc3[_0x3fdd5e(0x13a)]=_0x152c21;if(_0x49dfed['defaultApp'])_0x44fcc3[_0x3fdd5e(0x10c)]=_0x49dfed[_0x3fdd5e(0x10c)];else{const _0x5e329e=Object[_0x3fdd5e(0x134)](_0x152c21);if(_0x5e329e['length']>0x0)_0x44fcc3[_0x3fdd5e(0x10c)]=_0x5e329e[0x0];}return _0x44fcc3;}function mergeIsolated(_0x14e33a){const _0x83043e=a194_0x49df06,_0x57ef1c={..._0x14e33a};delete _0x57ef1c[_0x83043e(0x10f)];const _0xdde151=_0x14e33a[_0x83043e(0x13a)]&&typeof _0x14e33a[_0x83043e(0x13a)]===_0x83043e(0x135)?_0x14e33a['apps']:{};Object[_0x83043e(0x134)](_0xdde151)[_0x83043e(0x138)]>0x0?_0x57ef1c[_0x83043e(0x13a)]=_0xdde151:delete _0x57ef1c['apps'];if('defaultApp'in _0x14e33a)_0x57ef1c['defaultApp']=_0x14e33a['defaultApp'];else Object['keys'](_0xdde151)[_0x83043e(0x138)]>0x0?_0x57ef1c[_0x83043e(0x10c)]=Object[_0x83043e(0x134)](_0xdde151)[0x0]:delete _0x57ef1c[_0x83043e(0x10c)];return _0x57ef1c;}function mergeProjectFirst(_0x493e93,_0x942833){const _0x46dd69=a194_0x49df06,_0x4f3566={..._0x942833};delete _0x4f3566[_0x46dd69(0x10f)];for(const _0x371cfe of INHERIT_WHITELIST){!(_0x371cfe in _0x4f3566)&&_0x371cfe in _0x493e93&&(_0x4f3566[_0x371cfe]=_0x493e93[_0x371cfe]);}const _0x2390b1=_0x942833['apps']&&typeof _0x942833[_0x46dd69(0x13a)]===_0x46dd69(0x135)?_0x942833[_0x46dd69(0x13a)]:{};Object[_0x46dd69(0x134)](_0x2390b1)[_0x46dd69(0x138)]>0x0?_0x4f3566[_0x46dd69(0x13a)]=_0x2390b1:delete _0x4f3566['apps'];if(_0x46dd69(0x10c)in _0x942833)_0x4f3566[_0x46dd69(0x10c)]=_0x942833[_0x46dd69(0x10c)];else Object['keys'](_0x2390b1)[_0x46dd69(0x138)]>0x0?_0x4f3566[_0x46dd69(0x10c)]=Object[_0x46dd69(0x134)](_0x2390b1)[0x0]:delete _0x4f3566['defaultApp'];return _0x4f3566;}function mergeFullInherit(_0x277d65,_0xc34480){const _0x4e958a=a194_0x49df06,_0x2e12c9=_0x277d65[_0x4e958a(0x13a)]&&typeof _0x277d65[_0x4e958a(0x13a)]===_0x4e958a(0x135)?_0x277d65[_0x4e958a(0x13a)]:{},_0xd23cf7=_0xc34480[_0x4e958a(0x13a)]&&typeof _0xc34480['apps']===_0x4e958a(0x135)?_0xc34480['apps']:{},_0x5c8f16={..._0x2e12c9,..._0xd23cf7},_0x4eda7c={..._0x277d65,..._0xc34480};delete _0x4eda7c[_0x4e958a(0x10f)];if(Object[_0x4e958a(0x134)](_0x5c8f16)[_0x4e958a(0x138)]>0x0)_0x4eda7c[_0x4e958a(0x13a)]=_0x5c8f16;if(_0x4e958a(0x10c)in _0xc34480)_0x4eda7c['defaultApp']=_0xc34480[_0x4e958a(0x10c)];else{if(Object[_0x4e958a(0x134)](_0xd23cf7)[_0x4e958a(0x138)]>0x0)_0x4eda7c[_0x4e958a(0x10c)]=Object[_0x4e958a(0x134)](_0xd23cf7)[0x0];else{if(_0x277d65[_0x4e958a(0x10c)])_0x4eda7c[_0x4e958a(0x10c)]=_0x277d65['defaultApp'];else{const _0x23aaec=Object[_0x4e958a(0x134)](_0x2e12c9);if(_0x23aaec[_0x4e958a(0x138)]>0x0)_0x4eda7c['defaultApp']=_0x23aaec[0x0];}}}return _0x4eda7c;}export function readRawConfigWithLayers(_0x24df2a){const _0x34202e=loadRawConfigLayers(_0x24df2a);return{'config':mergeRawConfigLayers(_0x34202e),'layers':_0x34202e};}export function readRawConfig(_0x248ce2){return mergeRawConfigLayers(loadRawConfigLayers(_0x248ce2));}export function readConfigFile(_0x117fe9){const _0x4a63ca=a194_0x49df06;return parseAndNormalizeConfig(_0x117fe9,_0x4a63ca(0x11b));}export function writeConfigFile(_0x2bd667,_0x56af16){const _0x332e74=a194_0x49df06,_0x1bf759=dirname(_0x2bd667);!existsSync(_0x1bf759)&&mkdirSync(_0x1bf759,{'recursive':!![]});const _0x97276f=_0x2bd667+_0x332e74(0x117);try{writeFileSync(_0x97276f,JSON[_0x332e74(0x12f)](_0x56af16,null,0x2)+'\x0a',{'encoding':_0x332e74(0x11c),'mode':0x180}),renameSync(_0x97276f,_0x2bd667);}catch(_0x131d9f){try{unlinkSync(_0x97276f);}catch{}throw _0x131d9f;}}export function resolveWriteConfigPath(_0x25a4e9){const _0xdc76bd=a194_0x49df06,_0x552395=_0x25a4e9===_0xdc76bd(0x137)?process[_0xdc76bd(0x116)]():homedir(),_0x5966d1=resolveConfigPath(_0x552395);return _0x5966d1??resolve(_0x552395,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x349639,_0xd39e6f){const _0x3aadfa=a195_0x2dff,_0x2c6a97=_0x349639();while(!![]){try{const _0x56fc3e=-parseInt(_0x3aadfa(0x199))/0x1+parseInt(_0x3aadfa(0x1af))/0x2+parseInt(_0x3aadfa(0x19b))/0x3*(-parseInt(_0x3aadfa(0x1ad))/0x4)+parseInt(_0x3aadfa(0x1a0))/0x5+-parseInt(_0x3aadfa(0x18d))/0x6*(-parseInt(_0x3aadfa(0x190))/0x7)+parseInt(_0x3aadfa(0x198))/0x8*(-parseInt(_0x3aadfa(0x1a9))/0x9)+parseInt(_0x3aadfa(0x1a7))/0xa;if(_0x56fc3e===_0xd39e6f)break;else _0x2c6a97['push'](_0x2c6a97['shift']());}catch(_0x182fa8){_0x2c6a97['push'](_0x2c6a97['shift']());}}}(a195_0x24b1,0x67a2a));function a195_0x24b1(){const _0xe16f76=['setRawCommand','entries','149000BVJXOh','197156kTiqPG','env','1522851tYxaDU','projectConfig','api.ts','object','./constant/domain.js','60820Uzkabp','cookie','values','trim','./constant/env.js','apps','globalConfig','9586060HccwwP','runtimeDomain','360RfXAuJ','string','template_base_url','join','4pUQEhR','replace','1379002tqRhnj','find','slice','1283952qZDwFY','appcode','https://g.lovrabet.com/dist/lovrabet-skill','7xCpAFN','apiDir','filter','defaultApp','cwd','setLogPath'];a195_0x24b1=function(){return _0xe16f76;};return a195_0x24b1();}import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x28ffc0){return process.env[`RABETBASE_${_0x28ffc0}`]||process.env[`LOVRABET_${_0x28ffc0}`]||undefined;}export async function createContext(_0x30e2d3){const _0x120e6f=a195_0x2dff,{config:_0x3c0b28,layers:_0x116449}=readRawConfigWithLayers(),_0x3e74a3=buildConfig(_0x3c0b28,_0x30e2d3,_0x116449),{initEnv:_0x26f5c0}=await import(_0x120e6f(0x1a4));if(_0x3e74a3[_0x120e6f(0x19a)])_0x26f5c0(_0x3e74a3[_0x120e6f(0x19a)]);else _0x30e2d3['env']&&typeof _0x30e2d3[_0x120e6f(0x19a)]===_0x120e6f(0x1aa)&&_0x26f5c0(_0x30e2d3[_0x120e6f(0x19a)]);const {initDomains:_0x7fa184,getUserDomain:_0x10ca62,getApiDomain:_0x4c11c5}=await import(_0x120e6f(0x19f));_0x7fa184({'apiDomain':_0x3c0b28['apiDomain']||undefined,'userDomain':_0x3c0b28['userDomain']||undefined,'runtimeDomain':_0x3c0b28[_0x120e6f(0x1a8)]||undefined});const _0x330ba1={'apiDomain':_0x4c11c5(),'userDomain':_0x10ca62()},_0x489f7d=await buildAuth(_0x3e74a3);logger[_0x120e6f(0x195)](process[_0x120e6f(0x194)]());const _0x1b5f85=(CLI_BIN_NAME+'\x20'+process['argv'][_0x120e6f(0x1b1)](0x2)[_0x120e6f(0x1ac)]('\x20'))[_0x120e6f(0x1a3)]();logger[_0x120e6f(0x196)](_0x1b5f85);const {isNonInteractive:_0x214975}=await import('./utils/is-non-interactive.js'),_0x304abc=_0x214975(_0x30e2d3);return{'config':_0x3e74a3,'auth':_0x489f7d,'logger':logger,'env':_0x330ba1,'nonInteractive':_0x304abc};}function a195_0x2dff(_0x549471,_0x4cb83a){_0x549471=_0x549471-0x18d;const _0x24b19c=a195_0x24b1();let _0x2dffdb=_0x24b19c[_0x549471];return _0x2dffdb;}export function buildConfigFromFlags(_0x53a434){const {config:_0x2f7273,layers:_0x3296a2}=readRawConfigWithLayers();return buildConfig(_0x2f7273,_0x53a434,_0x3296a2);}export function getConfigAppCode(_0x46514e){const _0x41fafa=a195_0x2dff,_0x3d753f=readRawConfig(_0x46514e);if(_0x3d753f['apps']&&typeof _0x3d753f[_0x41fafa(0x1a5)]==='object'){const _0x5ee1e9=_0x3d753f['defaultApp'];if(_0x5ee1e9&&_0x3d753f[_0x41fafa(0x1a5)][_0x5ee1e9]?.[_0x41fafa(0x18e)])return String(_0x3d753f[_0x41fafa(0x1a5)][_0x5ee1e9][_0x41fafa(0x18e)])[_0x41fafa(0x1a3)]();const _0x1126d3=Object[_0x41fafa(0x1a2)](_0x3d753f[_0x41fafa(0x1a5)])[0x0];if(_0x1126d3?.[_0x41fafa(0x18e)])return String(_0x1126d3[_0x41fafa(0x18e)])[_0x41fafa(0x1a3)]();}const _0x25a5b1=_0x3d753f[_0x41fafa(0x18e)]||_0x3d753f['app'];if(typeof _0x25a5b1!=='string'||_0x25a5b1[_0x41fafa(0x1a3)]()==='')return undefined;return _0x25a5b1[_0x41fafa(0x1a3)]();}export function getMultiAppConfigs(_0x2d847b='project',_0x3ea489){const _0x514bce=a195_0x2dff,_0x39215f=loadRawConfigLayers(_0x3ea489);let _0x4f6313,_0x5bfd70;if(_0x2d847b==='merged'){const _0x4e9360=_0x39215f[_0x514bce(0x1a6)][_0x514bce(0x1a5)]&&typeof _0x39215f[_0x514bce(0x1a6)][_0x514bce(0x1a5)]===_0x514bce(0x19e)?_0x39215f[_0x514bce(0x1a6)][_0x514bce(0x1a5)]:{},_0x103083=_0x39215f[_0x514bce(0x19c)]['apps']&&typeof _0x39215f[_0x514bce(0x19c)]['apps']===_0x514bce(0x19e)?_0x39215f[_0x514bce(0x19c)][_0x514bce(0x1a5)]:{};_0x4f6313={..._0x4e9360,..._0x103083};const _0x53fd9c=readRawConfig(_0x3ea489);_0x5bfd70=_0x53fd9c[_0x514bce(0x193)];}else _0x4f6313=_0x39215f['projectConfig'][_0x514bce(0x1a5)],_0x5bfd70=_0x39215f[_0x514bce(0x19c)][_0x514bce(0x193)];if(!_0x4f6313||typeof _0x4f6313!=='object'||Object['keys'](_0x4f6313)['length']===0x0)return null;return Object['entries'](_0x4f6313)['map'](([_0x1156d0,_0x3e6957])=>({'name':_0x1156d0,'appcode':_0x3e6957?.['appcode']||'','isDefault':_0x1156d0===_0x5bfd70,'env':_0x3e6957?.[_0x514bce(0x19a)],'apiDir':_0x3e6957?.['apiDir'],'cookie':_0x3e6957?.[_0x514bce(0x1a1)]||undefined}))[_0x514bce(0x192)](_0x4fdc25=>_0x4fdc25['appcode']);}export function getTemplateBaseUrl(_0x7feba8){const _0x2498d5=a195_0x2dff,_0x2c033e=readRawConfig(_0x7feba8);if(_0x2c033e[_0x2498d5(0x1ab)]&&typeof _0x2c033e[_0x2498d5(0x1ab)]===_0x2498d5(0x1aa))return _0x2c033e[_0x2498d5(0x1ab)][_0x2498d5(0x1ae)](/\/$/,'');return _0x2498d5(0x18f);}function buildConfig(_0x6a41a,_0x223c8d,_0x143497){return{...resolveAppConfig({'raw':_0x6a41a,'flags':_0x223c8d,'layers':_0x143497,'readEnv':env}),'raw':_0x6a41a};}export function resolveApiFilePath(_0x4cd160,_0x34515a){const _0x264159=a195_0x2dff,_0x3f1ffe=resolve(process[_0x264159(0x194)](),_0x4cd160),_0x30926f=resolve(_0x3f1ffe,_0x264159(0x19d));if(!_0x34515a)return _0x30926f;const _0x57b3f4=readRawConfig(),_0x58265b=_0x57b3f4['apps']&&typeof _0x57b3f4[_0x264159(0x1a5)]===_0x264159(0x19e)?_0x57b3f4[_0x264159(0x1a5)]:{},_0x26eb73=Object[_0x264159(0x197)](_0x58265b)[_0x264159(0x1b0)](([,_0x3d37b4])=>_0x3d37b4?.[_0x264159(0x18e)]===_0x34515a);if(!_0x26eb73)return _0x30926f;const [_0x412875,_0x51e4f0]=_0x26eb73,_0x169f19=typeof _0x57b3f4[_0x264159(0x193)]===_0x264159(0x1aa)?_0x57b3f4[_0x264159(0x193)]:undefined;if(_0x51e4f0?.[_0x264159(0x191)])return _0x30926f;if(_0x169f19&&_0x412875!==_0x169f19)return resolve(_0x3f1ffe,_0x412875+'-api.ts');return _0x30926f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x362272,_0x21bac1){const _0x2e988e=a196_0x44da,_0x4ac480=_0x362272();while(!![]){try{const _0x3e1add=-parseInt(_0x2e988e(0x93))/0x1+parseInt(_0x2e988e(0x9a))/0x2*(parseInt(_0x2e988e(0x8a))/0x3)+parseInt(_0x2e988e(0x95))/0x4*(-parseInt(_0x2e988e(0x88))/0x5)+parseInt(_0x2e988e(0x90))/0x6+parseInt(_0x2e988e(0x98))/0x7*(parseInt(_0x2e988e(0x8c))/0x8)+parseInt(_0x2e988e(0x87))/0x9+parseInt(_0x2e988e(0x94))/0xa*(-parseInt(_0x2e988e(0x89))/0xb);if(_0x3e1add===_0x21bac1)break;else _0x4ac480['push'](_0x4ac480['shift']());}catch(_0x8bb73){_0x4ac480['push'](_0x4ac480['shift']());}}}(a196_0x3b2f,0x5e162));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x4ecb28){const _0x158b06=a196_0x44da,_0x4c1ec3=[],_0x5f5b31=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x3a321c;while((_0x3a321c=_0x5f5b31['exec'](_0x4ecb28))!==null){_0x4c1ec3[_0x158b06(0x96)]({'datasetCode':_0x3a321c[0x1],'tableName':_0x3a321c[0x2],'name':_0x3a321c[0x3],'alias':_0x3a321c[0x4]});}return _0x4c1ec3;}function a196_0x44da(_0x347de8,_0x5b2a04){_0x347de8=_0x347de8-0x86;const _0x3b2fcb=a196_0x3b2f();let _0x44da6a=_0x3b2fcb[_0x347de8];return _0x44da6a;}export function loadAliasMap(_0x34082e,_0x8120a1,_0x2062ea){const _0xc0c32=a196_0x44da,_0x1b37fc=_0x2062ea??resolve(process[_0xc0c32(0x8b)](),_0x34082e,_0xc0c32(0x92));if(cache[_0xc0c32(0x91)](_0x1b37fc))return cache[_0xc0c32(0x8f)](_0x1b37fc);if(!existsSync(_0x1b37fc))return cache[_0xc0c32(0x8e)](_0x1b37fc,[]),[];try{const _0x4b44df=readFileSync(_0x1b37fc,_0xc0c32(0x86)),_0x40b41d=parseApiFile(_0x4b44df);return cache['set'](_0x1b37fc,_0x40b41d),_0x40b41d;}catch{return cache['set'](_0x1b37fc,[]),[];}}function a196_0x3b2f(){const _0x54efa7=['8tPtWiB','datasetCode','set','get','3987126tYayOY','has','api.ts','72765tyXHCz','834740RGYhsq','4wnexOo','push','alias','713853eRgPoH','find','2whDsfe','utf-8','2030445yBqTIE','2779105kTCTWk','22KJlUTF','566421WghMJn','cwd'];a196_0x3b2f=function(){return _0x54efa7;};return a196_0x3b2f();}export function resolveAlias(_0x4a95b8,_0x5baa5f,_0x27cb85,_0x24ea68){const _0x15eb51=a196_0x44da;if(!_0x5baa5f)return undefined;const _0x365747=loadAliasMap(_0x4a95b8,_0x27cb85,_0x24ea68),_0x10ae69=_0x365747[_0x15eb51(0x99)](_0x565a01=>_0x565a01[_0x15eb51(0x97)]===_0x5baa5f);return _0x10ae69?.[_0x15eb51(0x8d)];}export function listAliases(_0x17f913,_0x2099d8,_0xf245af){return loadAliasMap(_0x17f913,_0x2099d8,_0xf245af);}
|