@lovrabet/rabetbase-cli 2.3.14 → 2.3.15-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/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/asset-update.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/external-link-update.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/rename.js +1 -0
- 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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/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/restore.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/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a187_0x2dfb95=a187_0x2f8c;(function(_0x53c229,_0x45f244){const _0x2172f7=a187_0x2f8c,_0x90e370=_0x53c229();while(!![]){try{const _0x48ff35=-parseInt(_0x2172f7(0x1c4))/0x1+-parseInt(_0x2172f7(0x1bd))/0x2+parseInt(_0x2172f7(0x1cc))/0x3+parseInt(_0x2172f7(0x1b3))/0x4*(parseInt(_0x2172f7(0x1ce))/0x5)+parseInt(_0x2172f7(0x1c9))/0x6+parseInt(_0x2172f7(0x1bb))/0x7*(parseInt(_0x2172f7(0x1bf))/0x8)+parseInt(_0x2172f7(0x1ae))/0x9*(-parseInt(_0x2172f7(0x1c3))/0xa);if(_0x48ff35===_0x45f244)break;else _0x90e370['push'](_0x90e370['shift']());}catch(_0x3cc4f3){_0x90e370['push'](_0x90e370['shift']());}}}(a187_0x26e0,0x91214));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a187_0x2dfb95(0x1ca),a187_0x2dfb95(0x1c5),a187_0x2dfb95(0x1a9),a187_0x2dfb95(0x1b0),a187_0x2dfb95(0x1c7)];function a187_0x26e0(){const _0x508560=['6712UvlYGI','env','trim','Risk\x20level','22940oUudoi','959893izcgco','accessKey','join','riskLevel','pageSize','2368704GwfTRy','cookie','Auth\x20cookie','939015wcMNuH','Config\x20key\x20(','133660CqKzgk','defaultFormat','Default\x20page\x20size','filter','en-US','entries','locale','zh-CN','string','number','length','342DvwLvI','map','format','Locale','appcode','76BacAwZ','defaultApp','toLowerCase','Access\x20key','app','keys','apiDir','API\x20directory\x20path','7609VbNove','inherit','972346VvuuMi','apps'];a187_0x26e0=function(){return _0x508560;};return a187_0x26e0();}export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode','env',a187_0x2dfb95(0x1a9),a187_0x2dfb95(0x1b0),a187_0x2dfb95(0x1ca),a187_0x2dfb95(0x1c5),a187_0x2dfb95(0x1b9)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x26c3cf){const _0x18bad4=a187_0x2dfb95;return[..._0x26c3cf][_0x18bad4(0x1c6)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a187_0x2f8c(_0x8aab27,_0x2ffe68){_0x8aab27=_0x8aab27-0x1a5;const _0x26e042=a187_0x26e0();let _0x2f8cc5=_0x26e042[_0x8aab27];return _0x2f8cc5;}export function isTopLevelConfigKey(_0x1f8b11){return TOP_LEVEL_CONFIG_KEYS['has'](_0x1f8b11);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x375d90=a187_0x2dfb95;return _0x375d90(0x1cd)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a187_0x2dfb95(0x1c0),'apiDir':a187_0x2dfb95(0x1b9),'cookie':a187_0x2dfb95(0x1ca),'accessKey':a187_0x2dfb95(0x1c5),'defaultFormat':a187_0x2dfb95(0x1b0),'pageSize':a187_0x2dfb95(0x1c8),'riskLevel':a187_0x2dfb95(0x1c7),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x23ff72=a187_0x2dfb95;return[{'name':_0x23ff72(0x1c0),'type':_0x23ff72(0x1ab),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x23ff72(0x1b9),'type':'string','description':_0x23ff72(0x1ba)},{'name':_0x23ff72(0x1ca),'type':_0x23ff72(0x1ab),'description':_0x23ff72(0x1cb),'hidden':!![]},{'name':'accessKey','type':_0x23ff72(0x1ab),'description':_0x23ff72(0x1b6),'hidden':!![]},{'name':_0x23ff72(0x1cf),'type':_0x23ff72(0x1ab),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x23ff72(0x1c8),'type':_0x23ff72(0x1ac),'description':_0x23ff72(0x1a5)},{'name':'riskLevel','type':_0x23ff72(0x1ab),'description':_0x23ff72(0x1c2),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x23ff72(0x1ab),'description':_0x23ff72(0x1b1)}];}export function collectAppProfileOverrides(_0x125c50){const _0x7a9518=a187_0x2dfb95,_0x21f21c={};for(const [_0x5d0d4d,_0x440468]of Object[_0x7a9518(0x1a8)](APP_PROFILE_FLAG_KEY_MAP)){const _0x348858=_0x125c50(_0x5d0d4d);if(!_0x348858)continue;_0x21f21c[_0x440468]=_0x440468===_0x7a9518(0x1c8)?Number(_0x348858):_0x348858;}return _0x21f21c;}export function buildAppProfileListFields(_0x442567){const _0x43346b=a187_0x2dfb95;return{'env':_0x442567[_0x43346b(0x1c0)]??null,'apiDir':_0x442567[_0x43346b(0x1b9)]??null,'hasCookie':!!_0x442567[_0x43346b(0x1ca)],'hasAccessKey':!!_0x442567['accessKey'],'format':_0x442567[_0x43346b(0x1b0)]??null,'pageSize':_0x442567[_0x43346b(0x1c8)]??null,'riskLevel':_0x442567[_0x43346b(0x1c7)]??null,'locale':_0x442567[_0x43346b(0x1a9)]??null};}export function buildAppDoctorFields(_0x5babfe,_0x499022){const _0x29908d=a187_0x2dfb95;return{'env':{'value':_0x5babfe[_0x29908d(0x1c0)]||_0x499022['env'],'source':_0x5babfe[_0x29908d(0x1c0)]?_0x29908d(0x1b7):_0x29908d(0x1bc)},'apiDir':{'value':_0x5babfe[_0x29908d(0x1b9)]||_0x499022['apiDir'],'source':_0x5babfe[_0x29908d(0x1b9)]?_0x29908d(0x1b7):'inherit'},'cookie':{'value':_0x5babfe[_0x29908d(0x1ca)]||_0x499022[_0x29908d(0x1ca)],'source':_0x5babfe[_0x29908d(0x1ca)]?_0x29908d(0x1b7):_0x29908d(0x1bc)},'accessKey':{'value':_0x5babfe[_0x29908d(0x1c5)]||_0x499022[_0x29908d(0x1c5)],'source':_0x5babfe[_0x29908d(0x1c5)]?_0x29908d(0x1b7):_0x29908d(0x1bc)}};}export function buildCanonicalAppConfig(_0x3f6da4,_0x5b0f47){const _0x44ec4f=a187_0x2dfb95,_0xb934de=_0x3f6da4[_0x44ec4f(0x1af)](_0x315bc2=>String(_0x315bc2||'')[_0x44ec4f(0x1c1)]())[_0x44ec4f(0x1a6)](Boolean);if(_0xb934de[_0x44ec4f(0x1ad)]===0x0)return{};const _0x5d6cc1={};for(const _0x1d589c of _0xb934de){_0x5d6cc1[_0x1d589c]=_0x5b0f47?{'appcode':_0x1d589c,'env':_0x5b0f47}:{'appcode':_0x1d589c};}return{'apps':_0x5d6cc1,'defaultApp':_0xb934de[0x0]};}export function buildCanonicalProjectConfig(_0x1096bd,_0x540281){const _0x1ebde8=a187_0x2dfb95,{appCodes:appCodes=[],env:_0x7b5e1f,metadata:_0x51b503}=_0x540281,_0x5538bd={..._0x1096bd,..._0x51b503||{}};delete _0x5538bd[_0x1ebde8(0x1b2)],delete _0x5538bd['app'];if(_0x7b5e1f)_0x5538bd[_0x1ebde8(0x1c0)]=_0x7b5e1f;else!_0x5538bd['env']&&(_0x5538bd[_0x1ebde8(0x1c0)]=DEFAULT_CONFIG_VALUES['env']);const _0x2e9c08=buildCanonicalAppConfig(appCodes,_0x5538bd[_0x1ebde8(0x1c0)]);return Object[_0x1ebde8(0x1b8)](_0x2e9c08)['length']>0x0&&(_0x5538bd[_0x1ebde8(0x1be)]=_0x2e9c08[_0x1ebde8(0x1be)],_0x5538bd[_0x1ebde8(0x1b4)]=_0x2e9c08['defaultApp']),_0x5538bd;}const LOCALE_MAP={'zh':a187_0x2dfb95(0x1aa),'zh-cn':a187_0x2dfb95(0x1aa),'zh_cn':a187_0x2dfb95(0x1aa),'en':'en-US','en-us':'en-US','en_us':a187_0x2dfb95(0x1a7)};export function normalizeLocale(_0xd8ef6){const _0x1516a7=a187_0x2dfb95;if(!_0xd8ef6)return null;return LOCALE_MAP[_0xd8ef6[_0x1516a7(0x1b5)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a188_0x5d1b(){const _0x2bba12=['4NbOWaZ','642600zwoJax','10254EBHJFa','1056295BorTod','36tbHzkz','1142086mkwUIG','82LlSuIP','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','5380KSCZeB','1588300HmBahE','1297386bKFlKa','819lWdnjx','16folOqu'];a188_0x5d1b=function(){return _0x2bba12;};return a188_0x5d1b();}function a188_0x27e2(_0x357310,_0x4ad1fd){_0x357310=_0x357310-0x9a;const _0x5d1b98=a188_0x5d1b();let _0x27e2a4=_0x5d1b98[_0x357310];return _0x27e2a4;}const a188_0x42b2f3=a188_0x27e2;(function(_0x55bf2d,_0x5e8680){const _0x8efcf2=a188_0x27e2,_0x5152db=_0x55bf2d();while(!![]){try{const _0x4bc48f=-parseInt(_0x8efcf2(0x9a))/0x1*(parseInt(_0x8efcf2(0xa5))/0x2)+-parseInt(_0x8efcf2(0xa0))/0x3+parseInt(_0x8efcf2(0x9f))/0x4*(parseInt(_0x8efcf2(0xa2))/0x5)+parseInt(_0x8efcf2(0xa1))/0x6*(parseInt(_0x8efcf2(0x9d))/0x7)+parseInt(_0x8efcf2(0x9e))/0x8*(-parseInt(_0x8efcf2(0x9c))/0x9)+parseInt(_0x8efcf2(0x9b))/0xa+-parseInt(_0x8efcf2(0xa4))/0xb*(-parseInt(_0x8efcf2(0xa3))/0xc);if(_0x4bc48f===_0x5e8680)break;else _0x5152db['push'](_0x5152db['shift']());}catch(_0x18c8f4){_0x5152db['push'](_0x5152db['shift']());}}}(a188_0x5d1b,0x26ae0));export const CLI_VERSION_POLICY_URL=a188_0x42b2f3(0xa6);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a188_0x42bc(){const _0x4d880a=['string','expect-path','fromEntries','menuIds','project','Output\x20format','file','Dataset\x20code','all','Enable\x20BFF\x20save','sqlName','File\x20path','key','operation','name','map','json\x20|\x20pretty\x20|\x20compress','90204FhfCVm','Asynchronous\x20task\x20ID','menu-ids','boolean','Title','yes','value','target','datasetcode','stdin','operationType','Force\x20non-interactive\x20mode\x20(CI)','function-node','verbose','clear','12BfleSA','Function\x20node','Alias\x20for\x20--non-interactive','Use\x20global\x20config\x20scope','params','pagesize','taskId','help','Page\x20number','Skip\x20import\x20generation','db-id','dbid','21742kokJGW','1112CthOni','Schemas','Select\x20app\x20profile\x20by\x20name','confirm','parent-id','Config\x20key','sql','Description\x20file','122990WvlEqZ','expect-parent-id','enableBffSave','Code\x20filter','Page\x20size','Config\x20value','DB\x20ID','Tags','output','skipImports','1485115blOkGr','Expected\x20current\x20child\x20count','enable-bff-save','<expr>','dbId','type','JSON\x20params','expected-children-count','<code>','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Expected\x20current\x20menu\x20path','operation-type','3907512bdtuol','SQL\x20string','nonInteractive','Verbose\x20output','fromEnv','8BTdrSq','Skip\x20confirmation\x20for\x20high-risk\x20writes','expectPath','Clear','Preview\x20operation\x20without\x20executing','sort','force','description-file','Read\x20value\x20from\x20environment\x20variable','title','remote','2219610xdZfys','Description','Rabetbase\x20CLI','skip-imports','Operation\x20type','production\x20|\x20daily','label','meowKey','rabetbase','Comma-separated\x20menu\x20IDs','expectedChildrenCount','code','sqlcode','sqlname','tags','description','Watch\x20mode','from-env','global','Name','watch','expected-count','Read\x20value\x20from\x20stdin','<name>','SQL\x20code','page','SQL\x20name','env','reveal','4461201MyCvwh','schemas','format','keyword','functionNode','Expected\x20affected\x20count','Keyword\x20filter','Target\x20path','Menu\x20label','descriptionFile','appcode','task-id','dry-run','app','@lovrabet/rabetbase-cli','Show\x20help'];a188_0x42bc=function(){return _0x4d880a;};return a188_0x42bc();}const a188_0x202215=a188_0x38f4;(function(_0x196d21,_0x524b19){const _0x401678=a188_0x38f4,_0x55a029=_0x196d21();while(!![]){try{const _0x70c790=-parseInt(_0x401678(0x14e))/0x1*(-parseInt(_0x401678(0x169))/0x2)+parseInt(_0x401678(0x1c1))/0x3*(-parseInt(_0x401678(0x1b2))/0x4)+parseInt(_0x401678(0x158))/0x5+-parseInt(_0x401678(0x164))/0x6+-parseInt(_0x401678(0x145))/0x7*(parseInt(_0x401678(0x146))/0x8)+parseInt(_0x401678(0x191))/0x9+parseInt(_0x401678(0x174))/0xa;if(_0x70c790===_0x524b19)break;else _0x55a029['push'](_0x55a029['shift']());}catch(_0x284b90){_0x55a029['push'](_0x55a029['shift']());}}}(a188_0x42bc,0x51683));export const CLI_BIN_NAME=a188_0x202215(0x17c);export const CLI_DISPLAY_NAME=a188_0x202215(0x176);export const NPM_PACKAGE_NAME=a188_0x202215(0x19f);export const GLOBAL_FLAGS=[{'name':a188_0x202215(0x19b),'meowKey':a188_0x202215(0x19b),'type':a188_0x202215(0x1a1),'description':'Override\x20appcode','hint':a188_0x202215(0x160)},{'name':'app','meowKey':a188_0x202215(0x19e),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x148),'hint':a188_0x202215(0x18b)},{'name':a188_0x202215(0x18f),'meowKey':'env','type':a188_0x202215(0x1a1),'description':'Environment','hint':a188_0x202215(0x179)},{'name':'format','meowKey':a188_0x202215(0x193),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x1a6),'hint':a188_0x202215(0x1b1)},{'name':'jq','meowKey':'jq','type':'string','description':a188_0x202215(0x161),'hint':a188_0x202215(0x15b)},{'name':a188_0x202215(0x19d),'meowKey':'dryRun','type':a188_0x202215(0x1b5),'description':a188_0x202215(0x16d)},{'name':a188_0x202215(0x1b7),'meowKey':a188_0x202215(0x1b7),'type':a188_0x202215(0x1b5),'description':a188_0x202215(0x16a)},{'name':'non-interactive','meowKey':a188_0x202215(0x166),'type':a188_0x202215(0x1b5),'description':a188_0x202215(0x1bd)},{'name':'global','meowKey':a188_0x202215(0x186),'type':a188_0x202215(0x1b5),'description':a188_0x202215(0x13c)},{'name':a188_0x202215(0x1a5),'meowKey':a188_0x202215(0x1a5),'type':a188_0x202215(0x1b5),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a188_0x202215(0x1b5),'description':a188_0x202215(0x13b),'hidden':!![]},{'name':'help','meowKey':a188_0x202215(0x140),'type':a188_0x202215(0x1b5),'description':a188_0x202215(0x1a0)},{'name':'name','meowKey':a188_0x202215(0x1af),'type':'string','description':a188_0x202215(0x187),'hidden':!![]},{'name':'title','meowKey':a188_0x202215(0x172),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x1b6),'hidden':!![]},{'name':a188_0x202215(0x1c0),'meowKey':a188_0x202215(0x1c0),'type':'boolean','description':a188_0x202215(0x16c),'hidden':!![]},{'name':a188_0x202215(0x188),'meowKey':a188_0x202215(0x188),'type':a188_0x202215(0x1b5),'description':a188_0x202215(0x184),'hidden':!![]},{'name':a188_0x202215(0x156),'meowKey':a188_0x202215(0x156),'type':a188_0x202215(0x1a1),'description':'Output\x20path','hidden':!![]},{'name':a188_0x202215(0x13d),'meowKey':'params','type':'string','description':a188_0x202215(0x15e),'hidden':!![]},{'name':a188_0x202215(0x1ba),'meowKey':'datasetcode','type':a188_0x202215(0x1a1),'description':a188_0x202215(0x1a8),'hidden':!![]},{'name':a188_0x202215(0x1a9),'meowKey':a188_0x202215(0x1a9),'type':'boolean','description':'Apply\x20to\x20all','hidden':!![]},{'name':a188_0x202215(0x15a),'meowKey':a188_0x202215(0x150),'type':a188_0x202215(0x1b5),'description':a188_0x202215(0x1aa),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':a188_0x202215(0x15d),'meowKey':'type','type':a188_0x202215(0x1a1),'description':'Type\x20filter','hidden':!![]},{'name':a188_0x202215(0x1a7),'meowKey':'file','type':a188_0x202215(0x1a1),'description':a188_0x202215(0x1ac),'hidden':!![]},{'name':a188_0x202215(0x180),'meowKey':a188_0x202215(0x180),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x18c),'hidden':!![]},{'name':'sql-name','meowKey':a188_0x202215(0x1ab),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x18e),'hidden':!![]},{'name':a188_0x202215(0x181),'meowKey':a188_0x202215(0x181),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x18e),'hidden':!![]},{'name':a188_0x202215(0x143),'meowKey':a188_0x202215(0x15c),'type':'string','description':a188_0x202215(0x154),'hidden':!![]},{'name':a188_0x202215(0x144),'meowKey':a188_0x202215(0x144),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x154),'hidden':!![]},{'name':a188_0x202215(0x183),'meowKey':a188_0x202215(0x183),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x175),'hidden':!![]},{'name':a188_0x202215(0x170),'meowKey':a188_0x202215(0x19a),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x14d),'hidden':!![]},{'name':a188_0x202215(0x18d),'meowKey':a188_0x202215(0x18d),'type':'string','description':a188_0x202215(0x141),'hidden':!![]},{'name':'pagesize','meowKey':a188_0x202215(0x13e),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x152),'hidden':!![]},{'name':a188_0x202215(0x194),'meowKey':'keyword','type':a188_0x202215(0x1a1),'description':a188_0x202215(0x197),'hidden':!![]},{'name':a188_0x202215(0x17f),'meowKey':a188_0x202215(0x17f),'type':'string','description':a188_0x202215(0x151),'hidden':!![]},{'name':a188_0x202215(0x14c),'meowKey':a188_0x202215(0x14c),'type':'string','description':a188_0x202215(0x165),'hidden':!![]},{'name':a188_0x202215(0x192),'meowKey':'schemas','type':a188_0x202215(0x1a1),'description':a188_0x202215(0x147),'hidden':!![]},{'name':a188_0x202215(0x1ae),'meowKey':'operation','type':a188_0x202215(0x1a1),'description':a188_0x202215(0x178),'hidden':!![]},{'name':'target','meowKey':a188_0x202215(0x1b9),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x198),'hidden':!![]},{'name':a188_0x202215(0x177),'meowKey':a188_0x202215(0x157),'type':'boolean','description':a188_0x202215(0x142),'hidden':!![]},{'name':a188_0x202215(0x1ad),'meowKey':a188_0x202215(0x1ad),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x14b),'hidden':!![]},{'name':a188_0x202215(0x1b8),'meowKey':a188_0x202215(0x1b8),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x153),'hidden':!![]},{'name':a188_0x202215(0x182),'meowKey':a188_0x202215(0x182),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x155),'hidden':!![]},{'name':a188_0x202215(0x1bb),'meowKey':a188_0x202215(0x1bb),'type':a188_0x202215(0x1b5),'description':a188_0x202215(0x18a),'hidden':!![]},{'name':a188_0x202215(0x185),'meowKey':a188_0x202215(0x168),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x171),'hidden':!![]},{'name':a188_0x202215(0x190),'meowKey':a188_0x202215(0x190),'type':a188_0x202215(0x1b5),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':'force','meowKey':a188_0x202215(0x16f),'type':'boolean','description':'Force\x20overwrite','hidden':!![]},{'name':a188_0x202215(0x149),'meowKey':'confirm','type':a188_0x202215(0x1b5),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a188_0x202215(0x173),'meowKey':a188_0x202215(0x173),'type':a188_0x202215(0x1b5),'description':'Use\x20remote','hidden':!![]},{'name':'verbose','meowKey':a188_0x202215(0x1bf),'type':a188_0x202215(0x1b5),'description':a188_0x202215(0x167),'hidden':!![]},{'name':a188_0x202215(0x189),'meowKey':'expectedCount','type':a188_0x202215(0x1a1),'description':a188_0x202215(0x196),'hidden':!![]},{'name':a188_0x202215(0x17a),'meowKey':a188_0x202215(0x17a),'type':'string','description':a188_0x202215(0x199),'hidden':!![]},{'name':a188_0x202215(0x14a),'meowKey':'parentId','type':a188_0x202215(0x1a1),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a188_0x202215(0x16e),'meowKey':'sort','type':a188_0x202215(0x1a1),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a188_0x202215(0x14f),'meowKey':'expectParentId','type':a188_0x202215(0x1a1),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a188_0x202215(0x1a2),'meowKey':a188_0x202215(0x16b),'type':'string','description':a188_0x202215(0x162),'hidden':!![]},{'name':a188_0x202215(0x15f),'meowKey':a188_0x202215(0x17e),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x159),'hidden':!![]},{'name':a188_0x202215(0x1b4),'meowKey':a188_0x202215(0x1a4),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x17d),'hidden':!![]},{'name':a188_0x202215(0x19c),'meowKey':a188_0x202215(0x13f),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x1b3),'hidden':!![]},{'name':a188_0x202215(0x163),'meowKey':a188_0x202215(0x1bc),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x178),'hidden':!![]},{'name':a188_0x202215(0x1be),'meowKey':a188_0x202215(0x195),'type':a188_0x202215(0x1a1),'description':a188_0x202215(0x1c2),'hidden':!![]}];function a188_0x38f4(_0xca5da6,_0x42af42){_0xca5da6=_0xca5da6-0x13b;const _0x42bc7e=a188_0x42bc();let _0x38f447=_0x42bc7e[_0xca5da6];return _0x38f447;}export const PIPELINE_FLAG_NAMES=new Set([a188_0x202215(0x19b),a188_0x202215(0x19e),a188_0x202215(0x18f),a188_0x202215(0x193),'jq',a188_0x202215(0x19d),'yes','non-interactive','ci']);export function buildMeowFlags(){const _0x48a0ec=a188_0x202215;return Object[_0x48a0ec(0x1a3)](GLOBAL_FLAGS[_0x48a0ec(0x1b0)](_0x201eb6=>[_0x201eb6[_0x48a0ec(0x17b)],{'type':_0x201eb6[_0x48a0ec(0x15d)]}]));}
|
|
1
|
+
const a189_0x3a44f2=a189_0xf1d5;(function(_0x132502,_0x5449e0){const _0x5880a8=a189_0xf1d5,_0x2d6974=_0x132502();while(!![]){try{const _0x3bc448=parseInt(_0x5880a8(0x17f))/0x1+parseInt(_0x5880a8(0x1a1))/0x2*(-parseInt(_0x5880a8(0x14b))/0x3)+parseInt(_0x5880a8(0x19e))/0x4+parseInt(_0x5880a8(0x1a5))/0x5*(-parseInt(_0x5880a8(0x1a9))/0x6)+-parseInt(_0x5880a8(0x15e))/0x7*(parseInt(_0x5880a8(0x152))/0x8)+parseInt(_0x5880a8(0x164))/0x9*(-parseInt(_0x5880a8(0x147))/0xa)+parseInt(_0x5880a8(0x17c))/0xb*(parseInt(_0x5880a8(0x19f))/0xc);if(_0x3bc448===_0x5449e0)break;else _0x2d6974['push'](_0x2d6974['shift']());}catch(_0x4184c3){_0x2d6974['push'](_0x2d6974['shift']());}}}(a189_0xd1ae,0x84947));export const CLI_BIN_NAME=a189_0x3a44f2(0x168);export const CLI_DISPLAY_NAME=a189_0x3a44f2(0x148);export const NPM_PACKAGE_NAME=a189_0x3a44f2(0x153);export const GLOBAL_FLAGS=[{'name':a189_0x3a44f2(0x1a3),'meowKey':a189_0x3a44f2(0x1a3),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x19d),'hint':a189_0x3a44f2(0x159)},{'name':a189_0x3a44f2(0x1a0),'meowKey':'app','type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a189_0x3a44f2(0x157)},{'name':a189_0x3a44f2(0x14f),'meowKey':a189_0x3a44f2(0x14f),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x13c),'hint':a189_0x3a44f2(0x1b4)},{'name':'format','meowKey':a189_0x3a44f2(0x161),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x17a),'hint':a189_0x3a44f2(0x1ae)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a189_0x3a44f2(0x15c)},{'name':a189_0x3a44f2(0x13d),'meowKey':a189_0x3a44f2(0x163),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x162)},{'name':a189_0x3a44f2(0x15a),'meowKey':'yes','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x15b)},{'name':a189_0x3a44f2(0x138),'meowKey':'nonInteractive','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x19a)},{'name':a189_0x3a44f2(0x171),'meowKey':'global','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x186)},{'name':a189_0x3a44f2(0x1a8),'meowKey':a189_0x3a44f2(0x1a8),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x134)},{'name':'ci','meowKey':'ci','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x16b),'hidden':!![]},{'name':a189_0x3a44f2(0x17e),'meowKey':a189_0x3a44f2(0x17e),'type':a189_0x3a44f2(0x1ac),'description':'Show\x20help'},{'name':a189_0x3a44f2(0x143),'meowKey':a189_0x3a44f2(0x143),'type':'string','description':a189_0x3a44f2(0x182),'hidden':!![]},{'name':'title','meowKey':a189_0x3a44f2(0x14e),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x17b),'hidden':!![]},{'name':a189_0x3a44f2(0x1aa),'meowKey':a189_0x3a44f2(0x1aa),'type':a189_0x3a44f2(0x1ac),'description':'Clear','hidden':!![]},{'name':a189_0x3a44f2(0x178),'meowKey':'watch','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x151),'hidden':!![]},{'name':'output','meowKey':'output','type':'string','description':a189_0x3a44f2(0x19c),'hidden':!![]},{'name':'params','meowKey':a189_0x3a44f2(0x197),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x198),'hidden':!![]},{'name':a189_0x3a44f2(0x15f),'meowKey':a189_0x3a44f2(0x15f),'type':a189_0x3a44f2(0x172),'description':'Dataset\x20code','hidden':!![]},{'name':a189_0x3a44f2(0x18c),'meowKey':a189_0x3a44f2(0x18c),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x184),'hidden':!![]},{'name':'enable-bff-save','meowKey':a189_0x3a44f2(0x167),'type':a189_0x3a44f2(0x1ac),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x185),'hidden':!![]},{'name':a189_0x3a44f2(0x19b),'meowKey':a189_0x3a44f2(0x19b),'type':a189_0x3a44f2(0x172),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':'file','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x137),'hidden':!![]},{'name':a189_0x3a44f2(0x1a7),'meowKey':'sqlcode','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18e),'hidden':!![]},{'name':'sql-name','meowKey':a189_0x3a44f2(0x1b2),'type':'string','description':a189_0x3a44f2(0x177),'hidden':!![]},{'name':a189_0x3a44f2(0x145),'meowKey':a189_0x3a44f2(0x145),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x177),'hidden':!![]},{'name':a189_0x3a44f2(0x156),'meowKey':'dbId','type':'string','description':a189_0x3a44f2(0x194),'hidden':!![]},{'name':a189_0x3a44f2(0x16c),'meowKey':a189_0x3a44f2(0x16c),'type':a189_0x3a44f2(0x172),'description':'DB\x20ID','hidden':!![]},{'name':a189_0x3a44f2(0x136),'meowKey':a189_0x3a44f2(0x136),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x165),'hidden':!![]},{'name':a189_0x3a44f2(0x195),'meowKey':a189_0x3a44f2(0x18b),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x142),'hidden':!![]},{'name':a189_0x3a44f2(0x1b1),'meowKey':a189_0x3a44f2(0x1b1),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x188),'hidden':!![]},{'name':a189_0x3a44f2(0x154),'meowKey':a189_0x3a44f2(0x154),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x140),'hidden':!![]},{'name':a189_0x3a44f2(0x16d),'meowKey':a189_0x3a44f2(0x16d),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x196),'hidden':!![]},{'name':a189_0x3a44f2(0x150),'meowKey':'code','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x181),'hidden':!![]},{'name':'sql','meowKey':a189_0x3a44f2(0x13e),'type':a189_0x3a44f2(0x172),'description':'SQL\x20string','hidden':!![]},{'name':a189_0x3a44f2(0x1b0),'meowKey':a189_0x3a44f2(0x1b0),'type':'string','description':a189_0x3a44f2(0x183),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x1ab),'hidden':!![]},{'name':a189_0x3a44f2(0x1a2),'meowKey':a189_0x3a44f2(0x1a2),'type':'string','description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':'skipImports','type':'boolean','description':a189_0x3a44f2(0x13a),'hidden':!![]},{'name':a189_0x3a44f2(0x139),'meowKey':'key','type':'string','description':a189_0x3a44f2(0x173),'hidden':!![]},{'name':a189_0x3a44f2(0x193),'meowKey':'value','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18f),'hidden':!![]},{'name':a189_0x3a44f2(0x14d),'meowKey':a189_0x3a44f2(0x14d),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x16f),'hidden':!![]},{'name':a189_0x3a44f2(0x166),'meowKey':'stdin','type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a189_0x3a44f2(0x17d),'meowKey':a189_0x3a44f2(0x170),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x16a),'hidden':!![]},{'name':a189_0x3a44f2(0x169),'meowKey':'reveal','type':'boolean','description':a189_0x3a44f2(0x14c),'hidden':!![]},{'name':a189_0x3a44f2(0x13f),'meowKey':a189_0x3a44f2(0x13f),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x1ad),'hidden':!![]},{'name':a189_0x3a44f2(0x160),'meowKey':a189_0x3a44f2(0x160),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x146),'hidden':!![]},{'name':a189_0x3a44f2(0x14a),'meowKey':a189_0x3a44f2(0x14a),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x199),'hidden':!![]},{'name':a189_0x3a44f2(0x15d),'meowKey':a189_0x3a44f2(0x15d),'type':'boolean','description':a189_0x3a44f2(0x192),'hidden':!![]},{'name':a189_0x3a44f2(0x1af),'meowKey':'expectedCount','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x1b3),'hidden':!![]},{'name':a189_0x3a44f2(0x144),'meowKey':a189_0x3a44f2(0x144),'type':'string','description':a189_0x3a44f2(0x141),'hidden':!![]},{'name':a189_0x3a44f2(0x180),'meowKey':a189_0x3a44f2(0x187),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x174),'hidden':!![]},{'name':a189_0x3a44f2(0x13b),'meowKey':'sort','type':a189_0x3a44f2(0x172),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':'expect-parent-id','meowKey':a189_0x3a44f2(0x1a6),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x133),'hidden':!![]},{'name':a189_0x3a44f2(0x155),'meowKey':a189_0x3a44f2(0x175),'type':a189_0x3a44f2(0x172),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':'expected-children-count','meowKey':a189_0x3a44f2(0x18a),'type':'string','description':a189_0x3a44f2(0x190),'hidden':!![]},{'name':a189_0x3a44f2(0x135),'meowKey':a189_0x3a44f2(0x191),'type':a189_0x3a44f2(0x172),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a189_0x3a44f2(0x158),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x176),'hidden':!![]},{'name':a189_0x3a44f2(0x1a4),'meowKey':a189_0x3a44f2(0x16e),'type':'string','description':a189_0x3a44f2(0x1ab),'hidden':!![]},{'name':'function-node','meowKey':a189_0x3a44f2(0x189),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18d),'hidden':!![]}];function a189_0xd1ae(){const _0x57a595=['<expr>','verbose','2198LGkprH','datasetcode','confirm','format','Preview\x20operation\x20without\x20executing','dryRun','27xhaCjG','Description','stdin','enableBffSave','rabetbase','reveal','Read\x20value\x20from\x20environment\x20variable','Alias\x20for\x20--non-interactive','dbid','keyword','operationType','Tags','fromEnv','global','string','Config\x20key','Parent\x20menu\x20id','expectPath','Asynchronous\x20task\x20ID','SQL\x20name','watch','meowKey','Output\x20format','Title','11wzpLCh','from-env','help','780287tCaHqg','parent-id','Code\x20filter','Name','Schemas','Apply\x20to\x20all','Record\x20ID','Use\x20global\x20config\x20scope','parentId','Page\x20number','functionNode','expectedChildrenCount','descriptionFile','all','Function\x20node','SQL\x20code','Config\x20value','Expected\x20current\x20child\x20count','menuIds','Verbose\x20output','value','DB\x20ID','description-file','Keyword\x20filter','params','JSON\x20params','Use\x20remote','Force\x20non-interactive\x20mode\x20(CI)','type','Output\x20path','Override\x20appcode','1277636RRdxuo','14864904AEDCNz','app','140KfjAmt','target','appcode','operation-type','85RDASMT','expectParentId','sqlcode','project','4074tAEIaq','clear','Operation\x20type','boolean','Force\x20overwrite','json\x20|\x20pretty\x20|\x20compress','expected-count','schemas','page','sqlName','Expected\x20affected\x20count','production\x20|\x20daily','Expected\x20current\x20parent\x20menu\x20id','Use\x20project\x20config\x20scope','menu-ids','description','File\x20path','non-interactive','key','Skip\x20import\x20generation','sort','Environment','dry-run','sql','force','Page\x20size','Menu\x20label','Description\x20file','name','label','sqlname','Confirm\x20destructive\x20action','1040240HvtTHU','Rabetbase\x20CLI','fromEntries','remote','25275EMVtWm','Reveal\x20sensitive\x20value','tags','title','env','code','Watch\x20mode','22472SkOdqt','@lovrabet/rabetbase-cli','pagesize','expect-path','db-id','<name>','taskId','<code>','yes','Skip\x20confirmation\x20for\x20high-risk\x20writes'];a189_0xd1ae=function(){return _0x57a595;};return a189_0xd1ae();}export const PIPELINE_FLAG_NAMES=new Set([a189_0x3a44f2(0x1a3),a189_0x3a44f2(0x1a0),a189_0x3a44f2(0x14f),a189_0x3a44f2(0x161),'jq',a189_0x3a44f2(0x13d),'yes',a189_0x3a44f2(0x138),'ci']);function a189_0xf1d5(_0x5254d6,_0x2ce861){_0x5254d6=_0x5254d6-0x133;const _0xd1ae7d=a189_0xd1ae();let _0xf1d5e6=_0xd1ae7d[_0x5254d6];return _0xf1d5e6;}export function buildMeowFlags(){const _0x213fdb=a189_0x3a44f2;return Object[_0x213fdb(0x149)](GLOBAL_FLAGS['map'](_0x376569=>[_0x376569[_0x213fdb(0x179)],{'type':_0x376569[_0x213fdb(0x19b)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a190_0x495edc=a190_0x5773;(function(_0x36ed5a,_0xc87d61){const _0x4d5fe0=a190_0x5773,_0x3c8b6f=_0x36ed5a();while(!![]){try{const _0x4aa11e=-parseInt(_0x4d5fe0(0x144))/0x1+-parseInt(_0x4d5fe0(0x142))/0x2*(parseInt(_0x4d5fe0(0x14b))/0x3)+-parseInt(_0x4d5fe0(0x14a))/0x4*(-parseInt(_0x4d5fe0(0x13f))/0x5)+parseInt(_0x4d5fe0(0x141))/0x6+parseInt(_0x4d5fe0(0x145))/0x7*(-parseInt(_0x4d5fe0(0x14c))/0x8)+parseInt(_0x4d5fe0(0x146))/0x9+-parseInt(_0x4d5fe0(0x149))/0xa*(-parseInt(_0x4d5fe0(0x143))/0xb);if(_0x4aa11e===_0xc87d61)break;else _0x3c8b6f['push'](_0x3c8b6f['shift']());}catch(_0x5414b2){_0x3c8b6f['push'](_0x3c8b6f['shift']());}}}(a190_0x2b33,0xebbe6));import{DEFAULT_API_DIR}from'../constant/paths.js';function a190_0x5773(_0x236349,_0x3bc94f){_0x236349=_0x236349-0x13f;const _0x2b3383=a190_0x2b33();let _0x577386=_0x2b3383[_0x236349];return _0x577386;}export const DEFAULT_CONFIG_VALUES={'env':a190_0x495edc(0x147),'format':a190_0x495edc(0x148),'locale':'en-US','riskLevel':a190_0x495edc(0x140),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a190_0x495edc(0x148);function a190_0x2b33(){const _0x18bd7b=['2625491mHhgyp','1371353mGAHEO','930937BRxtgo','9903105VWfYjF','production','compress','50jPvWic','1954024agMEJO','853728FCjXsg','112mUivBj','5dSzyQL','high-risk-write','10206918kNOlEZ','2VBxVbA'];a190_0x2b33=function(){return _0x18bd7b;};return a190_0x2b33();}
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a191_0x49a782=a191_0x3f20;(function(_0x1d6948,_0x5685f1){const _0x109b44=a191_0x3f20,_0x38b229=_0x1d6948();while(!![]){try{const _0x5bbe53=parseInt(_0x109b44(0x149))/0x1*(parseInt(_0x109b44(0x144))/0x2)+-parseInt(_0x109b44(0x145))/0x3*(parseInt(_0x109b44(0x140))/0x4)+parseInt(_0x109b44(0x147))/0x5*(-parseInt(_0x109b44(0x13e))/0x6)+parseInt(_0x109b44(0x13f))/0x7*(-parseInt(_0x109b44(0x143))/0x8)+-parseInt(_0x109b44(0x14e))/0x9+parseInt(_0x109b44(0x14a))/0xa+parseInt(_0x109b44(0x150))/0xb*(parseInt(_0x109b44(0x151))/0xc);if(_0x5bbe53===_0x5685f1)break;else _0x38b229['push'](_0x38b229['shift']());}catch(_0x435a6b){_0x38b229['push'](_0x38b229['shift']());}}}(a191_0x1079,0x629c4));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x3e5ac9){const _0x23c735=a191_0x3f20;customApiDomain=_0x3e5ac9?.[_0x23c735(0x142)],customUserDomain=_0x3e5ac9?.[_0x23c735(0x152)],customRuntimeDomain=_0x3e5ac9?.[_0x23c735(0x148)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a191_0x49a782(0x14b):'https://user-daily.lovrabet.com');function a191_0x1079(){const _0x3cab09=['https://user.lovrabet.com','https://api.lovrabet.com','https://runtime.lovrabet.com','2569860skVMZP','/app/','1193357hNpWWc','144EVqRPv','userDomain','55398HzKvEM','1831431JBkuOW','4JRatPb','https://daily-runtime.lovrabet.com','apiDomain','24boATaF','1534DOvwbb','2325306eSJkFC','trim','90hjGMsV','runtimeDomain','568kLQGdh','6781430BaPlGw'];a191_0x1079=function(){return _0x3cab09;};return a191_0x1079();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a191_0x49a782(0x14c):'https://daily-api.lovrabet.com');function a191_0x3f20(_0x1a6cd9,_0x3ee0fc){_0x1a6cd9=_0x1a6cd9-0x13e;const _0x1079a8=a191_0x1079();let _0x3f20d0=_0x1079a8[_0x1a6cd9];return _0x3f20d0;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a191_0x49a782(0x14d):a191_0x49a782(0x141));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':'https://daily.lovrabet.com';export const getAppBaseUrl=_0x4fa14d=>{const _0x2cc11d=a191_0x49a782,_0x4803f7=encodeURIComponent(_0x4fa14d[_0x2cc11d(0x146)]());return isProduction(getEnv())?getAppDomain()+_0x2cc11d(0x14f)+_0x4803f7:getAppDomain()+'/web-app/app/'+_0x4803f7;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a192_0x43d77b=a192_0x387f;function a192_0x387f(_0x20897e,_0x3a7ca0){_0x20897e=_0x20897e-0x9c;const _0x50e788=a192_0x50e7();let _0x387f27=_0x50e788[_0x20897e];return _0x387f27;}(function(_0x156e94,_0x248f68){const _0x137a07=a192_0x387f,_0x5b3ee7=_0x156e94();while(!![]){try{const _0x2881f7=parseInt(_0x137a07(0xa0))/0x1*(parseInt(_0x137a07(0xa6))/0x2)+parseInt(_0x137a07(0xa2))/0x3+-parseInt(_0x137a07(0xa8))/0x4+-parseInt(_0x137a07(0x9d))/0x5+parseInt(_0x137a07(0x9c))/0x6+-parseInt(_0x137a07(0xa7))/0x7*(-parseInt(_0x137a07(0x9e))/0x8)+-parseInt(_0x137a07(0xa1))/0x9;if(_0x2881f7===_0x248f68)break;else _0x5b3ee7['push'](_0x5b3ee7['shift']());}catch(_0x2375c3){_0x5b3ee7['push'](_0x5b3ee7['shift']());}}}(a192_0x50e7,0x6c0c9));export const RABETBASE_ENV_VALUES=['production',a192_0x43d77b(0xa5)];export function normalizeEnv(_0x17a5e6){const _0x1e37b8=a192_0x43d77b;return _0x17a5e6===_0x1e37b8(0xa9)?_0x1e37b8(0xa4):_0x17a5e6;}export function isProduction(_0xf33011){const _0x741e3a=a192_0x43d77b;return normalizeEnv(_0xf33011)===_0x741e3a(0xa4);}export function isDaily(_0x469724){return normalizeEnv(_0x469724)==='daily';}export function isDev(_0xbd8cf7){const _0x52eaf4=a192_0x43d77b,_0x54dde5=normalizeEnv(_0xbd8cf7);return _0x54dde5===_0x52eaf4(0x9f)||_0x54dde5===_0x52eaf4(0xa3);}function a192_0x50e7(){const _0x39f534=['3BZArTg','5930262oxLuao','1595127PvhDqr','dev','production','daily','396458CqPkDB','7GOFAOk','2395256UXkSWX','online','3886020sdazyC','3935940Rmezoe','5707384RWTjZY','development'];a192_0x50e7=function(){return _0x39f534;};return a192_0x50e7();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a192_0x43d77b(0xa4));export function getEnv(){return env;}export function initEnv(_0x1ff341){env=normalizeEnv(_0x1ff341);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a193_0x42c150=a193_0xb133;function a193_0xb133(_0x420a39,_0x2350da){_0x420a39=_0x420a39-0xa5;const _0x3c6f58=a193_0x3c6f();let _0xb133d5=_0x3c6f58[_0x420a39];return _0xb133d5;}function a193_0x3c6f(){const _0x50bbaa=['1960355VNfHhE','json','5639130GZHGlI','1180160EthLBT','410851uImTDZ','1tZACVk','5716872xggtpl','1383264AxJbYl','2145990sUPkaV','compress','12LXEkZW'];a193_0x3c6f=function(){return _0x50bbaa;};return a193_0x3c6f();}(function(_0x5b918b,_0x4d048e){const _0x5256aa=a193_0xb133,_0x5bfa51=_0x5b918b();while(!![]){try{const _0x3bb5cb=parseInt(_0x5256aa(0xa7))/0x1*(parseInt(_0x5256aa(0xa9))/0x2)+-parseInt(_0x5256aa(0xaa))/0x3+-parseInt(_0x5256aa(0xa5))/0x4+parseInt(_0x5256aa(0xad))/0x5*(parseInt(_0x5256aa(0xac))/0x6)+parseInt(_0x5256aa(0xa6))/0x7+-parseInt(_0x5256aa(0xa8))/0x8+parseInt(_0x5256aa(0xaf))/0x9;if(_0x3bb5cb===_0x4d048e)break;else _0x5bfa51['push'](_0x5bfa51['shift']());}catch(_0x44e582){_0x5bfa51['push'](_0x5bfa51['shift']());}}}(a193_0x3c6f,0x6a75a));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a193_0x42c150(0xae),'pretty',a193_0x42c150(0xab)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a194_0xb76e8c=a194_0x39d5;function a194_0x39d5(_0x4ec6e0,_0x4f3750){_0x4ec6e0=_0x4ec6e0-0xf6;const _0x12d2eb=a194_0x12d2();let _0x39d548=_0x12d2eb[_0x4ec6e0];return _0x39d548;}function a194_0x12d2(){const _0x56fe3d=['790092FXQDka','10bSvsgS','15SzsUzr','7MHLBmh','312764vmDtDU','./src/api','367668TMDWFe','1914154iBjadD','956hFKluq','1438312StkfHD','615540WktQhF','59ebytaO'];a194_0x12d2=function(){return _0x56fe3d;};return a194_0x12d2();}(function(_0x38b00a,_0x4053e3){const _0x4ad522=a194_0x39d5,_0x170e53=_0x38b00a();while(!![]){try{const _0x39c873=parseInt(_0x4ad522(0x100))/0x1*(-parseInt(_0x4ad522(0xfd))/0x2)+-parseInt(_0x4ad522(0xff))/0x3+parseInt(_0x4ad522(0xf9))/0x4+parseInt(_0x4ad522(0xf7))/0x5*(parseInt(_0x4ad522(0xfb))/0x6)+-parseInt(_0x4ad522(0xf8))/0x7*(parseInt(_0x4ad522(0xfe))/0x8)+parseInt(_0x4ad522(0x101))/0x9*(parseInt(_0x4ad522(0xf6))/0xa)+parseInt(_0x4ad522(0xfc))/0xb;if(_0x39c873===_0x4053e3)break;else _0x170e53['push'](_0x170e53['shift']());}catch(_0x53c947){_0x170e53['push'](_0x170e53['shift']());}}}(a194_0x12d2,0x1b040));export const DEFAULT_API_DIR=a194_0xb76e8c(0xfa);
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a195_0x394d(_0x574594,_0x5c8771){_0x574594=_0x574594-0x167;const _0x3d66b8=a195_0x3d66();let _0x394d7c=_0x3d66b8[_0x574594];return _0x394d7c;}const a195_0x207561=a195_0x394d;(function(_0x37474a,_0x4b59af){const _0x2c56b6=a195_0x394d,_0x27acc1=_0x37474a();while(!![]){try{const _0x3273d0=-parseInt(_0x2c56b6(0x173))/0x1*(-parseInt(_0x2c56b6(0x168))/0x2)+parseInt(_0x2c56b6(0x171))/0x3+-parseInt(_0x2c56b6(0x16d))/0x4*(-parseInt(_0x2c56b6(0x174))/0x5)+parseInt(_0x2c56b6(0x167))/0x6*(parseInt(_0x2c56b6(0x169))/0x7)+parseInt(_0x2c56b6(0x16e))/0x8+-parseInt(_0x2c56b6(0x16a))/0x9*(parseInt(_0x2c56b6(0x16f))/0xa)+parseInt(_0x2c56b6(0x16c))/0xb*(-parseInt(_0x2c56b6(0x16b))/0xc);if(_0x3273d0===_0x4b59af)break;else _0x27acc1['push'](_0x27acc1['shift']());}catch(_0xe2392c){_0x27acc1['push'](_0x27acc1['shift']());}}}(a195_0x3d66,0x83404));export const RISK_LEVEL_VALUES=[a195_0x207561(0x170),a195_0x207561(0x172),'high-risk-write'];function a195_0x3d66(){const _0x47e345=['8095912InMxQF','7110210xJRkkV','read','735384LgzOBk','write','157LWeYcH','32460rdzEkj','142818jEAFrx','4882tFZrXw','217LtVHMP','9mzzbnM','7595724IWKNXL','22dQlzFU','84qvMBlx'];a195_0x3d66=function(){return _0x47e345;};return a195_0x3d66();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x33bbe6,_0x149d66){const _0x100a89=a196_0x1748,_0x2b313c=_0x33bbe6();while(!![]){try{const _0x40beea=parseInt(_0x100a89(0x16d))/0x1*(parseInt(_0x100a89(0x15c))/0x2)+parseInt(_0x100a89(0x17c))/0x3+parseInt(_0x100a89(0x170))/0x4+-parseInt(_0x100a89(0x15e))/0x5+parseInt(_0x100a89(0x166))/0x6*(parseInt(_0x100a89(0x168))/0x7)+-parseInt(_0x100a89(0x179))/0x8*(-parseInt(_0x100a89(0x159))/0x9)+-parseInt(_0x100a89(0x160))/0xa;if(_0x40beea===_0x149d66)break;else _0x2b313c['push'](_0x2b313c['shift']());}catch(_0x225d3c){_0x2b313c['push'](_0x2b313c['shift']());}}}(a196_0x4765,0xe2bd3));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a196_0x4765(){const _0x218224=['2318584kAxSHh','globalConfig','defaultApp','PAGE_SIZE','inherit','locale','keys','MAX_RISK','entries','1346192UFoBKn','projectConfig','riskLevel','3868455tShuqJ','VERBOSE','string','appcode','45TFnaGO','apiDir','APP','14gJHYKs','ACCESS_KEY','5270350HOqajq','pageSize','36765610YChtjS','format','app','FORMAT','apps','daily','6ioXJsG','accessKey','7866054lYwvdy','true','env','trim','read','260733VZvSUt','ENV','length'];a196_0x4765=function(){return _0x218224;};return a196_0x4765();}import{normalizeLegacyOutputFormat}from'../framework/types.js';function a196_0x1748(_0x5b184b,_0x410287){_0x5b184b=_0x5b184b-0x159;const _0x4765fc=a196_0x4765();let _0x174832=_0x4765fc[_0x5b184b];return _0x174832;}function stringConfigValue(_0x5bf87e){const _0x22dbb3=a196_0x1748;return typeof _0x5bf87e===_0x22dbb3(0x17e)&&_0x5bf87e[_0x22dbb3(0x16b)]()?_0x5bf87e[_0x22dbb3(0x16b)]():undefined;}function appProfiles(_0xfe1d73){const _0x2eced3=a196_0x1748;return _0xfe1d73[_0x2eced3(0x164)]&&typeof _0xfe1d73['apps']==='object'?_0xfe1d73[_0x2eced3(0x164)]:{};}function resolveDefaultAppName(_0x32ce8b){const _0x364669=a196_0x1748,_0x31daad=stringConfigValue(_0x32ce8b[_0x364669(0x172)]);if(_0x31daad)return _0x31daad;return Object[_0x364669(0x176)](appProfiles(_0x32ce8b))[0x0];}function resolveTopLevelAppCode(_0x3e7ee8){const _0x5e97a4=a196_0x1748;return stringConfigValue(_0x3e7ee8['appcode'])||stringConfigValue(_0x3e7ee8[_0x5e97a4(0x162)]);}export function resolveAppConfig({raw:_0x4216b9,flags:_0x4ba171,layers:_0x132257,readEnv:_0x32557e}){const _0x26fccd=a196_0x1748,_0x3fa14b=_0x132257?.[_0x26fccd(0x17a)]??{},_0x274dc7=_0x132257?.[_0x26fccd(0x171)]??{},_0x217275=Object[_0x26fccd(0x176)](_0x3fa14b)[_0x26fccd(0x16f)]>0x0,_0x18f6e4=!_0x217275||_0x3fa14b[_0x26fccd(0x174)]===!![],_0x10186d=_0x217275?resolveDefaultAppName(_0x3fa14b):undefined,_0x549cca=_0x18f6e4?resolveDefaultAppName(_0x274dc7):undefined,_0x1cb182=stringConfigValue(_0x4ba171[_0x26fccd(0x162)]),_0xa7a1b4=_0x32557e(_0x26fccd(0x15b)),_0x2343d6={};if(_0x4216b9[_0x26fccd(0x164)]&&typeof _0x4216b9[_0x26fccd(0x164)]==='object')for(const [_0xb4d623,_0x4763cc]of Object[_0x26fccd(0x178)](_0x4216b9[_0x26fccd(0x164)])){_0x4763cc&&typeof _0x4763cc==='object'&&_0x4763cc[_0x26fccd(0x17f)]&&(_0x2343d6[_0xb4d623]=_0x4763cc);}const _0x4133c4=_0x4216b9[_0x26fccd(0x172)]||undefined,_0x384414=Object[_0x26fccd(0x176)](_0x2343d6)[_0x26fccd(0x16f)]>0x0,_0x50d642=_0x1cb182||_0x10186d||_0xa7a1b4||_0x549cca||_0x4133c4||undefined,_0x4df21b=stringConfigValue(_0x4ba171[_0x26fccd(0x17f)]),_0x1d7de9=_0x4df21b?Object[_0x26fccd(0x178)](_0x2343d6)['find'](([,_0x27c209])=>_0x27c209?.[_0x26fccd(0x17f)]===_0x4df21b):undefined,_0x2b518d=_0x1d7de9?.[0x0],_0x37d8e8=_0x1d7de9?.[0x1],_0xf00263=_0x4df21b?_0x2b518d:_0x50d642;let _0x3d2f3a=_0xf00263&&_0x2343d6[_0xf00263]?_0x2343d6[_0xf00263]:undefined;_0x4df21b&&_0x37d8e8&&(_0x3d2f3a=_0x37d8e8);const _0x272347=_0x4df21b?_0x37d8e8??_0x3d2f3a:_0x3d2f3a,_0x3e1d59=!_0x1cb182&&!_0x10186d&&_0xa7a1b4&&_0xf00263===_0xa7a1b4,_0x5e1ae3=_0x1cb182||(_0x3e1d59?_0xa7a1b4:undefined)||(_0x4df21b?_0x2b518d:undefined),_0x55f209=_0x272347?.[_0x26fccd(0x17f)],_0x295f42=_0x217275?resolveTopLevelAppCode(_0x3fa14b):undefined,_0x1c8580=_0x18f6e4?resolveTopLevelAppCode(_0x274dc7):undefined,_0x434267=_0x1cb182||_0x10186d?_0x55f209:undefined,_0xd8c76a=!_0x1cb182&&!_0x10186d?_0x55f209:undefined,_0x27b6a7=_0x4df21b||_0x434267||_0x295f42||_0xd8c76a||_0x1c8580||undefined,_0xa63c52=_0x217275?stringConfigValue(_0x3fa14b[_0x26fccd(0x16a)]):undefined,_0x4b7b49=_0x18f6e4?stringConfigValue(_0x274dc7[_0x26fccd(0x16a)]):undefined,_0x1f93e3=_0x4ba171[_0x26fccd(0x16a)]||_0x272347?.[_0x26fccd(0x16a)]||_0xa63c52||_0x32557e(_0x26fccd(0x16e))||_0x4b7b49||_0x4216b9[_0x26fccd(0x16a)]||DEFAULT_CONFIG_VALUES[_0x26fccd(0x16a)],_0x4287e2=_0x272347?.[_0x26fccd(0x175)]||_0x4216b9[_0x26fccd(0x175)]||DEFAULT_CONFIG_VALUES[_0x26fccd(0x175)],_0x7b0ba2=_0x32557e('COOKIE')||_0x272347?.['cookie']||_0x4216b9['cookie']||undefined,_0x3289e4=_0x32557e(_0x26fccd(0x15d))||_0x272347?.[_0x26fccd(0x167)]||_0x4216b9[_0x26fccd(0x167)]||undefined,_0x1e8fd9=_0x4ba171['format']||_0x32557e(_0x26fccd(0x163))||_0x272347?.[_0x26fccd(0x161)]||_0x4216b9[_0x26fccd(0x161)],_0x3de6b6=normalizeLegacyOutputFormat(_0x1e8fd9),_0x16093b=_0x32557e(_0x26fccd(0x173))||_0x272347?.[_0x26fccd(0x15f)]||_0x4216b9[_0x26fccd(0x15f)],_0x15826e=_0x16093b?Number(_0x16093b)||undefined:undefined,_0x445424=_0x32557e('RISK_LEVEL')||_0x32557e(_0x26fccd(0x177))||_0x272347?.['riskLevel']||_0x4216b9[_0x26fccd(0x17b)]||_0x4216b9['maxRisk'],_0x286457=_0x445424===_0x26fccd(0x16c)||_0x445424==='write'?_0x445424:DEFAULT_CONFIG_VALUES[_0x26fccd(0x17b)],_0x3a37b6=_0x32557e(_0x26fccd(0x17d)),_0x185da2=_0x3a37b6==='1'||_0x3a37b6===_0x26fccd(0x169),_0x5a669e=_0x272347?.[_0x26fccd(0x15a)]||_0x4216b9[_0x26fccd(0x15a)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x4b38dd=isDaily(normalizeEnv(String(_0x1f93e3)))?_0x26fccd(0x165):'production';return{'appCode':typeof _0x27b6a7==='string'&&_0x27b6a7[_0x26fccd(0x16b)]()?_0x27b6a7[_0x26fccd(0x16b)]():undefined,'env':_0x4b38dd,'locale':_0x4287e2,'cookie':_0x7b0ba2,'accessKey':_0x3289e4,'format':_0x3de6b6,'pageSize':_0x15826e,'riskLevel':_0x286457,'verbose':_0x185da2,'apiDir':_0x5a669e,'apps':_0x2343d6,'defaultApp':_0x4133c4,'currentApp':_0x384414?_0xf00263:undefined,'explicitAppName':_0x5e1ae3};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2371db,_0x166da0){const _0x3608b8=a197_0x12e8,_0x592f16=_0x2371db();while(!![]){try{const _0x47d66f=parseInt(_0x3608b8(0x157))/0x1+-parseInt(_0x3608b8(0x163))/0x2*(-parseInt(_0x3608b8(0x15c))/0x3)+-parseInt(_0x3608b8(0x15a))/0x4+parseInt(_0x3608b8(0x161))/0x5+parseInt(_0x3608b8(0x158))/0x6*(parseInt(_0x3608b8(0x15b))/0x7)+parseInt(_0x3608b8(0x15e))/0x8+parseInt(_0x3608b8(0x15f))/0x9*(-parseInt(_0x3608b8(0x15d))/0xa);if(_0x47d66f===_0x166da0)break;else _0x592f16['push'](_0x592f16['shift']());}catch(_0x4c7edd){_0x592f16['push'](_0x592f16['shift']());}}}(a197_0x3ce8,0x84247));function a197_0x12e8(_0x570713,_0x45dae1){_0x570713=_0x570713-0x157;const _0x3ce835=a197_0x3ce8();let _0x12e8e9=_0x3ce835[_0x570713];return _0x12e8e9;}import{getIsSessionValid}from'../auth/is-session-valid.js';function a197_0x3ce8(){const _0x2abdd4=['370mLWJHO','8353944PIYNBm','609597hWXoyS','authRequired','2234260oiHhxU','../auth/get-cookie.js','358PTVkxf','700476laUOsH','390NYZFDM','cookie','3914016iTUZGv','96607dLuMRW','15708CwSSzQ'];a197_0x3ce8=function(){return _0x2abdd4;};return a197_0x3ce8();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x4743f8){const _0x599632=a197_0x12e8,{getCookie:_0x20d228}=await import(_0x599632(0x162)),_0x3da630=_0x4743f8[_0x599632(0x159)]||_0x20d228(),_0x4b3956=_0x3da630?await getIsSessionValid():![];return{'cookie':_0x3da630,'isLoggedIn':_0x4b3956,async 'getOrLogin'(){const _0x5f1e62=_0x599632;if(_0x3da630&&_0x4b3956)return _0x3da630;throw CliErrors[_0x5f1e62(0x160)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a197_0x121869=a197_0x8580;(function(_0x85008,_0x4b7fa6){const _0x38741c=a197_0x8580,_0x16812c=_0x85008();while(!![]){try{const _0x3e370f=-parseInt(_0x38741c(0x118))/0x1*(-parseInt(_0x38741c(0x13d))/0x2)+parseInt(_0x38741c(0x143))/0x3*(parseInt(_0x38741c(0x125))/0x4)+-parseInt(_0x38741c(0x146))/0x5+parseInt(_0x38741c(0x119))/0x6+-parseInt(_0x38741c(0x137))/0x7*(-parseInt(_0x38741c(0x12c))/0x8)+-parseInt(_0x38741c(0x138))/0x9+-parseInt(_0x38741c(0x12e))/0xa*(parseInt(_0x38741c(0x127))/0xb);if(_0x3e370f===_0x4b7fa6)break;else _0x16812c['push'](_0x16812c['shift']());}catch(_0x3129df){_0x16812c['push'](_0x16812c['shift']());}}}(a197_0xf1a1,0xcab5e));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=a197_0x121869(0x11e);export const CONFIG_NAMES=[a197_0x121869(0x11e),'.lovrabet.json',a197_0x121869(0x130)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x2a1686=>_0x2a1686!==NEW_CONFIG_NAME);function a197_0xf1a1(){const _0x21716e=['get','warn','1005915AEuhIR','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','1dgZchz','5382576Tdfpyt','app','migrated','keys','utf8','.rabetbase.json','Global','silent','empty','apps','apiDir','message','5004OqIFdi','pageSize','314017ueaAaT','trim','appcode','length','string','40bNPonN','inherit','130GhwxAY','object','.lovrabetrc','data','error','riskLevel','set','accessKey','Project','405713bbGBDy','11667501VGjQLc','cwd','format','defaultApp','config','744866vlTOpK','locale','status','stringify','cookie','env','2733XAjsMz'];a197_0xf1a1=function(){return _0x21716e;};return a197_0xf1a1();}const normalizedWriteCache=new Map();export function resolveConfigPath(_0x1107ce){for(const _0x171e68 of CONFIG_NAMES){const _0x33c798=resolve(_0x1107ce,_0x171e68);if(existsSync(_0x33c798))return _0x33c798;}return undefined;}export function findProjectRootDirectory(_0x140ea7=process[a197_0x121869(0x139)]()){let _0x390e13=resolve(_0x140ea7);const {root:_0x2b84f2}=parse(_0x390e13),_0xa9979b=homedir();while(!![]){if(resolveConfigPath(_0x390e13)){if(_0x390e13===_0xa9979b)break;return _0x390e13;}if(_0x390e13===_0x2b84f2||_0x390e13===_0xa9979b)break;const _0x50d0fc=dirname(_0x390e13);if(_0x50d0fc===_0x390e13)break;_0x390e13=_0x50d0fc;}return resolve(_0x140ea7);}export function getProjectConfigPath(){const _0x5103ce=a197_0x121869;return resolveConfigPath(process[_0x5103ce(0x139)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x16f6e5){const _0x13bd52=a197_0x121869;if(!existsSync(_0x16f6e5))return{'status':'missing'};try{const _0x4e8c1b=readFileSync(_0x16f6e5,{'encoding':_0x13bd52(0x11d)});if(!_0x4e8c1b?.['trim']())return{'status':_0x13bd52(0x121)};const _0x53a4b6=JSON['parse'](_0x4e8c1b);return{'status':'ok','data':_0x53a4b6};}catch(_0x5f00d4){return{'status':'error','message':_0x5f00d4 instanceof Error?_0x5f00d4[_0x13bd52(0x124)]:String(_0x5f00d4)};}}function parseCliConfigJsonFile(_0x40996c,_0x1d2572,_0x442dbb){const _0x29eb83=a197_0x121869,_0x235c0c=inspectCliConfigJsonFile(_0x40996c);if(_0x235c0c[_0x29eb83(0x13f)]==='missing'||_0x235c0c['status']===_0x29eb83(0x121))return{};if(_0x235c0c[_0x29eb83(0x13f)]==='ok')return _0x235c0c[_0x29eb83(0x131)];return _0x1d2572===_0x29eb83(0x145)&&_0x442dbb&&console[_0x29eb83(0x132)](CLI_BIN_NAME+':\x20'+_0x442dbb+_0x29eb83(0x117)+_0x40996c+'\x0a\x20\x20'+_0x235c0c['message']),{};}function normalizeLegacyConfigShape(_0x15ef02){const _0x31a057=a197_0x121869;if(!_0x15ef02||typeof _0x15ef02!==_0x31a057(0x12f))return{'config':{},'migrated':![]};const _0x471b82={..._0x15ef02},_0x4c08ec=_0x471b82[_0x31a057(0x122)]&&typeof _0x471b82['apps']===_0x31a057(0x12f)?{..._0x471b82['apps']}:{},_0x5f5aa9=Object[_0x31a057(0x11c)](_0x4c08ec)[_0x31a057(0x12a)],_0x45b8a7=_0x471b82[_0x31a057(0x129)]||_0x471b82[_0x31a057(0x11a)];let _0x28da19=![];if(_0x45b8a7&&_0x5f5aa9===0x0){const _0x1d707c=typeof _0x471b82[_0x31a057(0x13b)]===_0x31a057(0x12b)&&_0x471b82[_0x31a057(0x13b)]['trim']()?_0x471b82[_0x31a057(0x13b)]:String(_0x45b8a7)['trim']();_0x4c08ec[_0x1d707c]={'appcode':String(_0x45b8a7)[_0x31a057(0x128)](),..._0x471b82['env']!=null?{'env':_0x471b82[_0x31a057(0x142)]}:{},..._0x471b82[_0x31a057(0x123)]!=null?{'apiDir':_0x471b82[_0x31a057(0x123)]}:{},..._0x471b82['cookie']!=null?{'cookie':_0x471b82[_0x31a057(0x141)]}:{},..._0x471b82['accessKey']!=null?{'accessKey':_0x471b82['accessKey']}:{},..._0x471b82[_0x31a057(0x13a)]!=null?{'format':_0x471b82[_0x31a057(0x13a)]}:{},..._0x471b82[_0x31a057(0x126)]!=null?{'pageSize':_0x471b82[_0x31a057(0x126)]}:{},..._0x471b82[_0x31a057(0x133)]!=null?{'riskLevel':_0x471b82[_0x31a057(0x133)]}:{},..._0x471b82[_0x31a057(0x13e)]!=null?{'locale':_0x471b82[_0x31a057(0x13e)]}:{}},_0x471b82[_0x31a057(0x122)]=_0x4c08ec;if(!_0x471b82['defaultApp'])_0x471b82[_0x31a057(0x13b)]=_0x1d707c;_0x28da19=!![];}return(_0x31a057(0x129)in _0x471b82||_0x31a057(0x11a)in _0x471b82)&&(delete _0x471b82[_0x31a057(0x129)],delete _0x471b82[_0x31a057(0x11a)],_0x28da19=!![]),{'config':_0x471b82,'migrated':_0x28da19};}function writeNormalizedConfigIfNeeded(_0x204d8b,_0x5202bb){const _0x5c7cef=a197_0x121869,_0x5c26c1=JSON[_0x5c7cef(0x140)](_0x5202bb,null,0x2)+'\x0a';if(normalizedWriteCache[_0x5c7cef(0x144)](_0x204d8b)===_0x5c26c1)return;writeConfigFile(_0x204d8b,_0x5202bb),normalizedWriteCache[_0x5c7cef(0x134)](_0x204d8b,_0x5c26c1);}function parseAndNormalizeConfig(_0xc5e22d,_0x9352f3,_0x2e9caf){const _0x53ffcc=a197_0x121869,_0x45f072=parseCliConfigJsonFile(_0xc5e22d,_0x9352f3,_0x2e9caf),_0x9c1ff0=normalizeLegacyConfigShape(_0x45f072);if(_0x9c1ff0[_0x53ffcc(0x11b)])try{writeNormalizedConfigIfNeeded(_0xc5e22d,_0x9c1ff0['config']);}catch{}return _0x9c1ff0[_0x53ffcc(0x13c)];}export function loadRawConfigLayers(_0x11ebec){const _0x57d29e=a197_0x121869;let _0x4638bb={},_0x50cabf={};const _0x1cb918=resolveConfigPath(homedir());_0x1cb918&&(_0x4638bb=parseAndNormalizeConfig(_0x1cb918,_0x57d29e(0x145),_0x57d29e(0x11f)));const _0x10ece3=_0x11ebec??findProjectRootDirectory(),_0x3fe2de=resolveConfigPath(_0x10ece3);return _0x3fe2de&&(_0x50cabf=parseAndNormalizeConfig(_0x3fe2de,_0x57d29e(0x145),_0x57d29e(0x136))),{'globalPath':_0x1cb918,'projectPath':_0x3fe2de,'globalConfig':_0x4638bb,'projectConfig':_0x50cabf};}const INHERIT_WHITELIST=[a197_0x121869(0x141),a197_0x121869(0x135),a197_0x121869(0x13e),'format',a197_0x121869(0x133),'pageSize'];export function mergeRawConfigLayers(_0x382477){const _0x9f5053=a197_0x121869,{globalConfig:_0x20c62f,projectConfig:_0x3c4b96}=_0x382477,_0x360f94=Object[_0x9f5053(0x11c)](_0x3c4b96)[_0x9f5053(0x12a)]>0x0;if(!_0x360f94)return mergeGlobalOnly(_0x20c62f);if(_0x3c4b96[_0x9f5053(0x12d)]===!![])return mergeFullInherit(_0x20c62f,_0x3c4b96);if(_0x3c4b96['inherit']===![])return mergeIsolated(_0x3c4b96);return mergeProjectFirst(_0x20c62f,_0x3c4b96);}function mergeGlobalOnly(_0x458c41){const _0x1040c6=a197_0x121869,_0x5d401d={..._0x458c41},_0x7f307b=_0x458c41[_0x1040c6(0x122)]&&typeof _0x458c41['apps']===_0x1040c6(0x12f)?_0x458c41[_0x1040c6(0x122)]:{};if(Object[_0x1040c6(0x11c)](_0x7f307b)[_0x1040c6(0x12a)]>0x0)_0x5d401d[_0x1040c6(0x122)]=_0x7f307b;if(_0x458c41[_0x1040c6(0x13b)])_0x5d401d[_0x1040c6(0x13b)]=_0x458c41['defaultApp'];else{const _0xea208f=Object['keys'](_0x7f307b);if(_0xea208f[_0x1040c6(0x12a)]>0x0)_0x5d401d[_0x1040c6(0x13b)]=_0xea208f[0x0];}return _0x5d401d;}function mergeIsolated(_0x1642a6){const _0x11ea86=a197_0x121869,_0x46de3e={..._0x1642a6};delete _0x46de3e['inherit'];const _0x2a6254=_0x1642a6['apps']&&typeof _0x1642a6[_0x11ea86(0x122)]===_0x11ea86(0x12f)?_0x1642a6[_0x11ea86(0x122)]:{};Object[_0x11ea86(0x11c)](_0x2a6254)[_0x11ea86(0x12a)]>0x0?_0x46de3e[_0x11ea86(0x122)]=_0x2a6254:delete _0x46de3e[_0x11ea86(0x122)];if(_0x11ea86(0x13b)in _0x1642a6)_0x46de3e[_0x11ea86(0x13b)]=_0x1642a6['defaultApp'];else Object['keys'](_0x2a6254)[_0x11ea86(0x12a)]>0x0?_0x46de3e['defaultApp']=Object[_0x11ea86(0x11c)](_0x2a6254)[0x0]:delete _0x46de3e[_0x11ea86(0x13b)];return _0x46de3e;}function mergeProjectFirst(_0x5aa03c,_0x1ac7d0){const _0x13692e=a197_0x121869,_0x998cab={..._0x1ac7d0};delete _0x998cab[_0x13692e(0x12d)];for(const _0x35dfc1 of INHERIT_WHITELIST){!(_0x35dfc1 in _0x998cab)&&_0x35dfc1 in _0x5aa03c&&(_0x998cab[_0x35dfc1]=_0x5aa03c[_0x35dfc1]);}const _0x47f215=_0x1ac7d0[_0x13692e(0x122)]&&typeof _0x1ac7d0[_0x13692e(0x122)]===_0x13692e(0x12f)?_0x1ac7d0[_0x13692e(0x122)]:{};Object['keys'](_0x47f215)['length']>0x0?_0x998cab[_0x13692e(0x122)]=_0x47f215:delete _0x998cab[_0x13692e(0x122)];if('defaultApp'in _0x1ac7d0)_0x998cab[_0x13692e(0x13b)]=_0x1ac7d0['defaultApp'];else Object[_0x13692e(0x11c)](_0x47f215)[_0x13692e(0x12a)]>0x0?_0x998cab['defaultApp']=Object[_0x13692e(0x11c)](_0x47f215)[0x0]:delete _0x998cab['defaultApp'];return _0x998cab;}function mergeFullInherit(_0x13b1ec,_0x36c85e){const _0x47561f=a197_0x121869,_0x61fb6c=_0x13b1ec[_0x47561f(0x122)]&&typeof _0x13b1ec[_0x47561f(0x122)]===_0x47561f(0x12f)?_0x13b1ec['apps']:{},_0xc978b0=_0x36c85e['apps']&&typeof _0x36c85e[_0x47561f(0x122)]==='object'?_0x36c85e['apps']:{},_0x12e624={..._0x61fb6c,..._0xc978b0},_0x163d75={..._0x13b1ec,..._0x36c85e};delete _0x163d75[_0x47561f(0x12d)];if(Object['keys'](_0x12e624)['length']>0x0)_0x163d75[_0x47561f(0x122)]=_0x12e624;if(_0x47561f(0x13b)in _0x36c85e)_0x163d75['defaultApp']=_0x36c85e[_0x47561f(0x13b)];else{if(Object['keys'](_0xc978b0)[_0x47561f(0x12a)]>0x0)_0x163d75[_0x47561f(0x13b)]=Object[_0x47561f(0x11c)](_0xc978b0)[0x0];else{if(_0x13b1ec[_0x47561f(0x13b)])_0x163d75[_0x47561f(0x13b)]=_0x13b1ec[_0x47561f(0x13b)];else{const _0x26e784=Object[_0x47561f(0x11c)](_0x61fb6c);if(_0x26e784[_0x47561f(0x12a)]>0x0)_0x163d75['defaultApp']=_0x26e784[0x0];}}}return _0x163d75;}export function readRawConfigWithLayers(_0x5dca95){const _0x3cb633=loadRawConfigLayers(_0x5dca95);return{'config':mergeRawConfigLayers(_0x3cb633),'layers':_0x3cb633};}export function readRawConfig(_0x5adb3a){return mergeRawConfigLayers(loadRawConfigLayers(_0x5adb3a));}function a197_0x8580(_0x59ca40,_0x19de43){_0x59ca40=_0x59ca40-0x117;const _0xf1a1e0=a197_0xf1a1();let _0x858002=_0xf1a1e0[_0x59ca40];return _0x858002;}export function readConfigFile(_0x38b543){const _0x5ab1f4=a197_0x121869;return parseAndNormalizeConfig(_0x38b543,_0x5ab1f4(0x120));}export function writeConfigFile(_0x5af5cc,_0x10d282){const _0x10c2bf=a197_0x121869,_0x425a5a=dirname(_0x5af5cc);!existsSync(_0x425a5a)&&mkdirSync(_0x425a5a,{'recursive':!![]});const _0x4d240b=_0x5af5cc+'.tmp';try{writeFileSync(_0x4d240b,JSON[_0x10c2bf(0x140)](_0x10d282,null,0x2)+'\x0a',{'encoding':_0x10c2bf(0x11d),'mode':0x180}),renameSync(_0x4d240b,_0x5af5cc);}catch(_0x42808c){try{unlinkSync(_0x4d240b);}catch{}throw _0x42808c;}}export function resolveWriteConfigPath(_0x50dcfb){const _0x5a1934=a197_0x121869,_0x3e9200=_0x50dcfb==='project'?process[_0x5a1934(0x139)]():homedir(),_0x8d6a9d=resolveConfigPath(_0x3e9200);return _0x8d6a9d??resolve(_0x3e9200,NEW_CONFIG_NAME);}
|
|
1
|
+
const a198_0x551a16=a198_0x5ba3;(function(_0x45b7b1,_0x24853c){const _0x1224f=a198_0x5ba3,_0x3707c6=_0x45b7b1();while(!![]){try{const _0x5568cd=-parseInt(_0x1224f(0xb6))/0x1*(-parseInt(_0x1224f(0xb1))/0x2)+parseInt(_0x1224f(0xd1))/0x3*(-parseInt(_0x1224f(0xdd))/0x4)+-parseInt(_0x1224f(0xb5))/0x5*(parseInt(_0x1224f(0xc5))/0x6)+parseInt(_0x1224f(0xdc))/0x7*(parseInt(_0x1224f(0xd4))/0x8)+parseInt(_0x1224f(0xd9))/0x9+-parseInt(_0x1224f(0xd3))/0xa+-parseInt(_0x1224f(0xbd))/0xb*(-parseInt(_0x1224f(0xb3))/0xc);if(_0x5568cd===_0x24853c)break;else _0x3707c6['push'](_0x3707c6['shift']());}catch(_0x1cdbef){_0x3707c6['push'](_0x3707c6['shift']());}}}(a198_0x2af3,0x7476c));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';function a198_0x5ba3(_0x2868de,_0x2bfb38){_0x2868de=_0x2868de-0xb0;const _0x2af397=a198_0x2af3();let _0x5ba358=_0x2af397[_0x2868de];return _0x5ba358;}function a198_0x2af3(){const _0x2c1e3b=['stringify','1018884yyRSDg','data','migrated','warn','riskLevel','appcode','string','parse','accessKey','apiDir','env','trim','33AJQNNl','object','3963310uLedPR','1502008qWNZLN','format','status','cwd','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','6505263GXZdnP','project','cookie','7URgVzj','244960BYAgWC','missing','locale','pageSize','2LSjIrO','app','5052JVPnvJ','empty','10wTKnHT','5251DEYTRc','utf8','defaultApp','.rabetbase.json','length','message','\x0a\x20\x20','25366IlHKaH','Global','keys','set','apps','error','config'];a198_0x2af3=function(){return _0x2c1e3b;};return a198_0x2af3();}import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a198_0x551a16(0xb9);export const CONFIG_NAMES=[a198_0x551a16(0xb9),'.lovrabet.json','.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x1b733b=>_0x1b733b!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x18994c){for(const _0x112a06 of CONFIG_NAMES){const _0x3babbd=resolve(_0x18994c,_0x112a06);if(existsSync(_0x3babbd))return _0x3babbd;}return undefined;}export function findProjectRootDirectory(_0x35efd7=process[a198_0x551a16(0xd7)]()){let _0xec9c4d=resolve(_0x35efd7);const {root:_0x1c51f7}=parse(_0xec9c4d),_0x928d86=homedir();while(!![]){if(resolveConfigPath(_0xec9c4d)){if(_0xec9c4d===_0x928d86)break;return _0xec9c4d;}if(_0xec9c4d===_0x1c51f7||_0xec9c4d===_0x928d86)break;const _0x19a3e7=dirname(_0xec9c4d);if(_0x19a3e7===_0xec9c4d)break;_0xec9c4d=_0x19a3e7;}return resolve(_0x35efd7);}export function getProjectConfigPath(){const _0x3daf18=a198_0x551a16;return resolveConfigPath(process[_0x3daf18(0xd7)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x28e7a7){const _0x345762=a198_0x551a16;if(!existsSync(_0x28e7a7))return{'status':_0x345762(0xde)};try{const _0x407817=readFileSync(_0x28e7a7,{'encoding':_0x345762(0xb7)});if(!_0x407817?.['trim']())return{'status':_0x345762(0xb4)};const _0x3f51f9=JSON[_0x345762(0xcc)](_0x407817);return{'status':'ok','data':_0x3f51f9};}catch(_0xafa438){return{'status':_0x345762(0xc2),'message':_0xafa438 instanceof Error?_0xafa438[_0x345762(0xbb)]:String(_0xafa438)};}}function parseCliConfigJsonFile(_0x3596e1,_0x40f7d1,_0x3c9adf){const _0x2d434a=a198_0x551a16,_0x342358=inspectCliConfigJsonFile(_0x3596e1);if(_0x342358[_0x2d434a(0xd6)]===_0x2d434a(0xde)||_0x342358['status']===_0x2d434a(0xb4))return{};if(_0x342358['status']==='ok')return _0x342358[_0x2d434a(0xc6)];return _0x40f7d1===_0x2d434a(0xc8)&&_0x3c9adf&&console[_0x2d434a(0xc2)](CLI_BIN_NAME+':\x20'+_0x3c9adf+_0x2d434a(0xd8)+_0x3596e1+_0x2d434a(0xbc)+_0x342358[_0x2d434a(0xbb)]),{};}function normalizeLegacyConfigShape(_0x932c6d){const _0x4e516e=a198_0x551a16;if(!_0x932c6d||typeof _0x932c6d!==_0x4e516e(0xd2))return{'config':{},'migrated':![]};const _0x10baf7={..._0x932c6d},_0x3b4a2a=_0x10baf7[_0x4e516e(0xc1)]&&typeof _0x10baf7[_0x4e516e(0xc1)]==='object'?{..._0x10baf7[_0x4e516e(0xc1)]}:{},_0x495b79=Object[_0x4e516e(0xbf)](_0x3b4a2a)[_0x4e516e(0xba)],_0x4c96ec=_0x10baf7[_0x4e516e(0xca)]||_0x10baf7[_0x4e516e(0xb2)];let _0x42236e=![];if(_0x4c96ec&&_0x495b79===0x0){const _0x196904=typeof _0x10baf7[_0x4e516e(0xb8)]===_0x4e516e(0xcb)&&_0x10baf7[_0x4e516e(0xb8)][_0x4e516e(0xd0)]()?_0x10baf7['defaultApp']:String(_0x4c96ec)['trim']();_0x3b4a2a[_0x196904]={'appcode':String(_0x4c96ec)[_0x4e516e(0xd0)](),..._0x10baf7[_0x4e516e(0xcf)]!=null?{'env':_0x10baf7[_0x4e516e(0xcf)]}:{},..._0x10baf7[_0x4e516e(0xce)]!=null?{'apiDir':_0x10baf7[_0x4e516e(0xce)]}:{},..._0x10baf7[_0x4e516e(0xdb)]!=null?{'cookie':_0x10baf7[_0x4e516e(0xdb)]}:{},..._0x10baf7[_0x4e516e(0xcd)]!=null?{'accessKey':_0x10baf7['accessKey']}:{},..._0x10baf7['format']!=null?{'format':_0x10baf7[_0x4e516e(0xd5)]}:{},..._0x10baf7[_0x4e516e(0xb0)]!=null?{'pageSize':_0x10baf7[_0x4e516e(0xb0)]}:{},..._0x10baf7[_0x4e516e(0xc9)]!=null?{'riskLevel':_0x10baf7[_0x4e516e(0xc9)]}:{},..._0x10baf7[_0x4e516e(0xdf)]!=null?{'locale':_0x10baf7[_0x4e516e(0xdf)]}:{}},_0x10baf7[_0x4e516e(0xc1)]=_0x3b4a2a;if(!_0x10baf7[_0x4e516e(0xb8)])_0x10baf7['defaultApp']=_0x196904;_0x42236e=!![];}return('appcode'in _0x10baf7||_0x4e516e(0xb2)in _0x10baf7)&&(delete _0x10baf7['appcode'],delete _0x10baf7[_0x4e516e(0xb2)],_0x42236e=!![]),{'config':_0x10baf7,'migrated':_0x42236e};}function writeNormalizedConfigIfNeeded(_0x2216a4,_0x16fcac){const _0x36c852=a198_0x551a16,_0x4e5318=JSON[_0x36c852(0xc4)](_0x16fcac,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x2216a4)===_0x4e5318)return;writeConfigFile(_0x2216a4,_0x16fcac),normalizedWriteCache[_0x36c852(0xc0)](_0x2216a4,_0x4e5318);}function parseAndNormalizeConfig(_0x3c860c,_0x52f5a8,_0x148261){const _0x5e0555=a198_0x551a16,_0x2ecac8=parseCliConfigJsonFile(_0x3c860c,_0x52f5a8,_0x148261),_0x3fab61=normalizeLegacyConfigShape(_0x2ecac8);if(_0x3fab61[_0x5e0555(0xc7)])try{writeNormalizedConfigIfNeeded(_0x3c860c,_0x3fab61[_0x5e0555(0xc3)]);}catch{}return _0x3fab61[_0x5e0555(0xc3)];}export function loadRawConfigLayers(_0xbe359c){const _0x73a6f2=a198_0x551a16;let _0x42d9f6={},_0x4a046d={};const _0x4fd8bb=resolveConfigPath(homedir());_0x4fd8bb&&(_0x42d9f6=parseAndNormalizeConfig(_0x4fd8bb,'warn',_0x73a6f2(0xbe)));const _0x35fa4b=_0xbe359c??findProjectRootDirectory(),_0x10fa69=resolveConfigPath(_0x35fa4b);return _0x10fa69&&(_0x4a046d=parseAndNormalizeConfig(_0x10fa69,_0x73a6f2(0xc8),'Project')),{'globalPath':_0x4fd8bb,'projectPath':_0x10fa69,'globalConfig':_0x42d9f6,'projectConfig':_0x4a046d};}const INHERIT_WHITELIST=[a198_0x551a16(0xdb),a198_0x551a16(0xcd),a198_0x551a16(0xdf),a198_0x551a16(0xd5),a198_0x551a16(0xc9),a198_0x551a16(0xb0)];export function mergeRawConfigLayers(_0x47d555){const _0x1027be=a198_0x551a16,{globalConfig:_0x596e51,projectConfig:_0x1668ec}=_0x47d555,_0x39f8e2=Object[_0x1027be(0xbf)](_0x1668ec)[_0x1027be(0xba)]>0x0;if(!_0x39f8e2)return mergeGlobalOnly(_0x596e51);if(_0x1668ec['inherit']===!![])return mergeFullInherit(_0x596e51,_0x1668ec);if(_0x1668ec['inherit']===![])return mergeIsolated(_0x1668ec);return mergeProjectFirst(_0x596e51,_0x1668ec);}function mergeGlobalOnly(_0x136c85){const _0x268252=a198_0x551a16,_0x1c8dbc={..._0x136c85},_0x30391f=_0x136c85[_0x268252(0xc1)]&&typeof _0x136c85['apps']===_0x268252(0xd2)?_0x136c85['apps']:{};if(Object['keys'](_0x30391f)[_0x268252(0xba)]>0x0)_0x1c8dbc[_0x268252(0xc1)]=_0x30391f;if(_0x136c85['defaultApp'])_0x1c8dbc[_0x268252(0xb8)]=_0x136c85['defaultApp'];else{const _0x5bfef5=Object[_0x268252(0xbf)](_0x30391f);if(_0x5bfef5[_0x268252(0xba)]>0x0)_0x1c8dbc[_0x268252(0xb8)]=_0x5bfef5[0x0];}return _0x1c8dbc;}function mergeIsolated(_0x2ed985){const _0x11e267=a198_0x551a16,_0x45b4a0={..._0x2ed985};delete _0x45b4a0['inherit'];const _0x49d209=_0x2ed985[_0x11e267(0xc1)]&&typeof _0x2ed985[_0x11e267(0xc1)]===_0x11e267(0xd2)?_0x2ed985[_0x11e267(0xc1)]:{};Object[_0x11e267(0xbf)](_0x49d209)[_0x11e267(0xba)]>0x0?_0x45b4a0[_0x11e267(0xc1)]=_0x49d209:delete _0x45b4a0['apps'];if(_0x11e267(0xb8)in _0x2ed985)_0x45b4a0[_0x11e267(0xb8)]=_0x2ed985[_0x11e267(0xb8)];else Object[_0x11e267(0xbf)](_0x49d209)[_0x11e267(0xba)]>0x0?_0x45b4a0[_0x11e267(0xb8)]=Object[_0x11e267(0xbf)](_0x49d209)[0x0]:delete _0x45b4a0[_0x11e267(0xb8)];return _0x45b4a0;}function mergeProjectFirst(_0x184dd5,_0x3b5b61){const _0x428042=a198_0x551a16,_0xb335ba={..._0x3b5b61};delete _0xb335ba['inherit'];for(const _0x1b607d of INHERIT_WHITELIST){!(_0x1b607d in _0xb335ba)&&_0x1b607d in _0x184dd5&&(_0xb335ba[_0x1b607d]=_0x184dd5[_0x1b607d]);}const _0x5526dd=_0x3b5b61[_0x428042(0xc1)]&&typeof _0x3b5b61[_0x428042(0xc1)]===_0x428042(0xd2)?_0x3b5b61['apps']:{};Object['keys'](_0x5526dd)[_0x428042(0xba)]>0x0?_0xb335ba[_0x428042(0xc1)]=_0x5526dd:delete _0xb335ba[_0x428042(0xc1)];if(_0x428042(0xb8)in _0x3b5b61)_0xb335ba[_0x428042(0xb8)]=_0x3b5b61['defaultApp'];else Object[_0x428042(0xbf)](_0x5526dd)[_0x428042(0xba)]>0x0?_0xb335ba[_0x428042(0xb8)]=Object['keys'](_0x5526dd)[0x0]:delete _0xb335ba[_0x428042(0xb8)];return _0xb335ba;}function mergeFullInherit(_0x2d76d8,_0xd0c20a){const _0x2b500f=a198_0x551a16,_0x25ed7e=_0x2d76d8[_0x2b500f(0xc1)]&&typeof _0x2d76d8['apps']===_0x2b500f(0xd2)?_0x2d76d8[_0x2b500f(0xc1)]:{},_0x29891d=_0xd0c20a['apps']&&typeof _0xd0c20a[_0x2b500f(0xc1)]==='object'?_0xd0c20a[_0x2b500f(0xc1)]:{},_0x422300={..._0x25ed7e,..._0x29891d},_0xa8603={..._0x2d76d8,..._0xd0c20a};delete _0xa8603['inherit'];if(Object['keys'](_0x422300)[_0x2b500f(0xba)]>0x0)_0xa8603[_0x2b500f(0xc1)]=_0x422300;if(_0x2b500f(0xb8)in _0xd0c20a)_0xa8603['defaultApp']=_0xd0c20a[_0x2b500f(0xb8)];else{if(Object[_0x2b500f(0xbf)](_0x29891d)[_0x2b500f(0xba)]>0x0)_0xa8603[_0x2b500f(0xb8)]=Object[_0x2b500f(0xbf)](_0x29891d)[0x0];else{if(_0x2d76d8[_0x2b500f(0xb8)])_0xa8603['defaultApp']=_0x2d76d8[_0x2b500f(0xb8)];else{const _0x2ccc82=Object[_0x2b500f(0xbf)](_0x25ed7e);if(_0x2ccc82[_0x2b500f(0xba)]>0x0)_0xa8603[_0x2b500f(0xb8)]=_0x2ccc82[0x0];}}}return _0xa8603;}export function readRawConfigWithLayers(_0x3edd96){const _0x5369f1=loadRawConfigLayers(_0x3edd96);return{'config':mergeRawConfigLayers(_0x5369f1),'layers':_0x5369f1};}export function readRawConfig(_0x30bf37){return mergeRawConfigLayers(loadRawConfigLayers(_0x30bf37));}export function readConfigFile(_0x240215){return parseAndNormalizeConfig(_0x240215,'silent');}export function writeConfigFile(_0x486db7,_0xe4f1cc){const _0x24fff6=a198_0x551a16,_0x3a2a90=dirname(_0x486db7);!existsSync(_0x3a2a90)&&mkdirSync(_0x3a2a90,{'recursive':!![]});const _0x2b6a83=_0x486db7+'.tmp';try{writeFileSync(_0x2b6a83,JSON['stringify'](_0xe4f1cc,null,0x2)+'\x0a',{'encoding':_0x24fff6(0xb7),'mode':0x180}),renameSync(_0x2b6a83,_0x486db7);}catch(_0x4f3cf1){try{unlinkSync(_0x2b6a83);}catch{}throw _0x4f3cf1;}}export function resolveWriteConfigPath(_0x6f7fce){const _0x4784d5=a198_0x551a16,_0x41fea6=_0x6f7fce===_0x4784d5(0xda)?process[_0x4784d5(0xd7)]():homedir(),_0xbf8f55=resolveConfigPath(_0x41fea6);return _0xbf8f55??resolve(_0x41fea6,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0xccc63b=a199_0x3987;(function(_0x5dcd0c,_0x806ee3){const _0x45159b=a199_0x3987,_0x11f344=_0x5dcd0c();while(!![]){try{const _0x5bf9ed=-parseInt(_0x45159b(0x79))/0x1*(parseInt(_0x45159b(0x88))/0x2)+parseInt(_0x45159b(0x7f))/0x3*(parseInt(_0x45159b(0x67))/0x4)+parseInt(_0x45159b(0x86))/0x5+-parseInt(_0x45159b(0x6d))/0x6*(parseInt(_0x45159b(0x68))/0x7)+-parseInt(_0x45159b(0x7c))/0x8+-parseInt(_0x45159b(0x65))/0x9*(parseInt(_0x45159b(0x69))/0xa)+parseInt(_0x45159b(0x74))/0xb*(parseInt(_0x45159b(0x6e))/0xc);if(_0x5bf9ed===_0x806ee3)break;else _0x11f344['push'](_0x11f344['shift']());}catch(_0x35f592){_0x11f344['push'](_0x11f344['shift']());}}}(a199_0x5475,0x88a17));import{resolve}from'node:path';function a199_0x3987(_0x1f7396,_0x204acb){_0x1f7396=_0x1f7396-0x65;const _0x54759b=a199_0x5475();let _0x39875d=_0x54759b[_0x1f7396];return _0x39875d;}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 a199_0x5475(){const _0x1e151e=['3JqejpO','values','env','runtimeDomain','./constant/env.js','apiDir','projectConfig','1725880gAoNbE','string','69072ktNVmR','setLogPath','cwd','defaultApp','app','slice','apps','147339QBGJqX','-api.ts','1132476UrTXBl','7LfzMgF','360HiUkGX','https://g.lovrabet.com/dist/lovrabet-skill','setRawCommand','trim','1040574lMcQag','1284QgjpZJ','object','./constant/domain.js','replace','map','cookie','166001VGSXHA','globalConfig','entries','appcode','apiDomain','23FXUJSU','userDomain','template_base_url','1010240hQvxOn','project','argv'];a199_0x5475=function(){return _0x1e151e;};return a199_0x5475();}function env(_0x19def1){return process.env[`RABETBASE_${_0x19def1}`]||process.env[`LOVRABET_${_0x19def1}`]||undefined;}export async function createContext(_0x261f71){const _0x5349d6=a199_0x3987,{config:_0x39c25e,layers:_0x317202}=readRawConfigWithLayers(),_0x85d495=buildConfig(_0x39c25e,_0x261f71,_0x317202),{initEnv:_0x3c8cd3}=await import(_0x5349d6(0x83));if(_0x85d495[_0x5349d6(0x81)])_0x3c8cd3(_0x85d495[_0x5349d6(0x81)]);else _0x261f71[_0x5349d6(0x81)]&&typeof _0x261f71[_0x5349d6(0x81)]===_0x5349d6(0x87)&&_0x3c8cd3(_0x261f71['env']);const {initDomains:_0x244f80,getUserDomain:_0x3480ae,getApiDomain:_0xa3ec67}=await import(_0x5349d6(0x70));_0x244f80({'apiDomain':_0x39c25e[_0x5349d6(0x78)]||undefined,'userDomain':_0x39c25e[_0x5349d6(0x7a)]||undefined,'runtimeDomain':_0x39c25e[_0x5349d6(0x82)]||undefined});const _0x28a223={'apiDomain':_0xa3ec67(),'userDomain':_0x3480ae()},_0x282002=await buildAuth(_0x85d495);logger[_0x5349d6(0x89)](process[_0x5349d6(0x8a)]());const _0x2ddd8a=(CLI_BIN_NAME+'\x20'+process[_0x5349d6(0x7e)][_0x5349d6(0x8d)](0x2)['join']('\x20'))[_0x5349d6(0x6c)]();logger[_0x5349d6(0x6b)](_0x2ddd8a);const {isNonInteractive:_0xe218f8}=await import('./utils/is-non-interactive.js'),_0x5caab4=_0xe218f8(_0x261f71);return{'config':_0x85d495,'auth':_0x282002,'logger':logger,'env':_0x28a223,'nonInteractive':_0x5caab4};}export function buildConfigFromFlags(_0x4ee46a){const {config:_0x155887,layers:_0x2a9d86}=readRawConfigWithLayers();return buildConfig(_0x155887,_0x4ee46a,_0x2a9d86);}export function getConfigAppCode(_0x56abba){const _0x3a758e=a199_0x3987,_0xf217df=readRawConfig(_0x56abba);if(_0xf217df['apps']&&typeof _0xf217df[_0x3a758e(0x8e)]===_0x3a758e(0x6f)){const _0x11a0a3=_0xf217df[_0x3a758e(0x8b)];if(_0x11a0a3&&_0xf217df[_0x3a758e(0x8e)][_0x11a0a3]?.['appcode'])return String(_0xf217df[_0x3a758e(0x8e)][_0x11a0a3]['appcode'])[_0x3a758e(0x6c)]();const _0x5143a2=Object[_0x3a758e(0x80)](_0xf217df[_0x3a758e(0x8e)])[0x0];if(_0x5143a2?.[_0x3a758e(0x77)])return String(_0x5143a2[_0x3a758e(0x77)])['trim']();}const _0x7ff5ae=_0xf217df[_0x3a758e(0x77)]||_0xf217df[_0x3a758e(0x8c)];if(typeof _0x7ff5ae!==_0x3a758e(0x87)||_0x7ff5ae[_0x3a758e(0x6c)]()==='')return undefined;return _0x7ff5ae[_0x3a758e(0x6c)]();}export function getMultiAppConfigs(_0x5ab708=a199_0xccc63b(0x7d),_0x1fa4db){const _0x3be601=a199_0xccc63b,_0x384ff5=loadRawConfigLayers(_0x1fa4db);let _0x416d1b,_0x1efac4;if(_0x5ab708==='merged'){const _0x271116=_0x384ff5['globalConfig'][_0x3be601(0x8e)]&&typeof _0x384ff5[_0x3be601(0x75)][_0x3be601(0x8e)]===_0x3be601(0x6f)?_0x384ff5[_0x3be601(0x75)][_0x3be601(0x8e)]:{},_0x347c0c=_0x384ff5[_0x3be601(0x85)][_0x3be601(0x8e)]&&typeof _0x384ff5[_0x3be601(0x85)][_0x3be601(0x8e)]==='object'?_0x384ff5[_0x3be601(0x85)]['apps']:{};_0x416d1b={..._0x271116,..._0x347c0c};const _0x3f09f8=readRawConfig(_0x1fa4db);_0x1efac4=_0x3f09f8['defaultApp'];}else _0x416d1b=_0x384ff5[_0x3be601(0x85)][_0x3be601(0x8e)],_0x1efac4=_0x384ff5['projectConfig'][_0x3be601(0x8b)];if(!_0x416d1b||typeof _0x416d1b!==_0x3be601(0x6f)||Object['keys'](_0x416d1b)['length']===0x0)return null;return Object[_0x3be601(0x76)](_0x416d1b)[_0x3be601(0x72)](([_0xc127c1,_0x5cc2ad])=>({'name':_0xc127c1,'appcode':_0x5cc2ad?.['appcode']||'','isDefault':_0xc127c1===_0x1efac4,'env':_0x5cc2ad?.[_0x3be601(0x81)],'apiDir':_0x5cc2ad?.[_0x3be601(0x84)],'cookie':_0x5cc2ad?.[_0x3be601(0x73)]||undefined}))['filter'](_0x4e56ba=>_0x4e56ba[_0x3be601(0x77)]);}export function getTemplateBaseUrl(_0x2399ac){const _0x39fdb7=a199_0xccc63b,_0x36c60c=readRawConfig(_0x2399ac);if(_0x36c60c[_0x39fdb7(0x7b)]&&typeof _0x36c60c['template_base_url']===_0x39fdb7(0x87))return _0x36c60c[_0x39fdb7(0x7b)][_0x39fdb7(0x71)](/\/$/,'');return _0x39fdb7(0x6a);}function buildConfig(_0x3a08c7,_0x3ef880,_0x174719){return{...resolveAppConfig({'raw':_0x3a08c7,'flags':_0x3ef880,'layers':_0x174719,'readEnv':env}),'raw':_0x3a08c7};}export function resolveApiFilePath(_0x3b41fd,_0x30290a){const _0x2e2904=a199_0xccc63b,_0x22d970=resolve(process[_0x2e2904(0x8a)](),_0x3b41fd),_0x24d00b=resolve(_0x22d970,'api.ts');if(!_0x30290a)return _0x24d00b;const _0x49c132=readRawConfig(),_0x1d1da9=_0x49c132['apps']&&typeof _0x49c132[_0x2e2904(0x8e)]==='object'?_0x49c132[_0x2e2904(0x8e)]:{},_0x48e3b9=Object[_0x2e2904(0x76)](_0x1d1da9)['find'](([,_0x2d5b41])=>_0x2d5b41?.[_0x2e2904(0x77)]===_0x30290a);if(!_0x48e3b9)return _0x24d00b;const [_0x128be5,_0x3a5cc8]=_0x48e3b9,_0x1a0cdb=typeof _0x49c132['defaultApp']==='string'?_0x49c132[_0x2e2904(0x8b)]:undefined;if(_0x3a5cc8?.[_0x2e2904(0x84)])return _0x24d00b;if(_0x1a0cdb&&_0x128be5!==_0x1a0cdb)return resolve(_0x22d970,_0x128be5+_0x2e2904(0x66));return _0x24d00b;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b8230,_0x3f98b3){const _0x2bd116=a200_0x5241,_0x436499=_0x2b8230();while(!![]){try{const _0x1a52c9=-parseInt(_0x2bd116(0x1f6))/0x1*(parseInt(_0x2bd116(0x1fa))/0x2)+-parseInt(_0x2bd116(0x202))/0x3+-parseInt(_0x2bd116(0x1f8))/0x4*(-parseInt(_0x2bd116(0x206))/0x5)+parseInt(_0x2bd116(0x207))/0x6+parseInt(_0x2bd116(0x200))/0x7+parseInt(_0x2bd116(0x208))/0x8*(-parseInt(_0x2bd116(0x205))/0x9)+-parseInt(_0x2bd116(0x1fd))/0xa*(parseInt(_0x2bd116(0x1fe))/0xb);if(_0x1a52c9===_0x3f98b3)break;else _0x436499['push'](_0x436499['shift']());}catch(_0x58f08c){_0x436499['push'](_0x436499['shift']());}}}(a200_0x581b,0xb3a22));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a200_0x5241(_0x2642e0,_0xc05624){_0x2642e0=_0x2642e0-0x1f4;const _0x581b60=a200_0x581b();let _0x52413b=_0x581b60[_0x2642e0];return _0x52413b;}const cache=new Map();function parseApiFile(_0x36e81d){const _0x188c4e=a200_0x5241,_0x47efd2=[],_0x3d266b=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x56eb05;while((_0x56eb05=_0x3d266b[_0x188c4e(0x1ff)](_0x36e81d))!==null){_0x47efd2[_0x188c4e(0x1f4)]({'datasetCode':_0x56eb05[0x1],'tableName':_0x56eb05[0x2],'name':_0x56eb05[0x3],'alias':_0x56eb05[0x4]});}return _0x47efd2;}export function loadAliasMap(_0x217c3d,_0x92724d,_0x4ddc77){const _0x1a41df=a200_0x5241,_0x310642=_0x4ddc77??resolve(process[_0x1a41df(0x201)](),_0x217c3d,_0x1a41df(0x203));if(cache[_0x1a41df(0x1fc)](_0x310642))return cache[_0x1a41df(0x1f9)](_0x310642);if(!existsSync(_0x310642))return cache[_0x1a41df(0x1fb)](_0x310642,[]),[];try{const _0x4e1ff4=readFileSync(_0x310642,_0x1a41df(0x1f5)),_0x4895fc=parseApiFile(_0x4e1ff4);return cache['set'](_0x310642,_0x4895fc),_0x4895fc;}catch{return cache[_0x1a41df(0x1fb)](_0x310642,[]),[];}}function a200_0x581b(){const _0xd4654a=['579032ZPmzhy','push','utf-8','10wNtFzI','find','335436XTlbUd','get','8786OCriis','set','has','20FHlRAL','8833253FDmVCw','exec','10270946cAwjHy','cwd','3643695GqWzXC','api.ts','alias','45MFaoMj','85QTfrmM','6415998zbxLRx'];a200_0x581b=function(){return _0xd4654a;};return a200_0x581b();}export function resolveAlias(_0x3d7705,_0x3773db,_0x4e01ed,_0xf57c2f){const _0x5e8445=a200_0x5241;if(!_0x3773db)return undefined;const _0x28e9c7=loadAliasMap(_0x3d7705,_0x4e01ed,_0xf57c2f),_0x524275=_0x28e9c7[_0x5e8445(0x1f7)](_0x5169c9=>_0x5169c9[_0x5e8445(0x204)]===_0x3773db);return _0x524275?.['datasetCode'];}export function listAliases(_0x33acf8,_0x305ae3,_0x3cf552){return loadAliasMap(_0x33acf8,_0x305ae3,_0x3cf552);}
|