@lovrabet/rabetbase-cli 2.3.7-beta.1 → 2.3.7-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 -0
- package/lib/commands/db/analyze-batch-plan.js +1 -0
- 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/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 a169_0x51c153=a169_0x2b69;function a169_0x2b69(_0x22b7d0,_0x25c97b){_0x22b7d0=_0x22b7d0-0x174;const _0x513d9f=a169_0x513d();let _0x2b6963=_0x513d9f[_0x22b7d0];return _0x2b6963;}(function(_0xef650,_0x429d67){const _0x8335ad=a169_0x2b69,_0x486994=_0xef650();while(!![]){try{const _0x538cd1=-parseInt(_0x8335ad(0x17e))/0x1+parseInt(_0x8335ad(0x1b1))/0x2+parseInt(_0x8335ad(0x1a4))/0x3*(-parseInt(_0x8335ad(0x178))/0x4)+-parseInt(_0x8335ad(0x177))/0x5+parseInt(_0x8335ad(0x1c2))/0x6+parseInt(_0x8335ad(0x184))/0x7+parseInt(_0x8335ad(0x18f))/0x8;if(_0x538cd1===_0x429d67)break;else _0x486994['push'](_0x486994['shift']());}catch(_0x39c85e){_0x486994['push'](_0x486994['shift']());}}}(a169_0x513d,0xdaa30));export const CLI_BIN_NAME=a169_0x51c153(0x1b5);function a169_0x513d(){const _0x332d9f=['1070442kwfFkU','datasetcode','Keyword\x20filter','SQL\x20code','rabetbase','remote','global','Use\x20project\x20config\x20scope','nonInteractive','enable-bff-save','type','expectedCount','db-id','sql','Clear','target','format','5296200IHhBkp','clear','keyword','value','schemas','meowKey','appcode','Read\x20value\x20from\x20environment\x20variable','Watch\x20mode','Preview\x20operation\x20without\x20executing','functionNode','Skip\x20import\x20generation','Dataset\x20code','reveal','File\x20path','env','all','sql-name','Environment','@lovrabet/rabetbase-cli','Function\x20node','expected-count','Use\x20global\x20config\x20scope','Title','dbid','Rabetbase\x20CLI','function-node','non-interactive','Use\x20remote','<name>','stdin','DB\x20ID','4065395iUjcyp','4868qAaagm','confirm','Expected\x20affected\x20count','dry-run','Apply\x20to\x20all','Record\x20ID','526360hqNZMC','watch','fromEnv','Config\x20value','boolean','key','973854TwuDHy','pagesize','Output\x20format','Reveal\x20sensitive\x20value','production\x20|\x20daily','Code\x20filter','Read\x20value\x20from\x20stdin','fromEntries','yes','title','output','9074456ANOrkb','force','help','enableBffSave','Force\x20non-interactive\x20mode\x20(CI)','tags','params','<expr>','string','Enable\x20BFF\x20save','JSON\x20params','file','sqlcode','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','verbose','operation','SQL\x20string','Alias\x20for\x20--non-interactive','dryRun','skip-imports','skipImports','1125mcefal','Select\x20app\x20profile\x20by\x20name','page','app','sqlname','Page\x20number','Force\x20overwrite','map','Operation\x20type','name','Page\x20size','Target\x20path','code'];a169_0x513d=function(){return _0x332d9f;};return a169_0x513d();}export const CLI_DISPLAY_NAME=a169_0x51c153(0x1db);export const NPM_PACKAGE_NAME=a169_0x51c153(0x1d5);export const GLOBAL_FLAGS=[{'name':a169_0x51c153(0x1c8),'meowKey':a169_0x51c153(0x1c8),'type':a169_0x51c153(0x197),'description':'Override\x20appcode','hint':'<code>'},{'name':a169_0x51c153(0x1a7),'meowKey':a169_0x51c153(0x1a7),'type':'string','description':a169_0x51c153(0x1a5),'hint':a169_0x51c153(0x174)},{'name':'env','meowKey':'env','type':a169_0x51c153(0x197),'description':a169_0x51c153(0x1d4),'hint':a169_0x51c153(0x188)},{'name':a169_0x51c153(0x1c1),'meowKey':a169_0x51c153(0x1c1),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x186),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a169_0x51c153(0x197),'description':a169_0x51c153(0x19c),'hint':a169_0x51c153(0x196)},{'name':a169_0x51c153(0x17b),'meowKey':a169_0x51c153(0x1a1),'type':a169_0x51c153(0x182),'description':a169_0x51c153(0x1cb)},{'name':a169_0x51c153(0x18c),'meowKey':'yes','type':a169_0x51c153(0x182),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a169_0x51c153(0x1dd),'meowKey':a169_0x51c153(0x1b9),'type':a169_0x51c153(0x182),'description':a169_0x51c153(0x193)},{'name':a169_0x51c153(0x1b7),'meowKey':'global','type':a169_0x51c153(0x182),'description':a169_0x51c153(0x1d8)},{'name':'project','meowKey':'project','type':a169_0x51c153(0x182),'description':a169_0x51c153(0x1b8)},{'name':'ci','meowKey':'ci','type':a169_0x51c153(0x182),'description':a169_0x51c153(0x1a0),'hidden':!![]},{'name':a169_0x51c153(0x191),'meowKey':a169_0x51c153(0x191),'type':a169_0x51c153(0x182),'description':'Show\x20help'},{'name':'name','meowKey':a169_0x51c153(0x1ad),'type':'string','description':'Name','hidden':!![]},{'name':a169_0x51c153(0x18d),'meowKey':a169_0x51c153(0x18d),'type':'string','description':a169_0x51c153(0x1d9),'hidden':!![]},{'name':a169_0x51c153(0x1c3),'meowKey':a169_0x51c153(0x1c3),'type':a169_0x51c153(0x182),'description':a169_0x51c153(0x1bf),'hidden':!![]},{'name':a169_0x51c153(0x17f),'meowKey':a169_0x51c153(0x17f),'type':a169_0x51c153(0x182),'description':a169_0x51c153(0x1ca),'hidden':!![]},{'name':a169_0x51c153(0x18e),'meowKey':a169_0x51c153(0x18e),'type':a169_0x51c153(0x197),'description':'Output\x20path','hidden':!![]},{'name':a169_0x51c153(0x195),'meowKey':a169_0x51c153(0x195),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x199),'hidden':!![]},{'name':a169_0x51c153(0x1b2),'meowKey':a169_0x51c153(0x1b2),'type':'string','description':a169_0x51c153(0x1ce),'hidden':!![]},{'name':'all','meowKey':a169_0x51c153(0x1d2),'type':a169_0x51c153(0x182),'description':a169_0x51c153(0x17c),'hidden':!![]},{'name':a169_0x51c153(0x1ba),'meowKey':a169_0x51c153(0x192),'type':a169_0x51c153(0x182),'description':a169_0x51c153(0x198),'hidden':!![]},{'name':'id','meowKey':'id','type':a169_0x51c153(0x197),'description':a169_0x51c153(0x17d),'hidden':!![]},{'name':a169_0x51c153(0x1bb),'meowKey':a169_0x51c153(0x1bb),'type':'string','description':'Type\x20filter','hidden':!![]},{'name':a169_0x51c153(0x19a),'meowKey':a169_0x51c153(0x19a),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x1d0),'hidden':!![]},{'name':'sqlcode','meowKey':a169_0x51c153(0x19b),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x1b4),'hidden':!![]},{'name':a169_0x51c153(0x1d3),'meowKey':'sqlName','type':a169_0x51c153(0x197),'description':'SQL\x20name','hidden':!![]},{'name':a169_0x51c153(0x1a8),'meowKey':'sqlname','type':'string','description':'SQL\x20name','hidden':!![]},{'name':a169_0x51c153(0x1bd),'meowKey':'dbId','type':a169_0x51c153(0x197),'description':a169_0x51c153(0x176),'hidden':!![]},{'name':a169_0x51c153(0x1da),'meowKey':a169_0x51c153(0x1da),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x176),'hidden':!![]},{'name':'description','meowKey':'description','type':a169_0x51c153(0x197),'description':'Description','hidden':!![]},{'name':'description-file','meowKey':'descriptionFile','type':a169_0x51c153(0x197),'description':'Description\x20file','hidden':!![]},{'name':a169_0x51c153(0x1a6),'meowKey':a169_0x51c153(0x1a6),'type':'string','description':a169_0x51c153(0x1a9),'hidden':!![]},{'name':a169_0x51c153(0x185),'meowKey':a169_0x51c153(0x185),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x1ae),'hidden':!![]},{'name':'keyword','meowKey':a169_0x51c153(0x1c4),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x1b3),'hidden':!![]},{'name':a169_0x51c153(0x1b0),'meowKey':a169_0x51c153(0x1b0),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x189),'hidden':!![]},{'name':a169_0x51c153(0x1be),'meowKey':a169_0x51c153(0x1be),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x19f),'hidden':!![]},{'name':'schemas','meowKey':a169_0x51c153(0x1c6),'type':'string','description':'Schemas','hidden':!![]},{'name':a169_0x51c153(0x19e),'meowKey':a169_0x51c153(0x19e),'type':'string','description':a169_0x51c153(0x1ac),'hidden':!![]},{'name':a169_0x51c153(0x1c0),'meowKey':a169_0x51c153(0x1c0),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x1af),'hidden':!![]},{'name':a169_0x51c153(0x1a2),'meowKey':a169_0x51c153(0x1a3),'type':a169_0x51c153(0x182),'description':a169_0x51c153(0x1cd),'hidden':!![]},{'name':a169_0x51c153(0x183),'meowKey':'key','type':a169_0x51c153(0x197),'description':'Config\x20key','hidden':!![]},{'name':a169_0x51c153(0x1c5),'meowKey':a169_0x51c153(0x1c5),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x181),'hidden':!![]},{'name':'tags','meowKey':a169_0x51c153(0x194),'type':'string','description':'Tags','hidden':!![]},{'name':a169_0x51c153(0x175),'meowKey':a169_0x51c153(0x175),'type':a169_0x51c153(0x182),'description':a169_0x51c153(0x18a),'hidden':!![]},{'name':'from-env','meowKey':a169_0x51c153(0x180),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x1c9),'hidden':!![]},{'name':a169_0x51c153(0x1cf),'meowKey':'reveal','type':'boolean','description':a169_0x51c153(0x187),'hidden':!![]},{'name':a169_0x51c153(0x190),'meowKey':a169_0x51c153(0x190),'type':a169_0x51c153(0x182),'description':a169_0x51c153(0x1aa),'hidden':!![]},{'name':a169_0x51c153(0x179),'meowKey':a169_0x51c153(0x179),'type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a169_0x51c153(0x1b6),'meowKey':a169_0x51c153(0x1b6),'type':a169_0x51c153(0x182),'description':a169_0x51c153(0x1de),'hidden':!![]},{'name':'verbose','meowKey':a169_0x51c153(0x19d),'type':a169_0x51c153(0x182),'description':'Verbose\x20output','hidden':!![]},{'name':a169_0x51c153(0x1d7),'meowKey':a169_0x51c153(0x1bc),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x17a),'hidden':!![]},{'name':'operation-type','meowKey':'operationType','type':a169_0x51c153(0x197),'description':'Operation\x20type','hidden':!![]},{'name':a169_0x51c153(0x1dc),'meowKey':a169_0x51c153(0x1cc),'type':a169_0x51c153(0x197),'description':a169_0x51c153(0x1d6),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a169_0x51c153(0x1a7),a169_0x51c153(0x1d1),a169_0x51c153(0x1c1),'jq',a169_0x51c153(0x17b),a169_0x51c153(0x18c),a169_0x51c153(0x1dd),'ci']);export function buildMeowFlags(){const _0x4d4694=a169_0x51c153;return Object[_0x4d4694(0x18b)](GLOBAL_FLAGS[_0x4d4694(0x1ab)](_0x375df2=>[_0x375df2[_0x4d4694(0x1c7)],{'type':_0x375df2[_0x4d4694(0x1bb)]}]));}
|
|
1
|
+
const a171_0x3fdc65=a171_0x2463;(function(_0x29539e,_0x28fe2f){const _0x8351b9=a171_0x2463,_0x41dfd2=_0x29539e();while(!![]){try{const _0x11254e=parseInt(_0x8351b9(0x240))/0x1+-parseInt(_0x8351b9(0x21e))/0x2*(-parseInt(_0x8351b9(0x21a))/0x3)+parseInt(_0x8351b9(0x1e3))/0x4*(-parseInt(_0x8351b9(0x24b))/0x5)+parseInt(_0x8351b9(0x1db))/0x6*(-parseInt(_0x8351b9(0x1e5))/0x7)+-parseInt(_0x8351b9(0x1eb))/0x8*(-parseInt(_0x8351b9(0x23b))/0x9)+-parseInt(_0x8351b9(0x1d9))/0xa*(-parseInt(_0x8351b9(0x1da))/0xb)+parseInt(_0x8351b9(0x1f2))/0xc*(-parseInt(_0x8351b9(0x1ec))/0xd);if(_0x11254e===_0x28fe2f)break;else _0x41dfd2['push'](_0x41dfd2['shift']());}catch(_0xd8cd5c){_0x41dfd2['push'](_0x41dfd2['shift']());}}}(a171_0x245c,0xb5b98));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a171_0x3fdc65(0x1fd);export const NPM_PACKAGE_NAME=a171_0x3fdc65(0x1f6);function a171_0x245c(){const _0x265ea1=['Verbose\x20output','Dataset\x20code','tags','sqlName','Record\x20ID','functionNode','app','sqlcode','key','reveal','11045CHYaSF','Page\x20size','output','dbid','datasetcode','Read\x20value\x20from\x20environment\x20variable','10ydopIT','14477639xsQrDZ','1674444FOqRIm','Code\x20filter','Environment','name','fromEntries','Tags','expectedCount','SQL\x20code','724AIpLKr','<name>','28GzNsAh','sql-name','all','stdin','meowKey','verbose','8SQUKCY','325rJBhrb','dbId','skip-imports','value','SQL\x20string','operation-type','660780lppMpm','Skip\x20import\x20generation','pagesize','format','@lovrabet/rabetbase-cli','Description','env','schemas','Type\x20filter','fromEnv','Config\x20key','Rabetbase\x20CLI','help','Override\x20appcode','Title','force','Target\x20path','Watch\x20mode','string','operationType','Function\x20node','SQL\x20name','global','operation','Keyword\x20filter','File\x20path','confirm','boolean','nonInteractive','<expr>','Clear','description','Name','Select\x20app\x20profile\x20by\x20name','map','Use\x20global\x20config\x20scope','Expected\x20affected\x20count','skipImports','JSON\x20params','Output\x20format','3782301nhquBg','sql','Schemas','production\x20|\x20daily','2ZTlxsF','yes','Force\x20non-interactive\x20mode\x20(CI)','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','watch','Description\x20file','code','page','non-interactive','title','db-id','Operation\x20type','Read\x20value\x20from\x20stdin','json\x20|\x20pretty\x20|\x20compress','appcode','Apply\x20to\x20all','project','enableBffSave','keyword','Use\x20remote','dryRun','DB\x20ID','type','Confirm\x20destructive\x20action','Use\x20project\x20config\x20scope','Enable\x20BFF\x20save','Alias\x20for\x20--non-interactive','params','dry-run','7697457fUhhdn','Output\x20path','expected-count','descriptionFile','target','204905gsFesK'];a171_0x245c=function(){return _0x265ea1;};return a171_0x245c();}export const GLOBAL_FLAGS=[{'name':a171_0x3fdc65(0x22c),'meowKey':a171_0x3fdc65(0x22c),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x1ff),'hint':'<code>'},{'name':a171_0x3fdc65(0x247),'meowKey':a171_0x3fdc65(0x247),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x213),'hint':a171_0x3fdc65(0x1e4)},{'name':a171_0x3fdc65(0x1f8),'meowKey':a171_0x3fdc65(0x1f8),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x1dd),'hint':a171_0x3fdc65(0x21d)},{'name':a171_0x3fdc65(0x1f5),'meowKey':a171_0x3fdc65(0x1f5),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x219),'hint':a171_0x3fdc65(0x22b)},{'name':'jq','meowKey':'jq','type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x221),'hint':a171_0x3fdc65(0x20f)},{'name':a171_0x3fdc65(0x23a),'meowKey':a171_0x3fdc65(0x232),'type':a171_0x3fdc65(0x20d),'description':'Preview\x20operation\x20without\x20executing'},{'name':a171_0x3fdc65(0x21f),'meowKey':a171_0x3fdc65(0x21f),'type':a171_0x3fdc65(0x20d),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a171_0x3fdc65(0x226),'meowKey':a171_0x3fdc65(0x20e),'type':a171_0x3fdc65(0x20d),'description':a171_0x3fdc65(0x220)},{'name':a171_0x3fdc65(0x208),'meowKey':a171_0x3fdc65(0x208),'type':'boolean','description':a171_0x3fdc65(0x215)},{'name':a171_0x3fdc65(0x22e),'meowKey':a171_0x3fdc65(0x22e),'type':a171_0x3fdc65(0x20d),'description':a171_0x3fdc65(0x236)},{'name':'ci','meowKey':'ci','type':a171_0x3fdc65(0x20d),'description':a171_0x3fdc65(0x238),'hidden':!![]},{'name':a171_0x3fdc65(0x1fe),'meowKey':a171_0x3fdc65(0x1fe),'type':'boolean','description':'Show\x20help'},{'name':a171_0x3fdc65(0x1de),'meowKey':a171_0x3fdc65(0x1de),'type':'string','description':a171_0x3fdc65(0x212),'hidden':!![]},{'name':'title','meowKey':a171_0x3fdc65(0x227),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x200),'hidden':!![]},{'name':'clear','meowKey':'clear','type':a171_0x3fdc65(0x20d),'description':a171_0x3fdc65(0x210),'hidden':!![]},{'name':'watch','meowKey':a171_0x3fdc65(0x222),'type':'boolean','description':a171_0x3fdc65(0x203),'hidden':!![]},{'name':a171_0x3fdc65(0x1d5),'meowKey':a171_0x3fdc65(0x1d5),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x23c),'hidden':!![]},{'name':a171_0x3fdc65(0x239),'meowKey':'params','type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x218),'hidden':!![]},{'name':a171_0x3fdc65(0x1d7),'meowKey':a171_0x3fdc65(0x1d7),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x242),'hidden':!![]},{'name':a171_0x3fdc65(0x1e7),'meowKey':a171_0x3fdc65(0x1e7),'type':a171_0x3fdc65(0x20d),'description':a171_0x3fdc65(0x22d),'hidden':!![]},{'name':'enable-bff-save','meowKey':a171_0x3fdc65(0x22f),'type':a171_0x3fdc65(0x20d),'description':a171_0x3fdc65(0x237),'hidden':!![]},{'name':'id','meowKey':'id','type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x245),'hidden':!![]},{'name':a171_0x3fdc65(0x234),'meowKey':a171_0x3fdc65(0x234),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x1fa),'hidden':!![]},{'name':'file','meowKey':'file','type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x20b),'hidden':!![]},{'name':a171_0x3fdc65(0x248),'meowKey':'sqlcode','type':'string','description':a171_0x3fdc65(0x1e2),'hidden':!![]},{'name':a171_0x3fdc65(0x1e6),'meowKey':a171_0x3fdc65(0x244),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x207),'hidden':!![]},{'name':'sqlname','meowKey':'sqlname','type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x207),'hidden':!![]},{'name':a171_0x3fdc65(0x228),'meowKey':a171_0x3fdc65(0x1ed),'type':'string','description':a171_0x3fdc65(0x233),'hidden':!![]},{'name':a171_0x3fdc65(0x1d6),'meowKey':'dbid','type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x233),'hidden':!![]},{'name':'description','meowKey':a171_0x3fdc65(0x211),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x1f7),'hidden':!![]},{'name':'description-file','meowKey':a171_0x3fdc65(0x23e),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x223),'hidden':!![]},{'name':a171_0x3fdc65(0x225),'meowKey':a171_0x3fdc65(0x225),'type':a171_0x3fdc65(0x204),'description':'Page\x20number','hidden':!![]},{'name':'pagesize','meowKey':a171_0x3fdc65(0x1f4),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x1d4),'hidden':!![]},{'name':a171_0x3fdc65(0x230),'meowKey':a171_0x3fdc65(0x230),'type':'string','description':a171_0x3fdc65(0x20a),'hidden':!![]},{'name':'code','meowKey':a171_0x3fdc65(0x224),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x1dc),'hidden':!![]},{'name':a171_0x3fdc65(0x21b),'meowKey':a171_0x3fdc65(0x21b),'type':'string','description':a171_0x3fdc65(0x1f0),'hidden':!![]},{'name':a171_0x3fdc65(0x1f9),'meowKey':a171_0x3fdc65(0x1f9),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x21c),'hidden':!![]},{'name':'operation','meowKey':a171_0x3fdc65(0x209),'type':'string','description':a171_0x3fdc65(0x229),'hidden':!![]},{'name':a171_0x3fdc65(0x23f),'meowKey':a171_0x3fdc65(0x23f),'type':'string','description':a171_0x3fdc65(0x202),'hidden':!![]},{'name':a171_0x3fdc65(0x1ee),'meowKey':a171_0x3fdc65(0x217),'type':a171_0x3fdc65(0x20d),'description':a171_0x3fdc65(0x1f3),'hidden':!![]},{'name':a171_0x3fdc65(0x249),'meowKey':a171_0x3fdc65(0x249),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x1fc),'hidden':!![]},{'name':a171_0x3fdc65(0x1ef),'meowKey':a171_0x3fdc65(0x1ef),'type':a171_0x3fdc65(0x204),'description':'Config\x20value','hidden':!![]},{'name':a171_0x3fdc65(0x243),'meowKey':a171_0x3fdc65(0x243),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x1e0),'hidden':!![]},{'name':a171_0x3fdc65(0x1e8),'meowKey':'stdin','type':'boolean','description':a171_0x3fdc65(0x22a),'hidden':!![]},{'name':'from-env','meowKey':a171_0x3fdc65(0x1fb),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x1d8),'hidden':!![]},{'name':a171_0x3fdc65(0x24a),'meowKey':a171_0x3fdc65(0x24a),'type':a171_0x3fdc65(0x20d),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a171_0x3fdc65(0x201),'meowKey':a171_0x3fdc65(0x201),'type':a171_0x3fdc65(0x20d),'description':'Force\x20overwrite','hidden':!![]},{'name':a171_0x3fdc65(0x20c),'meowKey':'confirm','type':'boolean','description':a171_0x3fdc65(0x235),'hidden':!![]},{'name':'remote','meowKey':'remote','type':a171_0x3fdc65(0x20d),'description':a171_0x3fdc65(0x231),'hidden':!![]},{'name':a171_0x3fdc65(0x1ea),'meowKey':a171_0x3fdc65(0x1ea),'type':a171_0x3fdc65(0x20d),'description':a171_0x3fdc65(0x241),'hidden':!![]},{'name':a171_0x3fdc65(0x23d),'meowKey':a171_0x3fdc65(0x1e1),'type':a171_0x3fdc65(0x204),'description':a171_0x3fdc65(0x216),'hidden':!![]},{'name':a171_0x3fdc65(0x1f1),'meowKey':a171_0x3fdc65(0x205),'type':a171_0x3fdc65(0x204),'description':'Operation\x20type','hidden':!![]},{'name':'function-node','meowKey':a171_0x3fdc65(0x246),'type':'string','description':a171_0x3fdc65(0x206),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app',a171_0x3fdc65(0x1f8),'format','jq',a171_0x3fdc65(0x23a),'yes',a171_0x3fdc65(0x226),'ci']);function a171_0x2463(_0x43cd28,_0xaf844b){_0x43cd28=_0x43cd28-0x1d4;const _0x245cca=a171_0x245c();let _0x24633e=_0x245cca[_0x43cd28];return _0x24633e;}export function buildMeowFlags(){const _0x20961=a171_0x3fdc65;return Object[_0x20961(0x1df)](GLOBAL_FLAGS[_0x20961(0x214)](_0x4b5adb=>[_0x4b5adb[_0x20961(0x1e9)],{'type':_0x4b5adb['type']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a172_0x4a8194=a172_0x18d8;(function(_0x27bfea,_0x247d48){const _0x207206=a172_0x18d8,_0x42a0e5=_0x27bfea();while(!![]){try{const _0x46c66f=-parseInt(_0x207206(0xe6))/0x1*(parseInt(_0x207206(0xe4))/0x2)+parseInt(_0x207206(0xe5))/0x3+parseInt(_0x207206(0xe2))/0x4+-parseInt(_0x207206(0xe8))/0x5*(parseInt(_0x207206(0xee))/0x6)+-parseInt(_0x207206(0xeb))/0x7+parseInt(_0x207206(0xe9))/0x8+parseInt(_0x207206(0xec))/0x9;if(_0x46c66f===_0x247d48)break;else _0x42a0e5['push'](_0x42a0e5['shift']());}catch(_0x301d32){_0x42a0e5['push'](_0x42a0e5['shift']());}}}(a172_0x4edf,0xca6eb));function a172_0x18d8(_0xb45ff0,_0x5702b6){_0xb45ff0=_0xb45ff0-0xe2;const _0x4edf62=a172_0x4edf();let _0x18d868=_0x4edf62[_0xb45ff0];return _0x18d868;}import{DEFAULT_API_DIR}from'../constant/paths.js';function a172_0x4edf(){const _0x108760=['3335295gDYpoA','1650805NHzkpo','compress','4317070Hzusqe','8175360NADkwJ','production','7545097xsasKj','18299142iHbhfr','en-US','6YvjbuA','1017320awccwI','high-risk-write','2KyoZbm'];a172_0x4edf=function(){return _0x108760;};return a172_0x4edf();}export const DEFAULT_CONFIG_VALUES={'env':a172_0x4a8194(0xea),'format':a172_0x4a8194(0xe7),'locale':a172_0x4a8194(0xed),'riskLevel':a172_0x4a8194(0xe3),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a172_0x4a8194(0xe7);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a173_0x412a28=a173_0x14a6;(function(_0x42758f,_0x28cb1f){const _0x347a74=a173_0x14a6,_0x358718=_0x42758f();while(!![]){try{const _0x52fe46=-parseInt(_0x347a74(0x14f))/0x1*(-parseInt(_0x347a74(0x154))/0x2)+parseInt(_0x347a74(0x150))/0x3*(-parseInt(_0x347a74(0x14a))/0x4)+-parseInt(_0x347a74(0x157))/0x5*(-parseInt(_0x347a74(0x155))/0x6)+-parseInt(_0x347a74(0x159))/0x7*(-parseInt(_0x347a74(0x158))/0x8)+-parseInt(_0x347a74(0x14e))/0x9*(-parseInt(_0x347a74(0x15c))/0xa)+parseInt(_0x347a74(0x15d))/0xb+-parseInt(_0x347a74(0x15f))/0xc;if(_0x52fe46===_0x28cb1f)break;else _0x358718['push'](_0x358718['shift']());}catch(_0x4a6eb9){_0x358718['push'](_0x358718['shift']());}}}(a173_0x5e91,0x770bf));import{getEnv,isProduction}from'../constant/env.js';function a173_0x14a6(_0x2dd7bc,_0x5228bd){_0x2dd7bc=_0x2dd7bc-0x148;const _0x5e918e=a173_0x5e91();let _0x14a6fc=_0x5e918e[_0x2dd7bc];return _0x14a6fc;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x1e8720){const _0x520c73=a173_0x14a6;customApiDomain=_0x1e8720?.[_0x520c73(0x15a)],customUserDomain=_0x1e8720?.[_0x520c73(0x149)],customRuntimeDomain=_0x1e8720?.[_0x520c73(0x153)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a173_0x412a28(0x152):a173_0x412a28(0x15e));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a173_0x412a28(0x15b):a173_0x412a28(0x14c));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a173_0x412a28(0x14d):'https://daily-runtime.lovrabet.com');export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a173_0x412a28(0x151);function a173_0x5e91(){const _0xbb4932=['942920gSmeoC','https://user-daily.lovrabet.com','29873136TwHkqE','/app/','userDomain','787496bOkIJN','/web-app/app/','https://daily-api.lovrabet.com','https://runtime.lovrabet.com','878022VQocpJ','468121oDwSIC','3bVHJuK','https://daily.lovrabet.com','https://user.lovrabet.com','runtimeDomain','4aYNwVd','6WXNEcb','trim','3651605XvRyNL','738728lGZziV','56xAnvQE','apiDomain','https://api.lovrabet.com','70xxNDvO'];a173_0x5e91=function(){return _0xbb4932;};return a173_0x5e91();}export const getAppBaseUrl=_0x5c8a4c=>{const _0x1adf3c=a173_0x412a28,_0x4d4f0f=encodeURIComponent(_0x5c8a4c[_0x1adf3c(0x156)]());return isProduction(getEnv())?getAppDomain()+_0x1adf3c(0x148)+_0x4d4f0f:getAppDomain()+_0x1adf3c(0x14b)+_0x4d4f0f;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a174_0xb008(){const _0x5d9fc5=['development','15074iatcUQ','40490nCgGVd','10076pUDHPy','520wPlEJo','7edyUAJ','production','319Tphhcq','303032xvVjCu','daily','dev','online','416853OOAUGJ','7926JYUdHS','114195JoQlXn','3lnNoro'];a174_0xb008=function(){return _0x5d9fc5;};return a174_0xb008();}const a174_0x41bf54=a174_0x4211;(function(_0x436300,_0x2d041b){const _0x1a4949=a174_0x4211,_0x860ec4=_0x436300();while(!![]){try{const _0x1f97ec=parseInt(_0x1a4949(0x19e))/0x1+-parseInt(_0x1a4949(0x1a1))/0x2+-parseInt(_0x1a4949(0x19f))/0x3*(parseInt(_0x1a4949(0x193))/0x4)+parseInt(_0x1a4949(0x194))/0x5*(parseInt(_0x1a4949(0x19d))/0x6)+-parseInt(_0x1a4949(0x195))/0x7*(parseInt(_0x1a4949(0x198))/0x8)+parseInt(_0x1a4949(0x19c))/0x9+-parseInt(_0x1a4949(0x1a2))/0xa*(parseInt(_0x1a4949(0x197))/0xb);if(_0x1f97ec===_0x2d041b)break;else _0x860ec4['push'](_0x860ec4['shift']());}catch(_0x4f0dbd){_0x860ec4['push'](_0x860ec4['shift']());}}}(a174_0xb008,0x205bc));export const RABETBASE_ENV_VALUES=[a174_0x41bf54(0x196),a174_0x41bf54(0x199)];export function normalizeEnv(_0x5b2645){const _0x18c835=a174_0x41bf54;return _0x5b2645===_0x18c835(0x19b)?_0x18c835(0x196):_0x5b2645;}export function isProduction(_0x2978a3){const _0x174e20=a174_0x41bf54;return normalizeEnv(_0x2978a3)===_0x174e20(0x196);}export function isDaily(_0x1b810d){const _0x2be0df=a174_0x41bf54;return normalizeEnv(_0x1b810d)===_0x2be0df(0x199);}export function isDev(_0x752707){const _0x5dc673=a174_0x41bf54,_0x15698e=normalizeEnv(_0x752707);return _0x15698e===_0x5dc673(0x1a0)||_0x15698e===_0x5dc673(0x19a);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a174_0x41bf54(0x196));function a174_0x4211(_0x506593,_0x5d2898){_0x506593=_0x506593-0x193;const _0xb00882=a174_0xb008();let _0x421120=_0xb00882[_0x506593];return _0x421120;}export function getEnv(){return env;}export function initEnv(_0x5ec5ce){env=normalizeEnv(_0x5ec5ce);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a175_0x51de19=a175_0x5b2a;(function(_0x120f65,_0x3e7651){const _0x1fdf57=a175_0x5b2a,_0xd75648=_0x120f65();while(!![]){try{const _0x44f828=parseInt(_0x1fdf57(0xa0))/0x1*(-parseInt(_0x1fdf57(0x9d))/0x2)+-parseInt(_0x1fdf57(0xa5))/0x3*(parseInt(_0x1fdf57(0xa4))/0x4)+parseInt(_0x1fdf57(0x9a))/0x5*(-parseInt(_0x1fdf57(0x9e))/0x6)+-parseInt(_0x1fdf57(0xa2))/0x7+-parseInt(_0x1fdf57(0x9b))/0x8*(-parseInt(_0x1fdf57(0x9c))/0x9)+parseInt(_0x1fdf57(0x99))/0xa+-parseInt(_0x1fdf57(0x9f))/0xb*(-parseInt(_0x1fdf57(0xa3))/0xc);if(_0x44f828===_0x3e7651)break;else _0xd75648['push'](_0xd75648['shift']());}catch(_0x1ab8a3){_0xd75648['push'](_0xd75648['shift']());}}}(a175_0x7d95,0x35080));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json','pretty',a175_0x51de19(0xa1)];function a175_0x5b2a(_0xc62600,_0x5a5daa){_0xc62600=_0xc62600-0x99;const _0x7d95c2=a175_0x7d95();let _0x5b2a5f=_0x7d95c2[_0xc62600];return _0x5b2a5f;}function a175_0x7d95(){const _0x1da9e8=['61055yZdtXb','5336mPBgDt','1962wHjefl','293794egunCd','162BJyeRm','11NDpwUo','1GVBzUI','compress','2020781tfMhqe','8885580mDBWDx','4ahyGuv','629997amxxzu','3066210EhltRg'];a175_0x7d95=function(){return _0x1da9e8;};return a175_0x7d95();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a176_0x11ca70=a176_0x410f;(function(_0x105c8e,_0x5dd986){const _0x37a89d=a176_0x410f,_0x12e67e=_0x105c8e();while(!![]){try{const _0xfceae1=-parseInt(_0x37a89d(0x161))/0x1*(parseInt(_0x37a89d(0x15e))/0x2)+parseInt(_0x37a89d(0x15d))/0x3+parseInt(_0x37a89d(0x15c))/0x4*(parseInt(_0x37a89d(0x15a))/0x5)+-parseInt(_0x37a89d(0x163))/0x6*(-parseInt(_0x37a89d(0x160))/0x7)+parseInt(_0x37a89d(0x15f))/0x8*(parseInt(_0x37a89d(0x162))/0x9)+parseInt(_0x37a89d(0x159))/0xa*(-parseInt(_0x37a89d(0x164))/0xb)+-parseInt(_0x37a89d(0x165))/0xc;if(_0xfceae1===_0x5dd986)break;else _0x12e67e['push'](_0x12e67e['shift']());}catch(_0x11766f){_0x12e67e['push'](_0x12e67e['shift']());}}}(a176_0x11e8,0x60714));function a176_0x410f(_0x1edca4,_0x264916){_0x1edca4=_0x1edca4-0x159;const _0x11e893=a176_0x11e8();let _0x410f5d=_0x11e893[_0x1edca4];return _0x410f5d;}function a176_0x11e8(){const _0x152424=['./src/api','641412rTYDec','191679UeqlqX','484hoNhAh','1185576cGkjvB','2719346LCvWky','491JcJaJB','45jgKjEP','6hcHHYn','11NxEfQX','13516872TukxXO','1945120BLdzDB','20EZQzbG'];a176_0x11e8=function(){return _0x152424;};return a176_0x11e8();}export const DEFAULT_API_DIR=a176_0x11ca70(0x15b);
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a177_0x442ea0=a177_0x41cc;(function(_0x2b1b9a,_0x20738f){const _0x4516ce=a177_0x41cc,_0x28dafe=_0x2b1b9a();while(!![]){try{const _0x3f4ab4=-parseInt(_0x4516ce(0x1d2))/0x1*(-parseInt(_0x4516ce(0x1d1))/0x2)+-parseInt(_0x4516ce(0x1c7))/0x3*(-parseInt(_0x4516ce(0x1c8))/0x4)+-parseInt(_0x4516ce(0x1cb))/0x5+-parseInt(_0x4516ce(0x1cf))/0x6+parseInt(_0x4516ce(0x1d0))/0x7*(-parseInt(_0x4516ce(0x1c9))/0x8)+-parseInt(_0x4516ce(0x1cd))/0x9+-parseInt(_0x4516ce(0x1d3))/0xa*(-parseInt(_0x4516ce(0x1cc))/0xb);if(_0x3f4ab4===_0x20738f)break;else _0x28dafe['push'](_0x28dafe['shift']());}catch(_0x127319){_0x28dafe['push'](_0x28dafe['shift']());}}}(a177_0x2437,0xaf240));export const RISK_LEVEL_VALUES=[a177_0x442ea0(0x1ce),a177_0x442ea0(0x1ca),'high-risk-write'];function a177_0x41cc(_0x4dc337,_0x52586b){_0x4dc337=_0x4dc337-0x1c7;const _0x24376b=a177_0x2437();let _0x41cc35=_0x24376b[_0x4dc337];return _0x41cc35;}function a177_0x2437(){const _0x5da194=['13136981zALcre','4243518WcGSRD','read','804432YfMPgZ','6572923olNcRr','2CAAhLh','851164yazEXS','10qahpHN','95880ioUIXH','176UiFTrD','8FlXREN','write','5948680YLagca'];a177_0x2437=function(){return _0x5da194;};return a177_0x2437();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f2291,_0x3d5f8c){const _0x20e7a4=a178_0x16c9,_0x35fcc2=_0x4f2291();while(!![]){try{const _0x219ef5=parseInt(_0x20e7a4(0xa1))/0x1+parseInt(_0x20e7a4(0xa7))/0x2+-parseInt(_0x20e7a4(0x8d))/0x3*(parseInt(_0x20e7a4(0x89))/0x4)+-parseInt(_0x20e7a4(0x98))/0x5*(-parseInt(_0x20e7a4(0xab))/0x6)+parseInt(_0x20e7a4(0xa9))/0x7*(-parseInt(_0x20e7a4(0x99))/0x8)+-parseInt(_0x20e7a4(0xa6))/0x9*(parseInt(_0x20e7a4(0x97))/0xa)+-parseInt(_0x20e7a4(0xaf))/0xb;if(_0x219ef5===_0x3d5f8c)break;else _0x35fcc2['push'](_0x35fcc2['shift']());}catch(_0xdc3815){_0x35fcc2['push'](_0x35fcc2['shift']());}}}(a178_0xb8bf,0x57996));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x582acd){const _0x1a04df=a178_0x16c9;return typeof _0x582acd===_0x1a04df(0x9a)&&_0x582acd['trim']()?_0x582acd[_0x1a04df(0x8c)]():undefined;}function appProfiles(_0x49bdd7){const _0x32624c=a178_0x16c9;return _0x49bdd7[_0x32624c(0x95)]&&typeof _0x49bdd7[_0x32624c(0x95)]==='object'?_0x49bdd7[_0x32624c(0x95)]:{};}function a178_0x16c9(_0x225236,_0x97adb2){_0x225236=_0x225236-0x89;const _0xb8bfa9=a178_0xb8bf();let _0x16c9fe=_0xb8bfa9[_0x225236];return _0x16c9fe;}function resolveDefaultAppName(_0x4be16b){const _0x285028=a178_0x16c9,_0x24158e=stringConfigValue(_0x4be16b[_0x285028(0xac)]);if(_0x24158e)return _0x24158e;return Object[_0x285028(0x9b)](appProfiles(_0x4be16b))[0x0];}function a178_0xb8bf(){const _0x543a20=['394836svlauB','defaultApp','globalConfig','pageSize','670164nIkwLD','env','ENV','247284qasbRH','app','APP','trim','15sYrrJs','ACCESS_KEY','object','find','maxRisk','MAX_RISK','FORMAT','appcode','apps','inherit','2498210TKYhbB','40lfZWLP','776ZbVIyx','string','keys','apiDir','true','RISK_LEVEL','riskLevel','daily','629279caeRlx','locale','length','entries','accessKey','9MCQqte','207876CJZgyG','format','20279VUghrx','production'];a178_0xb8bf=function(){return _0x543a20;};return a178_0xb8bf();}function resolveTopLevelAppCode(_0x505de4){const _0x4d00a3=a178_0x16c9;return stringConfigValue(_0x505de4[_0x4d00a3(0x94)])||stringConfigValue(_0x505de4[_0x4d00a3(0x8a)]);}export function resolveAppConfig({raw:_0x3a62cf,flags:_0x368e73,layers:_0x35b097,readEnv:_0x405695}){const _0x45a5ec=a178_0x16c9,_0x4fef84=_0x35b097?.['projectConfig']??{},_0x59de92=_0x35b097?.[_0x45a5ec(0xad)]??{},_0x6055a3=Object[_0x45a5ec(0x9b)](_0x4fef84)[_0x45a5ec(0xa3)]>0x0,_0xe1bb22=!_0x6055a3||_0x4fef84[_0x45a5ec(0x96)]===!![],_0x52319e=_0x6055a3?resolveDefaultAppName(_0x4fef84):undefined,_0x13ba0c=_0xe1bb22?resolveDefaultAppName(_0x59de92):undefined,_0x39e426=stringConfigValue(_0x368e73['app']),_0x357f92=_0x405695(_0x45a5ec(0x8b)),_0x20b019={};if(_0x3a62cf['apps']&&typeof _0x3a62cf['apps']===_0x45a5ec(0x8f))for(const [_0x2fe5d9,_0x57afec]of Object[_0x45a5ec(0xa4)](_0x3a62cf[_0x45a5ec(0x95)])){_0x57afec&&typeof _0x57afec===_0x45a5ec(0x8f)&&_0x57afec[_0x45a5ec(0x94)]&&(_0x20b019[_0x2fe5d9]=_0x57afec);}const _0x24d6b5=_0x3a62cf[_0x45a5ec(0xac)]||undefined,_0x34b4b0=Object[_0x45a5ec(0x9b)](_0x20b019)['length']>0x0,_0x81088f=_0x39e426||_0x52319e||_0x357f92||_0x13ba0c||_0x24d6b5||undefined,_0x318b5e=stringConfigValue(_0x368e73[_0x45a5ec(0x94)]),_0x5a4757=_0x318b5e?Object['entries'](_0x20b019)[_0x45a5ec(0x90)](([,_0x17715c])=>_0x17715c?.[_0x45a5ec(0x94)]===_0x318b5e):undefined,_0x2d9546=_0x5a4757?.[0x0],_0x1d1c1c=_0x5a4757?.[0x1],_0x590ab5=_0x318b5e?_0x2d9546:_0x81088f;let _0x29d086=_0x590ab5&&_0x20b019[_0x590ab5]?_0x20b019[_0x590ab5]:undefined;_0x318b5e&&_0x1d1c1c&&(_0x29d086=_0x1d1c1c);const _0x4ddd93=_0x318b5e?_0x1d1c1c??_0x29d086:_0x29d086,_0x279824=!_0x39e426&&!_0x52319e&&_0x357f92&&_0x590ab5===_0x357f92,_0x59a0e0=_0x39e426||(_0x279824?_0x357f92:undefined)||(_0x318b5e?_0x2d9546:undefined),_0x33dee6=_0x4ddd93?.[_0x45a5ec(0x94)],_0x207c91=_0x6055a3?resolveTopLevelAppCode(_0x4fef84):undefined,_0x1c6dd1=_0xe1bb22?resolveTopLevelAppCode(_0x59de92):undefined,_0x207f3f=_0x39e426||_0x52319e?_0x33dee6:undefined,_0x51e0cd=!_0x39e426&&!_0x52319e?_0x33dee6:undefined,_0x56c020=_0x318b5e||_0x207f3f||_0x207c91||_0x51e0cd||_0x1c6dd1||undefined,_0x48655d=_0x6055a3?stringConfigValue(_0x4fef84[_0x45a5ec(0xb0)]):undefined,_0x4c3aed=_0xe1bb22?stringConfigValue(_0x59de92[_0x45a5ec(0xb0)]):undefined,_0x3dbc7c=_0x368e73[_0x45a5ec(0xb0)]||_0x4ddd93?.['env']||_0x48655d||_0x405695(_0x45a5ec(0xb1))||_0x4c3aed||_0x3a62cf[_0x45a5ec(0xb0)]||DEFAULT_CONFIG_VALUES[_0x45a5ec(0xb0)],_0x26fb0c=_0x4ddd93?.[_0x45a5ec(0xa2)]||_0x3a62cf['locale']||DEFAULT_CONFIG_VALUES[_0x45a5ec(0xa2)],_0x4d3f28=_0x405695('COOKIE')||_0x4ddd93?.['cookie']||_0x3a62cf['cookie']||undefined,_0x1aa311=_0x405695(_0x45a5ec(0x8e))||_0x4ddd93?.[_0x45a5ec(0xa5)]||_0x3a62cf[_0x45a5ec(0xa5)]||undefined,_0x19fa4b=_0x368e73['format']||_0x405695(_0x45a5ec(0x93))||_0x4ddd93?.[_0x45a5ec(0xa8)]||_0x3a62cf[_0x45a5ec(0xa8)],_0x509618=normalizeLegacyOutputFormat(_0x19fa4b),_0x3ca41b=_0x405695('PAGE_SIZE')||_0x4ddd93?.[_0x45a5ec(0xae)]||_0x3a62cf[_0x45a5ec(0xae)],_0x5b003f=_0x3ca41b?Number(_0x3ca41b)||undefined:undefined,_0x2ea014=_0x405695(_0x45a5ec(0x9e))||_0x405695(_0x45a5ec(0x92))||_0x4ddd93?.[_0x45a5ec(0x9f)]||_0x3a62cf[_0x45a5ec(0x9f)]||_0x3a62cf[_0x45a5ec(0x91)],_0xbdfdf0=_0x2ea014==='read'||_0x2ea014==='write'?_0x2ea014:DEFAULT_CONFIG_VALUES['riskLevel'],_0x5f26e0=_0x405695('VERBOSE'),_0x71a77a=_0x5f26e0==='1'||_0x5f26e0===_0x45a5ec(0x9d),_0x34998c=_0x4ddd93?.[_0x45a5ec(0x9c)]||_0x3a62cf[_0x45a5ec(0x9c)]||DEFAULT_CONFIG_VALUES[_0x45a5ec(0x9c)],_0x3fed09=isDaily(normalizeEnv(String(_0x3dbc7c)))?_0x45a5ec(0xa0):_0x45a5ec(0xaa);return{'appCode':typeof _0x56c020==='string'&&_0x56c020[_0x45a5ec(0x8c)]()?_0x56c020[_0x45a5ec(0x8c)]():undefined,'env':_0x3fed09,'locale':_0x26fb0c,'cookie':_0x4d3f28,'accessKey':_0x1aa311,'format':_0x509618,'pageSize':_0x5b003f,'riskLevel':_0xbdfdf0,'verbose':_0x71a77a,'apiDir':_0x34998c,'apps':_0x20b019,'defaultApp':_0x24d6b5,'currentApp':_0x34b4b0?_0x590ab5:undefined,'explicitAppName':_0x59a0e0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2acbfc,_0x161699){const _0x1d3c9a=a179_0x20c0,_0x6c6937=_0x2acbfc();while(!![]){try{const _0x4c96db=parseInt(_0x1d3c9a(0x129))/0x1+parseInt(_0x1d3c9a(0x12c))/0x2*(-parseInt(_0x1d3c9a(0x133))/0x3)+parseInt(_0x1d3c9a(0x12a))/0x4+parseInt(_0x1d3c9a(0x125))/0x5*(parseInt(_0x1d3c9a(0x132))/0x6)+-parseInt(_0x1d3c9a(0x12d))/0x7*(-parseInt(_0x1d3c9a(0x127))/0x8)+-parseInt(_0x1d3c9a(0x126))/0x9*(parseInt(_0x1d3c9a(0x12e))/0xa)+-parseInt(_0x1d3c9a(0x128))/0xb*(parseInt(_0x1d3c9a(0x131))/0xc);if(_0x4c96db===_0x161699)break;else _0x6c6937['push'](_0x6c6937['shift']());}catch(_0x78fc43){_0x6c6937['push'](_0x6c6937['shift']());}}}(a179_0x5427,0xb4319));function a179_0x20c0(_0x574140,_0x2aef96){_0x574140=_0x574140-0x125;const _0x5427a4=a179_0x5427();let _0x20c099=_0x5427a4[_0x574140];return _0x20c099;}import{getIsSessionValid}from'../auth/is-session-valid.js';function a179_0x5427(){const _0x5eec80=['4374840mlhgLP','../auth/get-cookie.js','8QCTytD','55006LwthtI','30490tvmtrA','cookie','authRequired','12NQvfZV','8730258lJtMfk','573450ftfmPs','5TNYVQZ','2430UGNSVy','56jxPybu','8958829phdRSt','536583iHjCev'];a179_0x5427=function(){return _0x5eec80;};return a179_0x5427();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x2d2d60){const _0x43ed8f=a179_0x20c0,{getCookie:_0x34bdba}=await import(_0x43ed8f(0x12b)),_0x53dc09=_0x2d2d60[_0x43ed8f(0x12f)]||_0x34bdba(),_0x3b8e67=_0x53dc09?await getIsSessionValid():![];return{'cookie':_0x53dc09,'isLoggedIn':_0x3b8e67,async 'getOrLogin'(){const _0x4d1301=_0x43ed8f;if(_0x53dc09&&_0x3b8e67)return _0x53dc09;throw CliErrors[_0x4d1301(0x130)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a178_0x392d5b=a178_0x1e9b;(function(_0xfe31e,_0x146961){const _0x51d922=a178_0x1e9b,_0x5573ab=_0xfe31e();while(!![]){try{const _0x4e3214=-parseInt(_0x51d922(0xfb))/0x1*(parseInt(_0x51d922(0xe5))/0x2)+-parseInt(_0x51d922(0xdf))/0x3*(parseInt(_0x51d922(0xe7))/0x4)+parseInt(_0x51d922(0x107))/0x5+-parseInt(_0x51d922(0xdb))/0x6*(parseInt(_0x51d922(0xf0))/0x7)+parseInt(_0x51d922(0x101))/0x8*(parseInt(_0x51d922(0xee))/0x9)+-parseInt(_0x51d922(0xda))/0xa*(parseInt(_0x51d922(0xd8))/0xb)+-parseInt(_0x51d922(0xeb))/0xc*(-parseInt(_0x51d922(0x102))/0xd);if(_0x4e3214===_0x146961)break;else _0x5573ab['push'](_0x5573ab['shift']());}catch(_0x39add6){_0x5573ab['push'](_0x5573ab['shift']());}}}(a178_0x136a,0x83458));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=a178_0x392d5b(0xf5);export const CONFIG_NAMES=[a178_0x392d5b(0xf5),a178_0x392d5b(0xfa),a178_0x392d5b(0xfe)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a178_0x392d5b(0xef)](_0x1bd415=>_0x1bd415!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x4ab306){for(const _0x5ae9e1 of CONFIG_NAMES){const _0xd5490=resolve(_0x4ab306,_0x5ae9e1);if(existsSync(_0xd5490))return _0xd5490;}return undefined;}export function findProjectRootDirectory(_0x20201c=process[a178_0x392d5b(0xf8)]()){let _0x5cd327=resolve(_0x20201c);const {root:_0x3e8953}=parse(_0x5cd327),_0x33a5f4=homedir();while(!![]){if(resolveConfigPath(_0x5cd327)){if(_0x5cd327===_0x33a5f4)break;return _0x5cd327;}if(_0x5cd327===_0x3e8953||_0x5cd327===_0x33a5f4)break;const _0x267205=dirname(_0x5cd327);if(_0x267205===_0x5cd327)break;_0x5cd327=_0x267205;}return resolve(_0x20201c);}export function getProjectConfigPath(){const _0x25b84b=a178_0x392d5b;return resolveConfigPath(process[_0x25b84b(0xf8)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x21a545){const _0x534682=a178_0x392d5b;if(!existsSync(_0x21a545))return{'status':_0x534682(0xe4)};try{const _0x44e30d=readFileSync(_0x21a545,{'encoding':'utf8'});if(!_0x44e30d?.[_0x534682(0x108)]())return{'status':'empty'};const _0x390803=JSON['parse'](_0x44e30d);return{'status':'ok','data':_0x390803};}catch(_0x5ca06e){return{'status':_0x534682(0xe3),'message':_0x5ca06e instanceof Error?_0x5ca06e['message']:String(_0x5ca06e)};}}function parseCliConfigJsonFile(_0x174358,_0x423070,_0x1fe348){const _0x491f13=a178_0x392d5b,_0x1d4a62=inspectCliConfigJsonFile(_0x174358);if(_0x1d4a62[_0x491f13(0x100)]===_0x491f13(0xe4)||_0x1d4a62[_0x491f13(0x100)]==='empty')return{};if(_0x1d4a62['status']==='ok')return _0x1d4a62['data'];return _0x423070==='warn'&&_0x1fe348&&console[_0x491f13(0xe3)](CLI_BIN_NAME+':\x20'+_0x1fe348+_0x491f13(0xed)+_0x174358+_0x491f13(0x103)+_0x1d4a62['message']),{};}function normalizeLegacyConfigShape(_0x555292){const _0x432384=a178_0x392d5b;if(!_0x555292||typeof _0x555292!=='object')return{'config':{},'migrated':![]};const _0x48ed18={..._0x555292},_0x4464ba=_0x48ed18[_0x432384(0x104)]&&typeof _0x48ed18[_0x432384(0x104)]===_0x432384(0xfd)?{..._0x48ed18[_0x432384(0x104)]}:{},_0x3ec012=Object['keys'](_0x4464ba)[_0x432384(0xdd)],_0x446a43=_0x48ed18[_0x432384(0xf4)]||_0x48ed18['app'];let _0x25f12f=![];if(_0x446a43&&_0x3ec012===0x0){const _0x5e8e22=typeof _0x48ed18[_0x432384(0xe9)]==='string'&&_0x48ed18['defaultApp'][_0x432384(0x108)]()?_0x48ed18[_0x432384(0xe9)]:String(_0x446a43)[_0x432384(0x108)]();_0x4464ba[_0x5e8e22]={'appcode':String(_0x446a43)[_0x432384(0x108)](),..._0x48ed18['env']!=null?{'env':_0x48ed18[_0x432384(0x106)]}:{},..._0x48ed18[_0x432384(0xe8)]!=null?{'apiDir':_0x48ed18[_0x432384(0xe8)]}:{},..._0x48ed18[_0x432384(0xe2)]!=null?{'cookie':_0x48ed18[_0x432384(0xe2)]}:{},..._0x48ed18[_0x432384(0xfc)]!=null?{'accessKey':_0x48ed18['accessKey']}:{},..._0x48ed18[_0x432384(0xea)]!=null?{'format':_0x48ed18['format']}:{},..._0x48ed18[_0x432384(0xdc)]!=null?{'pageSize':_0x48ed18[_0x432384(0xdc)]}:{},..._0x48ed18[_0x432384(0xf3)]!=null?{'riskLevel':_0x48ed18[_0x432384(0xf3)]}:{},..._0x48ed18[_0x432384(0xf2)]!=null?{'locale':_0x48ed18[_0x432384(0xf2)]}:{}},_0x48ed18['apps']=_0x4464ba;if(!_0x48ed18[_0x432384(0xe9)])_0x48ed18[_0x432384(0xe9)]=_0x5e8e22;_0x25f12f=!![];}return(_0x432384(0xf4)in _0x48ed18||_0x432384(0xe0)in _0x48ed18)&&(delete _0x48ed18[_0x432384(0xf4)],delete _0x48ed18[_0x432384(0xe0)],_0x25f12f=!![]),{'config':_0x48ed18,'migrated':_0x25f12f};}function writeNormalizedConfigIfNeeded(_0x441c0f,_0x823de){const _0x107ad2=a178_0x392d5b,_0x334d8b=JSON[_0x107ad2(0xd9)](_0x823de,null,0x2)+'\x0a';if(normalizedWriteCache[_0x107ad2(0xf7)](_0x441c0f)===_0x334d8b)return;writeConfigFile(_0x441c0f,_0x823de),normalizedWriteCache[_0x107ad2(0xf6)](_0x441c0f,_0x334d8b);}function parseAndNormalizeConfig(_0x3127e0,_0x2afd6e,_0x14a4f9){const _0x34622b=a178_0x392d5b,_0xb772cd=parseCliConfigJsonFile(_0x3127e0,_0x2afd6e,_0x14a4f9),_0x2972c7=normalizeLegacyConfigShape(_0xb772cd);if(_0x2972c7['migrated'])try{writeNormalizedConfigIfNeeded(_0x3127e0,_0x2972c7[_0x34622b(0xff)]);}catch{}return _0x2972c7[_0x34622b(0xff)];}export function loadRawConfigLayers(_0x5b0c8d){const _0x118d9e=a178_0x392d5b;let _0x219b9d={},_0x4d39c2={};const _0x57e450=resolveConfigPath(homedir());_0x57e450&&(_0x219b9d=parseAndNormalizeConfig(_0x57e450,_0x118d9e(0x105),_0x118d9e(0xec)));const _0x1e4adb=_0x5b0c8d??findProjectRootDirectory(),_0x386f20=resolveConfigPath(_0x1e4adb);return _0x386f20&&(_0x4d39c2=parseAndNormalizeConfig(_0x386f20,_0x118d9e(0x105),'Project')),{'globalPath':_0x57e450,'projectPath':_0x386f20,'globalConfig':_0x219b9d,'projectConfig':_0x4d39c2};}const INHERIT_WHITELIST=[a178_0x392d5b(0xe2),a178_0x392d5b(0xfc),a178_0x392d5b(0xf2),a178_0x392d5b(0xea),'riskLevel',a178_0x392d5b(0xdc)];export function mergeRawConfigLayers(_0x186c28){const _0x3a321a=a178_0x392d5b,{globalConfig:_0x3b9792,projectConfig:_0x3589f3}=_0x186c28,_0x4c1def=Object[_0x3a321a(0xde)](_0x3589f3)[_0x3a321a(0xdd)]>0x0;if(!_0x4c1def)return mergeGlobalOnly(_0x3b9792);if(_0x3589f3[_0x3a321a(0xe1)]===!![])return mergeFullInherit(_0x3b9792,_0x3589f3);if(_0x3589f3[_0x3a321a(0xe1)]===![])return mergeIsolated(_0x3589f3);return mergeProjectFirst(_0x3b9792,_0x3589f3);}function mergeGlobalOnly(_0x4c18c1){const _0xc6ceba=a178_0x392d5b,_0x11a2b6={..._0x4c18c1},_0x305313=_0x4c18c1[_0xc6ceba(0x104)]&&typeof _0x4c18c1[_0xc6ceba(0x104)]==='object'?_0x4c18c1[_0xc6ceba(0x104)]:{};if(Object[_0xc6ceba(0xde)](_0x305313)[_0xc6ceba(0xdd)]>0x0)_0x11a2b6[_0xc6ceba(0x104)]=_0x305313;if(_0x4c18c1[_0xc6ceba(0xe9)])_0x11a2b6[_0xc6ceba(0xe9)]=_0x4c18c1[_0xc6ceba(0xe9)];else{const _0x597c58=Object[_0xc6ceba(0xde)](_0x305313);if(_0x597c58[_0xc6ceba(0xdd)]>0x0)_0x11a2b6[_0xc6ceba(0xe9)]=_0x597c58[0x0];}return _0x11a2b6;}function mergeIsolated(_0x307a90){const _0x32f779=a178_0x392d5b,_0xfaaba={..._0x307a90};delete _0xfaaba[_0x32f779(0xe1)];const _0x51b807=_0x307a90[_0x32f779(0x104)]&&typeof _0x307a90[_0x32f779(0x104)]===_0x32f779(0xfd)?_0x307a90[_0x32f779(0x104)]:{};Object['keys'](_0x51b807)[_0x32f779(0xdd)]>0x0?_0xfaaba[_0x32f779(0x104)]=_0x51b807:delete _0xfaaba[_0x32f779(0x104)];if(_0x32f779(0xe9)in _0x307a90)_0xfaaba['defaultApp']=_0x307a90[_0x32f779(0xe9)];else Object[_0x32f779(0xde)](_0x51b807)[_0x32f779(0xdd)]>0x0?_0xfaaba['defaultApp']=Object['keys'](_0x51b807)[0x0]:delete _0xfaaba[_0x32f779(0xe9)];return _0xfaaba;}function mergeProjectFirst(_0x23c4c3,_0x550ec0){const _0x2e4afe=a178_0x392d5b,_0x54abe3={..._0x550ec0};delete _0x54abe3[_0x2e4afe(0xe1)];for(const _0x3a5704 of INHERIT_WHITELIST){!(_0x3a5704 in _0x54abe3)&&_0x3a5704 in _0x23c4c3&&(_0x54abe3[_0x3a5704]=_0x23c4c3[_0x3a5704]);}const _0x3757cf=_0x550ec0[_0x2e4afe(0x104)]&&typeof _0x550ec0['apps']===_0x2e4afe(0xfd)?_0x550ec0[_0x2e4afe(0x104)]:{};Object[_0x2e4afe(0xde)](_0x3757cf)[_0x2e4afe(0xdd)]>0x0?_0x54abe3[_0x2e4afe(0x104)]=_0x3757cf:delete _0x54abe3[_0x2e4afe(0x104)];if('defaultApp'in _0x550ec0)_0x54abe3['defaultApp']=_0x550ec0[_0x2e4afe(0xe9)];else Object[_0x2e4afe(0xde)](_0x3757cf)[_0x2e4afe(0xdd)]>0x0?_0x54abe3[_0x2e4afe(0xe9)]=Object[_0x2e4afe(0xde)](_0x3757cf)[0x0]:delete _0x54abe3[_0x2e4afe(0xe9)];return _0x54abe3;}function mergeFullInherit(_0x25d5d6,_0x1666fb){const _0x1bca28=a178_0x392d5b,_0x10911d=_0x25d5d6[_0x1bca28(0x104)]&&typeof _0x25d5d6[_0x1bca28(0x104)]==='object'?_0x25d5d6[_0x1bca28(0x104)]:{},_0x4d3d14=_0x1666fb[_0x1bca28(0x104)]&&typeof _0x1666fb[_0x1bca28(0x104)]===_0x1bca28(0xfd)?_0x1666fb[_0x1bca28(0x104)]:{},_0x1d8786={..._0x10911d,..._0x4d3d14},_0x38f14f={..._0x25d5d6,..._0x1666fb};delete _0x38f14f[_0x1bca28(0xe1)];if(Object[_0x1bca28(0xde)](_0x1d8786)[_0x1bca28(0xdd)]>0x0)_0x38f14f[_0x1bca28(0x104)]=_0x1d8786;if('defaultApp'in _0x1666fb)_0x38f14f['defaultApp']=_0x1666fb['defaultApp'];else{if(Object[_0x1bca28(0xde)](_0x4d3d14)[_0x1bca28(0xdd)]>0x0)_0x38f14f[_0x1bca28(0xe9)]=Object[_0x1bca28(0xde)](_0x4d3d14)[0x0];else{if(_0x25d5d6[_0x1bca28(0xe9)])_0x38f14f[_0x1bca28(0xe9)]=_0x25d5d6[_0x1bca28(0xe9)];else{const _0x116bc1=Object['keys'](_0x10911d);if(_0x116bc1['length']>0x0)_0x38f14f[_0x1bca28(0xe9)]=_0x116bc1[0x0];}}}return _0x38f14f;}export function readRawConfigWithLayers(_0x4b1deb){const _0x59d4d2=loadRawConfigLayers(_0x4b1deb);return{'config':mergeRawConfigLayers(_0x59d4d2),'layers':_0x59d4d2};}function a178_0x1e9b(_0x40a2f3,_0x438cea){_0x40a2f3=_0x40a2f3-0xd8;const _0x136aec=a178_0x136a();let _0x1e9ba2=_0x136aec[_0x40a2f3];return _0x1e9ba2;}function a178_0x136a(){const _0x3f98c5=['28743996bRGCJX','Global','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','1142658YrzIBl','filter','7bHsQDL','silent','locale','riskLevel','appcode','.rabetbase.json','set','get','cwd','utf8','.lovrabet.json','1bLKDhP','accessKey','object','.lovrabetrc','config','status','48nzypSb','13syRuZM','\x0a\x20\x20','apps','warn','env','386335WXUOpv','trim','11lqbIqp','stringify','5151820SVXxUE','5414712mItQja','pageSize','length','keys','154911KdRIml','app','inherit','cookie','error','missing','1215538QHWGRY','.tmp','52ylAwPt','apiDir','defaultApp','format'];a178_0x136a=function(){return _0x3f98c5;};return a178_0x136a();}export function readRawConfig(_0x5ab1b2){return mergeRawConfigLayers(loadRawConfigLayers(_0x5ab1b2));}export function readConfigFile(_0x4b5584){const _0x4f7638=a178_0x392d5b;return parseAndNormalizeConfig(_0x4b5584,_0x4f7638(0xf1));}export function writeConfigFile(_0x431f48,_0x5e86d3){const _0x568b27=a178_0x392d5b,_0x2356d8=dirname(_0x431f48);!existsSync(_0x2356d8)&&mkdirSync(_0x2356d8,{'recursive':!![]});const _0x47372a=_0x431f48+_0x568b27(0xe6);try{writeFileSync(_0x47372a,JSON[_0x568b27(0xd9)](_0x5e86d3,null,0x2)+'\x0a',{'encoding':_0x568b27(0xf9),'mode':0x180}),renameSync(_0x47372a,_0x431f48);}catch(_0x4dd07c){try{unlinkSync(_0x47372a);}catch{}throw _0x4dd07c;}}export function resolveWriteConfigPath(_0x369bd4){const _0x13fbeb=a178_0x392d5b,_0xe28972=_0x369bd4==='project'?process[_0x13fbeb(0xf8)]():homedir(),_0x4b8417=resolveConfigPath(_0xe28972);return _0x4b8417??resolve(_0xe28972,NEW_CONFIG_NAME);}
|
|
1
|
+
const a180_0x459d4b=a180_0x258c;(function(_0x976c9d,_0x2c4294){const _0x144573=a180_0x258c,_0x226cd9=_0x976c9d();while(!![]){try{const _0x4a4cb8=-parseInt(_0x144573(0xd6))/0x1+parseInt(_0x144573(0xbb))/0x2*(-parseInt(_0x144573(0xc8))/0x3)+parseInt(_0x144573(0xd0))/0x4+parseInt(_0x144573(0xb6))/0x5*(-parseInt(_0x144573(0xd5))/0x6)+-parseInt(_0x144573(0xdd))/0x7*(parseInt(_0x144573(0xdc))/0x8)+-parseInt(_0x144573(0xbe))/0x9*(parseInt(_0x144573(0xd2))/0xa)+-parseInt(_0x144573(0xe3))/0xb*(-parseInt(_0x144573(0xb4))/0xc);if(_0x4a4cb8===_0x2c4294)break;else _0x226cd9['push'](_0x226cd9['shift']());}catch(_0x54e6d4){_0x226cd9['push'](_0x226cd9['shift']());}}}(a180_0x39ca,0xe9de7));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';function a180_0x258c(_0x20b46a,_0x38edc9){_0x20b46a=_0x20b46a-0xb1;const _0x39cabb=a180_0x39ca();let _0x258c8b=_0x39cabb[_0x20b46a];return _0x258c8b;}import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a180_0x459d4b(0xb2);export const CONFIG_NAMES=['.rabetbase.json',a180_0x459d4b(0xd1),a180_0x459d4b(0xda)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x5e84d2=>_0x5e84d2!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x578cf8){for(const _0x132833 of CONFIG_NAMES){const _0x5988c5=resolve(_0x578cf8,_0x132833);if(existsSync(_0x5988c5))return _0x5988c5;}return undefined;}export function findProjectRootDirectory(_0x2dee6d=process['cwd']()){let _0x1eaed9=resolve(_0x2dee6d);const {root:_0x4e154d}=parse(_0x1eaed9),_0x5d244c=homedir();while(!![]){if(resolveConfigPath(_0x1eaed9)){if(_0x1eaed9===_0x5d244c)break;return _0x1eaed9;}if(_0x1eaed9===_0x4e154d||_0x1eaed9===_0x5d244c)break;const _0x1b6ab4=dirname(_0x1eaed9);if(_0x1b6ab4===_0x1eaed9)break;_0x1eaed9=_0x1b6ab4;}return resolve(_0x2dee6d);}export function getProjectConfigPath(){const _0x146c93=a180_0x459d4b;return resolveConfigPath(process[_0x146c93(0xc5)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}function a180_0x39ca(){const _0x4fe3ce=['.rabetbase.json','defaultApp','96588NJEeDG','missing','295ncuryO','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','appcode','empty','accessKey','74NRgfJF','env','app','63xADrgg','project','keys','error','Project','parse','length','cwd','string','config','20517XvFlFN','warn','trim','pageSize','migrated','utf8','.tmp','locale','2089768GRkGGF','.lovrabet.json','67340kPgoYP','format','cookie','42006GfzjCC','1702366cnVUYo','riskLevel','silent','status','.lovrabetrc','inherit','972184sIYmxf','56pHeJXE','\x0a\x20\x20','object','message','Global','stringify','5225XQgYhP','apps'];a180_0x39ca=function(){return _0x4fe3ce;};return a180_0x39ca();}export function inspectCliConfigJsonFile(_0x28dcdf){const _0x3cb3f3=a180_0x459d4b;if(!existsSync(_0x28dcdf))return{'status':_0x3cb3f3(0xb5)};try{const _0x5169dc=readFileSync(_0x28dcdf,{'encoding':_0x3cb3f3(0xcd)});if(!_0x5169dc?.[_0x3cb3f3(0xca)]())return{'status':_0x3cb3f3(0xb9)};const _0x57b07a=JSON[_0x3cb3f3(0xc3)](_0x5169dc);return{'status':'ok','data':_0x57b07a};}catch(_0xcc584a){return{'status':_0x3cb3f3(0xc1),'message':_0xcc584a instanceof Error?_0xcc584a[_0x3cb3f3(0xe0)]:String(_0xcc584a)};}}function parseCliConfigJsonFile(_0x396ee2,_0xd5aad7,_0x215603){const _0x3a35a0=a180_0x459d4b,_0x120864=inspectCliConfigJsonFile(_0x396ee2);if(_0x120864[_0x3a35a0(0xd9)]===_0x3a35a0(0xb5)||_0x120864[_0x3a35a0(0xd9)]===_0x3a35a0(0xb9))return{};if(_0x120864[_0x3a35a0(0xd9)]==='ok')return _0x120864['data'];return _0xd5aad7===_0x3a35a0(0xc9)&&_0x215603&&console[_0x3a35a0(0xc1)](CLI_BIN_NAME+':\x20'+_0x215603+_0x3a35a0(0xb7)+_0x396ee2+_0x3a35a0(0xde)+_0x120864[_0x3a35a0(0xe0)]),{};}function normalizeLegacyConfigShape(_0x12c10c){const _0x575109=a180_0x459d4b;if(!_0x12c10c||typeof _0x12c10c!=='object')return{'config':{},'migrated':![]};const _0x5d1de2={..._0x12c10c},_0x150a73=_0x5d1de2[_0x575109(0xb1)]&&typeof _0x5d1de2[_0x575109(0xb1)]===_0x575109(0xdf)?{..._0x5d1de2['apps']}:{},_0x499bc6=Object['keys'](_0x150a73)['length'],_0x2a6d50=_0x5d1de2[_0x575109(0xb8)]||_0x5d1de2[_0x575109(0xbd)];let _0x3b554f=![];if(_0x2a6d50&&_0x499bc6===0x0){const _0x43d010=typeof _0x5d1de2[_0x575109(0xb3)]===_0x575109(0xc6)&&_0x5d1de2['defaultApp']['trim']()?_0x5d1de2[_0x575109(0xb3)]:String(_0x2a6d50)[_0x575109(0xca)]();_0x150a73[_0x43d010]={'appcode':String(_0x2a6d50)[_0x575109(0xca)](),..._0x5d1de2[_0x575109(0xbc)]!=null?{'env':_0x5d1de2[_0x575109(0xbc)]}:{},..._0x5d1de2['apiDir']!=null?{'apiDir':_0x5d1de2['apiDir']}:{},..._0x5d1de2[_0x575109(0xd4)]!=null?{'cookie':_0x5d1de2[_0x575109(0xd4)]}:{},..._0x5d1de2[_0x575109(0xba)]!=null?{'accessKey':_0x5d1de2[_0x575109(0xba)]}:{},..._0x5d1de2[_0x575109(0xd3)]!=null?{'format':_0x5d1de2[_0x575109(0xd3)]}:{},..._0x5d1de2[_0x575109(0xcb)]!=null?{'pageSize':_0x5d1de2['pageSize']}:{},..._0x5d1de2[_0x575109(0xd7)]!=null?{'riskLevel':_0x5d1de2[_0x575109(0xd7)]}:{},..._0x5d1de2[_0x575109(0xcf)]!=null?{'locale':_0x5d1de2['locale']}:{}},_0x5d1de2[_0x575109(0xb1)]=_0x150a73;if(!_0x5d1de2[_0x575109(0xb3)])_0x5d1de2[_0x575109(0xb3)]=_0x43d010;_0x3b554f=!![];}return(_0x575109(0xb8)in _0x5d1de2||_0x575109(0xbd)in _0x5d1de2)&&(delete _0x5d1de2[_0x575109(0xb8)],delete _0x5d1de2[_0x575109(0xbd)],_0x3b554f=!![]),{'config':_0x5d1de2,'migrated':_0x3b554f};}function writeNormalizedConfigIfNeeded(_0x274bc9,_0x21388f){const _0x10d6f9=a180_0x459d4b,_0x50f34e=JSON[_0x10d6f9(0xe2)](_0x21388f,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x274bc9)===_0x50f34e)return;writeConfigFile(_0x274bc9,_0x21388f),normalizedWriteCache['set'](_0x274bc9,_0x50f34e);}function parseAndNormalizeConfig(_0x16490f,_0x2e76e0,_0x28fd9b){const _0x416a4d=a180_0x459d4b,_0x1fff20=parseCliConfigJsonFile(_0x16490f,_0x2e76e0,_0x28fd9b),_0x44b8f1=normalizeLegacyConfigShape(_0x1fff20);if(_0x44b8f1[_0x416a4d(0xcc)])try{writeNormalizedConfigIfNeeded(_0x16490f,_0x44b8f1['config']);}catch{}return _0x44b8f1[_0x416a4d(0xc7)];}export function loadRawConfigLayers(_0x12f446){const _0x560733=a180_0x459d4b;let _0x161955={},_0x2b0e84={};const _0x52abb8=resolveConfigPath(homedir());_0x52abb8&&(_0x161955=parseAndNormalizeConfig(_0x52abb8,_0x560733(0xc9),_0x560733(0xe1)));const _0x5e5d92=_0x12f446??findProjectRootDirectory(),_0x80199d=resolveConfigPath(_0x5e5d92);return _0x80199d&&(_0x2b0e84=parseAndNormalizeConfig(_0x80199d,_0x560733(0xc9),_0x560733(0xc2))),{'globalPath':_0x52abb8,'projectPath':_0x80199d,'globalConfig':_0x161955,'projectConfig':_0x2b0e84};}const INHERIT_WHITELIST=[a180_0x459d4b(0xd4),a180_0x459d4b(0xba),a180_0x459d4b(0xcf),a180_0x459d4b(0xd3),a180_0x459d4b(0xd7),a180_0x459d4b(0xcb)];export function mergeRawConfigLayers(_0x301d17){const _0x35b521=a180_0x459d4b,{globalConfig:_0x3adaa8,projectConfig:_0x5e2e62}=_0x301d17,_0x4fd0b4=Object['keys'](_0x5e2e62)[_0x35b521(0xc4)]>0x0;if(!_0x4fd0b4)return mergeGlobalOnly(_0x3adaa8);if(_0x5e2e62[_0x35b521(0xdb)]===!![])return mergeFullInherit(_0x3adaa8,_0x5e2e62);if(_0x5e2e62['inherit']===![])return mergeIsolated(_0x5e2e62);return mergeProjectFirst(_0x3adaa8,_0x5e2e62);}function mergeGlobalOnly(_0x247cb6){const _0x5cd778=a180_0x459d4b,_0x1ce8e7={..._0x247cb6},_0x49b87e=_0x247cb6['apps']&&typeof _0x247cb6[_0x5cd778(0xb1)]===_0x5cd778(0xdf)?_0x247cb6[_0x5cd778(0xb1)]:{};if(Object[_0x5cd778(0xc0)](_0x49b87e)['length']>0x0)_0x1ce8e7['apps']=_0x49b87e;if(_0x247cb6[_0x5cd778(0xb3)])_0x1ce8e7['defaultApp']=_0x247cb6[_0x5cd778(0xb3)];else{const _0x25e619=Object[_0x5cd778(0xc0)](_0x49b87e);if(_0x25e619[_0x5cd778(0xc4)]>0x0)_0x1ce8e7[_0x5cd778(0xb3)]=_0x25e619[0x0];}return _0x1ce8e7;}function mergeIsolated(_0x40e6b0){const _0x179dfc=a180_0x459d4b,_0x553a04={..._0x40e6b0};delete _0x553a04[_0x179dfc(0xdb)];const _0x6351ff=_0x40e6b0[_0x179dfc(0xb1)]&&typeof _0x40e6b0['apps']==='object'?_0x40e6b0['apps']:{};Object[_0x179dfc(0xc0)](_0x6351ff)[_0x179dfc(0xc4)]>0x0?_0x553a04[_0x179dfc(0xb1)]=_0x6351ff:delete _0x553a04[_0x179dfc(0xb1)];if(_0x179dfc(0xb3)in _0x40e6b0)_0x553a04[_0x179dfc(0xb3)]=_0x40e6b0['defaultApp'];else Object[_0x179dfc(0xc0)](_0x6351ff)[_0x179dfc(0xc4)]>0x0?_0x553a04[_0x179dfc(0xb3)]=Object[_0x179dfc(0xc0)](_0x6351ff)[0x0]:delete _0x553a04[_0x179dfc(0xb3)];return _0x553a04;}function mergeProjectFirst(_0x13f9b5,_0x4f6408){const _0x3e6620=a180_0x459d4b,_0x56d374={..._0x4f6408};delete _0x56d374['inherit'];for(const _0x5267db of INHERIT_WHITELIST){!(_0x5267db in _0x56d374)&&_0x5267db in _0x13f9b5&&(_0x56d374[_0x5267db]=_0x13f9b5[_0x5267db]);}const _0x5abdb5=_0x4f6408[_0x3e6620(0xb1)]&&typeof _0x4f6408[_0x3e6620(0xb1)]==='object'?_0x4f6408[_0x3e6620(0xb1)]:{};Object[_0x3e6620(0xc0)](_0x5abdb5)[_0x3e6620(0xc4)]>0x0?_0x56d374[_0x3e6620(0xb1)]=_0x5abdb5:delete _0x56d374[_0x3e6620(0xb1)];if(_0x3e6620(0xb3)in _0x4f6408)_0x56d374[_0x3e6620(0xb3)]=_0x4f6408[_0x3e6620(0xb3)];else Object[_0x3e6620(0xc0)](_0x5abdb5)[_0x3e6620(0xc4)]>0x0?_0x56d374['defaultApp']=Object[_0x3e6620(0xc0)](_0x5abdb5)[0x0]:delete _0x56d374[_0x3e6620(0xb3)];return _0x56d374;}function mergeFullInherit(_0x4cf322,_0x1a1f57){const _0x3bdb26=a180_0x459d4b,_0x228e71=_0x4cf322['apps']&&typeof _0x4cf322[_0x3bdb26(0xb1)]===_0x3bdb26(0xdf)?_0x4cf322['apps']:{},_0x3f586e=_0x1a1f57[_0x3bdb26(0xb1)]&&typeof _0x1a1f57[_0x3bdb26(0xb1)]===_0x3bdb26(0xdf)?_0x1a1f57[_0x3bdb26(0xb1)]:{},_0x348f8d={..._0x228e71,..._0x3f586e},_0x32029b={..._0x4cf322,..._0x1a1f57};delete _0x32029b[_0x3bdb26(0xdb)];if(Object[_0x3bdb26(0xc0)](_0x348f8d)[_0x3bdb26(0xc4)]>0x0)_0x32029b['apps']=_0x348f8d;if(_0x3bdb26(0xb3)in _0x1a1f57)_0x32029b[_0x3bdb26(0xb3)]=_0x1a1f57[_0x3bdb26(0xb3)];else{if(Object[_0x3bdb26(0xc0)](_0x3f586e)[_0x3bdb26(0xc4)]>0x0)_0x32029b[_0x3bdb26(0xb3)]=Object[_0x3bdb26(0xc0)](_0x3f586e)[0x0];else{if(_0x4cf322[_0x3bdb26(0xb3)])_0x32029b[_0x3bdb26(0xb3)]=_0x4cf322[_0x3bdb26(0xb3)];else{const _0x205db9=Object[_0x3bdb26(0xc0)](_0x228e71);if(_0x205db9[_0x3bdb26(0xc4)]>0x0)_0x32029b[_0x3bdb26(0xb3)]=_0x205db9[0x0];}}}return _0x32029b;}export function readRawConfigWithLayers(_0x5b025e){const _0x9cf1f8=loadRawConfigLayers(_0x5b025e);return{'config':mergeRawConfigLayers(_0x9cf1f8),'layers':_0x9cf1f8};}export function readRawConfig(_0x1de6c1){return mergeRawConfigLayers(loadRawConfigLayers(_0x1de6c1));}export function readConfigFile(_0x445aef){const _0x349b82=a180_0x459d4b;return parseAndNormalizeConfig(_0x445aef,_0x349b82(0xd8));}export function writeConfigFile(_0x544a98,_0x49f79a){const _0x18fed6=a180_0x459d4b,_0x413d5e=dirname(_0x544a98);!existsSync(_0x413d5e)&&mkdirSync(_0x413d5e,{'recursive':!![]});const _0xb62c23=_0x544a98+_0x18fed6(0xce);try{writeFileSync(_0xb62c23,JSON['stringify'](_0x49f79a,null,0x2)+'\x0a',{'encoding':_0x18fed6(0xcd),'mode':0x180}),renameSync(_0xb62c23,_0x544a98);}catch(_0x502017){try{unlinkSync(_0xb62c23);}catch{}throw _0x502017;}}export function resolveWriteConfigPath(_0x550101){const _0x107ebf=a180_0x459d4b,_0x479fa1=_0x550101===_0x107ebf(0xbf)?process['cwd']():homedir(),_0x4740cf=resolveConfigPath(_0x479fa1);return _0x4740cf??resolve(_0x479fa1,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a181_0x1e7987=a181_0x501f;(function(_0x3616ee,_0x51b253){const _0x4b778a=a181_0x501f,_0x2025f3=_0x3616ee();while(!![]){try{const _0x53fd0c=-parseInt(_0x4b778a(0x1e8))/0x1*(parseInt(_0x4b778a(0x1de))/0x2)+-parseInt(_0x4b778a(0x1da))/0x3*(parseInt(_0x4b778a(0x1d7))/0x4)+parseInt(_0x4b778a(0x1ea))/0x5+-parseInt(_0x4b778a(0x1ca))/0x6*(parseInt(_0x4b778a(0x1e9))/0x7)+-parseInt(_0x4b778a(0x1f1))/0x8+parseInt(_0x4b778a(0x1e4))/0x9*(-parseInt(_0x4b778a(0x1f2))/0xa)+parseInt(_0x4b778a(0x1e7))/0xb;if(_0x53fd0c===_0x51b253)break;else _0x2025f3['push'](_0x2025f3['shift']());}catch(_0x350d03){_0x2025f3['push'](_0x2025f3['shift']());}}}(a181_0x1f29,0x2d214));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(_0x2ac5c5){return process.env[`RABETBASE_${_0x2ac5c5}`]||process.env[`LOVRABET_${_0x2ac5c5}`]||undefined;}export async function createContext(_0x5e89c0){const _0x12d42e=a181_0x501f,{config:_0x7a79d0,layers:_0x552fbf}=readRawConfigWithLayers(),_0x1ca5a3=buildConfig(_0x7a79d0,_0x5e89c0,_0x552fbf),{initEnv:_0x326b4d}=await import(_0x12d42e(0x1c9));if(_0x1ca5a3[_0x12d42e(0x1e0)])_0x326b4d(_0x1ca5a3[_0x12d42e(0x1e0)]);else _0x5e89c0[_0x12d42e(0x1e0)]&&typeof _0x5e89c0[_0x12d42e(0x1e0)]===_0x12d42e(0x1db)&&_0x326b4d(_0x5e89c0[_0x12d42e(0x1e0)]);const {initDomains:_0x78d70f,getUserDomain:_0x4500f0,getApiDomain:_0x20384a}=await import('./constant/domain.js');_0x78d70f({'apiDomain':_0x7a79d0['apiDomain']||undefined,'userDomain':_0x7a79d0[_0x12d42e(0x1d9)]||undefined,'runtimeDomain':_0x7a79d0[_0x12d42e(0x1ee)]||undefined});const _0x375810={'apiDomain':_0x20384a(),'userDomain':_0x4500f0()},_0xec226e=await buildAuth(_0x1ca5a3);logger[_0x12d42e(0x1dc)](process[_0x12d42e(0x1d3)]());const _0x25ad2e=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)['join']('\x20'))['trim']();logger[_0x12d42e(0x1ed)](_0x25ad2e);const {isNonInteractive:_0x38d63c}=await import(_0x12d42e(0x1ef)),_0x49ccff=_0x38d63c(_0x5e89c0);return{'config':_0x1ca5a3,'auth':_0xec226e,'logger':logger,'env':_0x375810,'nonInteractive':_0x49ccff};}export function buildConfigFromFlags(_0x3ed8b6){const {config:_0x29756d,layers:_0x5cf05e}=readRawConfigWithLayers();return buildConfig(_0x29756d,_0x3ed8b6,_0x5cf05e);}function a181_0x501f(_0x18be58,_0x188967){_0x18be58=_0x18be58-0x1c9;const _0x1f29da=a181_0x1f29();let _0x501f25=_0x1f29da[_0x18be58];return _0x501f25;}export function getConfigAppCode(_0x19297d){const _0x212698=a181_0x501f,_0x37cb25=readRawConfig(_0x19297d);if(_0x37cb25['apps']&&typeof _0x37cb25[_0x212698(0x1e3)]===_0x212698(0x1eb)){const _0x7a49a4=_0x37cb25[_0x212698(0x1ec)];if(_0x7a49a4&&_0x37cb25[_0x212698(0x1e3)][_0x7a49a4]?.[_0x212698(0x1e5)])return String(_0x37cb25[_0x212698(0x1e3)][_0x7a49a4][_0x212698(0x1e5)])['trim']();const _0x56098d=Object[_0x212698(0x1e6)](_0x37cb25[_0x212698(0x1e3)])[0x0];if(_0x56098d?.['appcode'])return String(_0x56098d['appcode'])[_0x212698(0x1d8)]();}const _0x5c30c7=_0x37cb25[_0x212698(0x1e5)]||_0x37cb25[_0x212698(0x1f0)];if(typeof _0x5c30c7!==_0x212698(0x1db)||_0x5c30c7['trim']()==='')return undefined;return _0x5c30c7[_0x212698(0x1d8)]();}export function getMultiAppConfigs(_0x3a6a60=a181_0x1e7987(0x1dd),_0x47ab42){const _0xa07755=a181_0x1e7987,_0x47ac51=loadRawConfigLayers(_0x47ab42);let _0x3436c8,_0x5462c2;if(_0x3a6a60==='merged'){const _0x2b0db0=_0x47ac51[_0xa07755(0x1df)]['apps']&&typeof _0x47ac51[_0xa07755(0x1df)][_0xa07755(0x1e3)]===_0xa07755(0x1eb)?_0x47ac51[_0xa07755(0x1df)][_0xa07755(0x1e3)]:{},_0x3a7038=_0x47ac51['projectConfig'][_0xa07755(0x1e3)]&&typeof _0x47ac51[_0xa07755(0x1e1)][_0xa07755(0x1e3)]===_0xa07755(0x1eb)?_0x47ac51[_0xa07755(0x1e1)][_0xa07755(0x1e3)]:{};_0x3436c8={..._0x2b0db0,..._0x3a7038};const _0xa88e05=readRawConfig(_0x47ab42);_0x5462c2=_0xa88e05[_0xa07755(0x1ec)];}else _0x3436c8=_0x47ac51['projectConfig'][_0xa07755(0x1e3)],_0x5462c2=_0x47ac51[_0xa07755(0x1e1)][_0xa07755(0x1ec)];if(!_0x3436c8||typeof _0x3436c8!=='object'||Object[_0xa07755(0x1cd)](_0x3436c8)[_0xa07755(0x1cf)]===0x0)return null;return Object[_0xa07755(0x1e2)](_0x3436c8)['map'](([_0x3a9d82,_0x358ed4])=>({'name':_0x3a9d82,'appcode':_0x358ed4?.[_0xa07755(0x1e5)]||'','isDefault':_0x3a9d82===_0x5462c2,'env':_0x358ed4?.[_0xa07755(0x1e0)],'apiDir':_0x358ed4?.[_0xa07755(0x1d4)],'cookie':_0x358ed4?.[_0xa07755(0x1d2)]||undefined}))[_0xa07755(0x1d0)](_0x3d6ff6=>_0x3d6ff6[_0xa07755(0x1e5)]);}export function getTemplateBaseUrl(_0x263550){const _0x2930ef=a181_0x1e7987,_0x513764=readRawConfig(_0x263550);if(_0x513764[_0x2930ef(0x1ce)]&&typeof _0x513764[_0x2930ef(0x1ce)]===_0x2930ef(0x1db))return _0x513764[_0x2930ef(0x1ce)][_0x2930ef(0x1d5)](/\/$/,'');return _0x2930ef(0x1cb);}function buildConfig(_0x39f1d6,_0x1bb686,_0x6dbdfd){return{...resolveAppConfig({'raw':_0x39f1d6,'flags':_0x1bb686,'layers':_0x6dbdfd,'readEnv':env}),'raw':_0x39f1d6};}export function resolveApiFilePath(_0xd06b43,_0x422099){const _0x5f133d=a181_0x1e7987,_0x3a725e=resolve(process[_0x5f133d(0x1d3)](),_0xd06b43),_0x216c42=resolve(_0x3a725e,_0x5f133d(0x1d1));if(!_0x422099)return _0x216c42;const _0x3456b5=readRawConfig(),_0x208912=_0x3456b5[_0x5f133d(0x1e3)]&&typeof _0x3456b5['apps']==='object'?_0x3456b5['apps']:{},_0x173292=Object['entries'](_0x208912)[_0x5f133d(0x1cc)](([,_0x21e840])=>_0x21e840?.[_0x5f133d(0x1e5)]===_0x422099);if(!_0x173292)return _0x216c42;const [_0x54391f,_0x26eeb2]=_0x173292,_0xaf638e=typeof _0x3456b5[_0x5f133d(0x1ec)]===_0x5f133d(0x1db)?_0x3456b5[_0x5f133d(0x1ec)]:undefined;if(_0x26eeb2?.['apiDir'])return _0x216c42;if(_0xaf638e&&_0x54391f!==_0xaf638e)return resolve(_0x3a725e,_0x54391f+_0x5f133d(0x1d6));return _0x216c42;}function a181_0x1f29(){const _0x24dd4f=['./constant/env.js','246hrWnRj','https://g.lovrabet.com/dist/lovrabet-skill','find','keys','template_base_url','length','filter','api.ts','cookie','cwd','apiDir','replace','-api.ts','1880EZSolX','trim','userDomain','90PxMAeI','string','setLogPath','project','11498dMpKkH','globalConfig','env','projectConfig','entries','apps','27rLZxDk','appcode','values','8185441ViFONm','13iecZKf','61012aAcLby','762380dAnIVp','object','defaultApp','setRawCommand','runtimeDomain','./utils/is-non-interactive.js','app','1554760mvWjcp','237390FfPEzQ'];a181_0x1f29=function(){return _0x24dd4f;};return a181_0x1f29();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xed6230,_0x126788){const _0x354db6=a182_0x2590,_0x5015cb=_0xed6230();while(!![]){try{const _0xf01bd8=parseInt(_0x354db6(0x1c2))/0x1*(parseInt(_0x354db6(0x1bf))/0x2)+-parseInt(_0x354db6(0x1c8))/0x3+parseInt(_0x354db6(0x1c4))/0x4+-parseInt(_0x354db6(0x1c6))/0x5+-parseInt(_0x354db6(0x1c9))/0x6+-parseInt(_0x354db6(0x1cb))/0x7+parseInt(_0x354db6(0x1c3))/0x8*(parseInt(_0x354db6(0x1be))/0x9);if(_0xf01bd8===_0x126788)break;else _0x5015cb['push'](_0x5015cb['shift']());}catch(_0x3bbb98){_0x5015cb['push'](_0x5015cb['shift']());}}}(a182_0xc799,0xc0821));function a182_0x2590(_0x1b0775,_0x407456){_0x1b0775=_0x1b0775-0x1bd;const _0xc7996b=a182_0xc799();let _0x2590b1=_0xc7996b[_0x1b0775];return _0x2590b1;}function a182_0xc799(){const _0x2cb495=['3681615mRxWHO','api.ts','780294qOhSFe','2229378iwKgLq','set','10688447PBfJTh','alias','datasetCode','9WZFgpx','26778OyWoky','push','cwd','35cNWEff','15115528TxXTBI','5301448ANKpln','find'];a182_0xc799=function(){return _0x2cb495;};return a182_0xc799();}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x1db53e){const _0x32f1f6=a182_0x2590,_0x363d5f=[],_0x4e4f45=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x119b46;while((_0x119b46=_0x4e4f45['exec'](_0x1db53e))!==null){_0x363d5f[_0x32f1f6(0x1c0)]({'datasetCode':_0x119b46[0x1],'tableName':_0x119b46[0x2],'name':_0x119b46[0x3],'alias':_0x119b46[0x4]});}return _0x363d5f;}export function loadAliasMap(_0x2cb709,_0x1be409,_0x2f77d6){const _0x436778=a182_0x2590,_0xf1ba0e=_0x2f77d6??resolve(process[_0x436778(0x1c1)](),_0x2cb709,_0x436778(0x1c7));if(cache['has'](_0xf1ba0e))return cache['get'](_0xf1ba0e);if(!existsSync(_0xf1ba0e))return cache['set'](_0xf1ba0e,[]),[];try{const _0x3ebbce=readFileSync(_0xf1ba0e,'utf-8'),_0x1b97a3=parseApiFile(_0x3ebbce);return cache[_0x436778(0x1ca)](_0xf1ba0e,_0x1b97a3),_0x1b97a3;}catch{return cache[_0x436778(0x1ca)](_0xf1ba0e,[]),[];}}export function resolveAlias(_0x588cf9,_0x34e5e3,_0x5debc7,_0x1c0021){const _0x4a2c0b=a182_0x2590;if(!_0x34e5e3)return undefined;const _0x1bff87=loadAliasMap(_0x588cf9,_0x5debc7,_0x1c0021),_0x4e2624=_0x1bff87[_0x4a2c0b(0x1c5)](_0x4699a0=>_0x4699a0[_0x4a2c0b(0x1cc)]===_0x34e5e3);return _0x4e2624?.[_0x4a2c0b(0x1bd)];}export function listAliases(_0x3a0ba5,_0x276e72,_0x15fba8){return loadAliasMap(_0x3a0ba5,_0x276e72,_0x15fba8);}
|