@lovrabet/rabetbase-cli 2.5.0-beta.4 → 2.5.0-beta.5
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/README.md +28 -0
- 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/api/generate-sdk-config-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/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.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/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.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/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.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-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.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/table-diff-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/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/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.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 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.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/sync.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/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.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/upgrade.js +1 -1
- package/lib/commands/registry.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/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/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.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/domain-config.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/region.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.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.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/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/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/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a206_0x1fdc(){const _0x439be4=['validation','apiDomain','protocol','includes','246486OCEsUb','object','skill-domain','pathname','length','hash','api-domain','runtime-domain','keys','join','\x22\x20is\x20not\x20a\x20valid\x20URL.','cwd','Invalid\x20','domain-config','userDomain','agentDomain','utf8','Unsupported\x20domain\x20config\x20field(s):\x20','1332924hKWcVf','kb-domain',':\x20\x22','20nfKcXY','isArray','trim','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','password','skillDomain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','https:','154495UfFMEC','skillHubDomain','search','799351YWodGj','1DLheWV','str',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','username','6129774Bqaddz','parse','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','270312WquuMF','Invalid\x20domain\x20config\x20JSON:\x20','filter','996036MVpOPo'];a206_0x1fdc=function(){return _0x439be4;};return a206_0x1fdc();}const a206_0x1a9564=a206_0x1ce8;(function(_0x2ecf62,_0x7398ea){const _0x374900=a206_0x1ce8,_0x49001e=_0x2ecf62();while(!![]){try{const _0x207903=parseInt(_0x374900(0xd2))/0x1*(parseInt(_0x374900(0xdc))/0x2)+parseInt(_0x374900(0xe1))/0x3*(-parseInt(_0x374900(0xf6))/0x4)+parseInt(_0x374900(0xce))/0x5+-parseInt(_0x374900(0xf3))/0x6+-parseInt(_0x374900(0xd1))/0x7+-parseInt(_0x374900(0xd9))/0x8+parseInt(_0x374900(0xd6))/0x9;if(_0x207903===_0x7398ea)break;else _0x49001e['push'](_0x49001e['shift']());}catch(_0x1e4bf0){_0x49001e['push'](_0x49001e['shift']());}}}(a206_0x1fdc,0x68c01));import{existsSync,readFileSync}from'node:fs';function a206_0x1ce8(_0x136591,_0x2cef52){_0x136591=_0x136591-0xc9;const _0x1fdce8=a206_0x1fdc();let _0x1ce842=_0x1fdce8[_0x136591];return _0x1ce842;}import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a206_0x1a9564(0xef),a206_0x1a9564(0xde),'runtimeDomain',a206_0x1a9564(0xcb),'kbDomain','appDomain'];const DOMAIN_FLAGS={'userDomain':'user-domain','apiDomain':a206_0x1a9564(0xe7),'runtimeDomain':a206_0x1a9564(0xe8),'skillDomain':a206_0x1a9564(0xe3),'kbDomain':a206_0x1a9564(0xf4),'appDomain':'app-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a206_0x1a9564(0xf0),'platformDomain',a206_0x1a9564(0xcf)];export function normalizeDomainOrigin(_0x2a6cc4,_0x6d77fd){const _0x5bf7ab=a206_0x1a9564;if(typeof _0x6d77fd!=='string'||!_0x6d77fd['trim']())throw CliErrors[_0x5bf7ab(0xdd)](_0x5bf7ab(0xed)+_0x2a6cc4+_0x5bf7ab(0xd4));let _0x3ecbf1;try{_0x3ecbf1=new URL(_0x6d77fd[_0x5bf7ab(0xf8)]());}catch{throw CliErrors['validation']('Invalid\x20'+_0x2a6cc4+_0x5bf7ab(0xf5)+_0x6d77fd+_0x5bf7ab(0xeb));}if(_0x3ecbf1[_0x5bf7ab(0xdf)]!==_0x5bf7ab(0xcd)||_0x3ecbf1[_0x5bf7ab(0xd5)]||_0x3ecbf1[_0x5bf7ab(0xca)]||_0x3ecbf1[_0x5bf7ab(0xe4)]!=='/'&&_0x3ecbf1[_0x5bf7ab(0xe4)]!==''||_0x3ecbf1[_0x5bf7ab(0xd0)]||_0x3ecbf1[_0x5bf7ab(0xe6)])throw CliErrors['validation'](_0x5bf7ab(0xed)+_0x2a6cc4+_0x5bf7ab(0xcc),_0x5bf7ab(0xd8));return _0x3ecbf1['origin'];}export function readDomainConfig(_0x1b1753){const _0x40db8f=a206_0x1a9564,_0x1ea95d=isAbsolute(_0x1b1753)?_0x1b1753:resolve(process[_0x40db8f(0xec)](),_0x1b1753);if(!existsSync(_0x1ea95d))throw CliErrors[_0x40db8f(0xdd)]('Domain\x20config\x20file\x20not\x20found:\x20'+_0x1ea95d);let _0xedcecb;try{_0xedcecb=JSON[_0x40db8f(0xd7)](readFileSync(_0x1ea95d,_0x40db8f(0xf1)));}catch{throw CliErrors['validation'](_0x40db8f(0xda)+_0x1ea95d);}if(!_0xedcecb||typeof _0xedcecb!==_0x40db8f(0xe2)||Array[_0x40db8f(0xf7)](_0xedcecb))throw CliErrors[_0x40db8f(0xdd)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x519800=_0xedcecb,_0x161061=Object[_0x40db8f(0xe9)](_0x519800)[_0x40db8f(0xdb)](_0x22ed8c=>!DOMAIN_CONFIG_FIELDS[_0x40db8f(0xe0)](_0x22ed8c));if(_0x161061[_0x40db8f(0xe5)]>0x0)throw CliErrors[_0x40db8f(0xdd)](_0x40db8f(0xf2)+_0x161061[_0x40db8f(0xea)](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS[_0x40db8f(0xea)](',\x20'));const _0x412cdf={};for(const _0x106f9f of DOMAIN_CONFIG_FIELDS){_0x519800[_0x106f9f]!==undefined&&(_0x412cdf[_0x106f9f]=normalizeDomainOrigin(_0x106f9f,_0x519800[_0x106f9f]));}if(Object['keys'](_0x412cdf)[_0x40db8f(0xe5)]===0x0)throw CliErrors[_0x40db8f(0xdd)](_0x40db8f(0xc9));return _0x412cdf;}export function resolveDomainFlags(_0x38bd9a){const _0x411b3c=a206_0x1a9564,_0x3f4dae=(_0x38bd9a[_0x411b3c(0xd3)](_0x411b3c(0xee))||'')[_0x411b3c(0xf8)](),_0xc34403=_0x3f4dae?readDomainConfig(_0x3f4dae):{};for(const _0xf3e691 of DOMAIN_CONFIG_FIELDS){const _0x190a35=(_0x38bd9a['str'](DOMAIN_FLAGS[_0xf3e691])||'')[_0x411b3c(0xf8)]();if(_0x190a35)_0xc34403[_0xf3e691]=normalizeDomainOrigin(_0xf3e691,_0x190a35);}return _0xc34403;}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x3c02bd=a207_0x15b5;(function(_0x58d49e,_0x151a06){const _0x500ff3=a207_0x15b5,_0x307c22=_0x58d49e();while(!![]){try{const _0x5c9de1=parseInt(_0x500ff3(0x166))/0x1+-parseInt(_0x500ff3(0x17c))/0x2+-parseInt(_0x500ff3(0x15a))/0x3+-parseInt(_0x500ff3(0x170))/0x4*(parseInt(_0x500ff3(0x173))/0x5)+-parseInt(_0x500ff3(0x161))/0x6+-parseInt(_0x500ff3(0x157))/0x7*(-parseInt(_0x500ff3(0x168))/0x8)+parseInt(_0x500ff3(0x165))/0x9;if(_0x5c9de1===_0x151a06)break;else _0x307c22['push'](_0x307c22['shift']());}catch(_0x23c0aa){_0x307c22['push'](_0x307c22['shift']());}}}(a207_0x4f4c,0xa7ace));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';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a207_0x3c02bd(0x169),a207_0x3c02bd(0x164),a207_0x3c02bd(0x171),a207_0x3c02bd(0x16d),a207_0x3c02bd(0x17b),a207_0x3c02bd(0x159),a207_0x3c02bd(0x15c),a207_0x3c02bd(0x179),a207_0x3c02bd(0x15b),a207_0x3c02bd(0x17e),'appDomain'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a207_0x3c02bd(0x160),a207_0x3c02bd(0x17d),a207_0x3c02bd(0x164),a207_0x3c02bd(0x171),'cookie',a207_0x3c02bd(0x169),a207_0x3c02bd(0x16b),a207_0x3c02bd(0x17b),a207_0x3c02bd(0x159),a207_0x3c02bd(0x15c),a207_0x3c02bd(0x179),'skillDomain',a207_0x3c02bd(0x17e),a207_0x3c02bd(0x17f)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x5055a9){const _0xd84411=a207_0x3c02bd;return[..._0x5055a9][_0xd84411(0x182)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x58313b){return TOP_LEVEL_CONFIG_KEYS['has'](_0x58313b);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5906b0=a207_0x3c02bd;return _0x5906b0(0x16c)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a207_0x3c02bd(0x17d),'apiDir':a207_0x3c02bd(0x16b),'cookie':a207_0x3c02bd(0x172),'accessKey':'accessKey','defaultFormat':a207_0x3c02bd(0x171),'pageSize':a207_0x3c02bd(0x181),'riskLevel':a207_0x3c02bd(0x16d),'locale':a207_0x3c02bd(0x164)};export function getAppProfileFlagDefs(){const _0x49795b=a207_0x3c02bd;return[{'name':_0x49795b(0x17d),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x49795b(0x16b),'type':_0x49795b(0x15f),'description':_0x49795b(0x15e)},{'name':'cookie','type':_0x49795b(0x15f),'description':_0x49795b(0x158),'hidden':!![]},{'name':_0x49795b(0x169),'type':_0x49795b(0x15f),'description':_0x49795b(0x17a),'hidden':!![]},{'name':'defaultFormat','type':_0x49795b(0x15f),'description':_0x49795b(0x16a),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x49795b(0x156),'description':_0x49795b(0x178)},{'name':_0x49795b(0x16d),'type':_0x49795b(0x15f),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x49795b(0x164),'type':_0x49795b(0x15f),'description':_0x49795b(0x16f)}];}export function collectAppProfileOverrides(_0x42ef6b){const _0x26cc76={};for(const [_0x1d1f7d,_0xdf4b63]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x570466=_0x42ef6b(_0x1d1f7d);if(!_0x570466)continue;_0x26cc76[_0xdf4b63]=_0xdf4b63==='pageSize'?Number(_0x570466):_0x570466;}return _0x26cc76;}export function buildAppProfileListFields(_0x4a2ab4){const _0x175fd9=a207_0x3c02bd;return{'env':_0x4a2ab4[_0x175fd9(0x17d)]??null,'apiDir':_0x4a2ab4[_0x175fd9(0x16b)]??null,'hasCookie':!!_0x4a2ab4[_0x175fd9(0x172)],'hasAccessKey':!!_0x4a2ab4['accessKey'],'format':_0x4a2ab4[_0x175fd9(0x171)]??null,'pageSize':_0x4a2ab4['pageSize']??null,'riskLevel':_0x4a2ab4[_0x175fd9(0x16d)]??null,'locale':_0x4a2ab4[_0x175fd9(0x164)]??null};}export function buildAppDoctorFields(_0x2836f7,_0x1a8415){const _0x1b0bcc=a207_0x3c02bd;return{'env':{'value':_0x2836f7[_0x1b0bcc(0x17d)]||_0x1a8415[_0x1b0bcc(0x17d)],'source':_0x2836f7['env']?_0x1b0bcc(0x176):'inherit'},'apiDir':{'value':_0x2836f7[_0x1b0bcc(0x16b)]||_0x1a8415[_0x1b0bcc(0x16b)],'source':_0x2836f7['apiDir']?'app':'inherit'},'cookie':{'value':_0x2836f7[_0x1b0bcc(0x172)]||_0x1a8415[_0x1b0bcc(0x172)],'source':_0x2836f7[_0x1b0bcc(0x172)]?'app':'inherit'},'accessKey':{'value':_0x2836f7['accessKey']||_0x1a8415[_0x1b0bcc(0x169)],'source':_0x2836f7[_0x1b0bcc(0x169)]?_0x1b0bcc(0x176):'inherit'}};}export function buildCanonicalAppConfig(_0x103231,_0x405e50){const _0x539693=a207_0x3c02bd,_0x22cc88=_0x103231['map'](_0x5ea634=>String(_0x5ea634||'')[_0x539693(0x163)]())[_0x539693(0x175)](Boolean);if(_0x22cc88[_0x539693(0x174)]===0x0)return{};const _0x5baaf5={};for(const _0x4c9aa2 of _0x22cc88){_0x5baaf5[_0x4c9aa2]=_0x405e50?{'appcode':_0x4c9aa2,'env':_0x405e50}:{'appcode':_0x4c9aa2};}return _0x22cc88['length']>0x1?{'apps':_0x5baaf5,'defaultApp':_0x22cc88[0x0]}:{'apps':_0x5baaf5};}export function normalizeStoredDefaultApp(_0x2457f5,_0x2d9cd3){const _0x53c3e5=a207_0x3c02bd,_0xd25fdd=_0x2457f5[_0x53c3e5(0x16e)]&&typeof _0x2457f5['apps']===_0x53c3e5(0x177)?_0x2457f5[_0x53c3e5(0x16e)]:{},_0x19600e=Object['keys'](_0xd25fdd);if(_0x19600e[_0x53c3e5(0x174)]<=0x1)return delete _0x2457f5[_0x53c3e5(0x167)],undefined;const _0x13b727=typeof _0x2457f5[_0x53c3e5(0x167)]===_0x53c3e5(0x15f)&&_0xd25fdd[_0x2457f5[_0x53c3e5(0x167)]]?_0x2457f5[_0x53c3e5(0x167)]:undefined,_0x5240a1=_0x2d9cd3&&_0xd25fdd[_0x2d9cd3]?_0x2d9cd3:_0x13b727;if(_0x5240a1)return _0x2457f5[_0x53c3e5(0x167)]=_0x5240a1,_0x5240a1;return delete _0x2457f5[_0x53c3e5(0x167)],undefined;}export function buildCanonicalProjectConfig(_0x2b4daa,_0x1b914c){const _0x3166b8=a207_0x3c02bd,{appCodes:appCodes=[],env:_0x250580,metadata:_0x234c1e}=_0x1b914c,_0x4d0cb0={..._0x2b4daa,..._0x234c1e||{}};delete _0x4d0cb0[_0x3166b8(0x160)],delete _0x4d0cb0[_0x3166b8(0x176)];if(_0x250580)_0x4d0cb0[_0x3166b8(0x17d)]=_0x250580;else!_0x4d0cb0[_0x3166b8(0x17d)]&&(_0x4d0cb0[_0x3166b8(0x17d)]=DEFAULT_CONFIG_VALUES['env']);const _0x1a9a34=buildCanonicalAppConfig(appCodes,_0x4d0cb0[_0x3166b8(0x17d)]);if(Object[_0x3166b8(0x15d)](_0x1a9a34)['length']>0x0){_0x4d0cb0['apps']=_0x1a9a34['apps'];if(_0x1a9a34['defaultApp'])_0x4d0cb0['defaultApp']=_0x1a9a34[_0x3166b8(0x167)];else delete _0x4d0cb0[_0x3166b8(0x167)];}return _0x4d0cb0;}function a207_0x15b5(_0x36492e,_0x2c742d){_0x36492e=_0x36492e-0x156;const _0x4f4cd7=a207_0x4f4c();let _0x15b529=_0x4f4cd7[_0x36492e];return _0x15b529;}const LOCALE_MAP={'zh':a207_0x3c02bd(0x162),'zh-cn':a207_0x3c02bd(0x162),'zh_cn':a207_0x3c02bd(0x162),'en':a207_0x3c02bd(0x180),'en-us':a207_0x3c02bd(0x180),'en_us':a207_0x3c02bd(0x180)};function a207_0x4f4c(){const _0x432f53=['Auth\x20cookie','userDomain','2087247dnLBWM','skillDomain','apiDomain','keys','API\x20directory\x20path','string','appcode','4481142STKWLh','zh-CN','trim','locale','15684336YmznKr','1227727KhkGQq','defaultApp','77400ezxCba','accessKey','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','apiDir','Config\x20key\x20(','riskLevel','apps','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','562652TsFgmN','format','cookie','45WIBaAR','length','filter','app','object','Default\x20page\x20size','runtimeDomain','Access\x20key','region','1336670ceFIky','env','kbDomain','appDomain','en-US','pageSize','join','number','791smrtUv'];a207_0x4f4c=function(){return _0x432f53;};return a207_0x4f4c();}export function normalizeLocale(_0x1c8516){if(!_0x1c8516)return null;return LOCALE_MAP[_0x1c8516['toLowerCase']()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x644901=a208_0x3235;(function(_0x40912d,_0x19a7e5){const _0x123aa2=a208_0x3235,_0x23b086=_0x40912d();while(!![]){try{const _0x18fa95=parseInt(_0x123aa2(0x146))/0x1+parseInt(_0x123aa2(0x14b))/0x2*(-parseInt(_0x123aa2(0x14a))/0x3)+parseInt(_0x123aa2(0x144))/0x4+-parseInt(_0x123aa2(0x147))/0x5+parseInt(_0x123aa2(0x14c))/0x6*(-parseInt(_0x123aa2(0x14d))/0x7)+parseInt(_0x123aa2(0x14e))/0x8*(-parseInt(_0x123aa2(0x149))/0x9)+parseInt(_0x123aa2(0x14f))/0xa;if(_0x18fa95===_0x19a7e5)break;else _0x23b086['push'](_0x23b086['shift']());}catch(_0x3a9a09){_0x23b086['push'](_0x23b086['shift']());}}}(a208_0x53e9,0x3881b));export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';function a208_0x53e9(){const _0x40e85a=['1478880jDfXAF','/config/index.json','675UnadNG','3TyvXwL','169514nKvSEf','85812CkDMnV','91gvUNdv','16040ytMlEK','1423290YKiLYc','1745596aYfUzj','/templates/projects','369557IjBRSx'];a208_0x53e9=function(){return _0x40e85a;};return a208_0x53e9();}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a208_0x644901(0x148);function a208_0x3235(_0x2ee05e,_0x3efee6){_0x2ee05e=_0x2ee05e-0x144;const _0x53e9a=a208_0x53e9();let _0x323570=_0x53e9a[_0x2ee05e];return _0x323570;}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a208_0x644901(0x145);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a209_0x37c4c5=a209_0x1955;function a209_0x28dc(){const _0x29f461=['skip-imports','Override\x20appcode','tags','13306URKkvo','appcode','Environment','name','title','verbose','Read\x20value\x20from\x20environment\x20variable','type','Parent\x20menu\x20id','json\x20|\x20pretty\x20|\x20compress','expectedCount','Title','watch','description','map','sqlcode','sqlname','Select\x20app\x20profile\x20by\x20name','sql-name','4520037OpltCz','taskId','Expected\x20current\x20menu\x20path','Search\x20query','code','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','clear','locale','operation','Confirm\x20destructive\x20action','Tags','rabetbase','Output\x20path','app','Target\x20path','help','fromEnv','DB\x20ID','target','Schemas','SQL\x20code','non-interactive','Maximum\x20search\x20hits','Watch\x20mode','string','10STsGJl','yes','Type\x20filter','project','dry-run','Reveal\x20sensitive\x20value','13711632XQHxkz','Rabetbase\x20CLI','parent-id','SQL\x20name','stdin','221QowXct','SQL\x20string','query','file','expectedChildrenCount','Use\x20project\x20config\x20scope','reveal','dbid','3650244XdZUsq','Expected\x20affected\x20count','boolean','Config\x20key','Function\x20node','env','Config\x20value','Description\x20file','format','operation-type','2451670TOAHnK','keyword','all','datasetcode','<expr>','File\x20path','pagesize','output','production\x20|\x20daily','Clear','dryRun','label','Asynchronous\x20task\x20ID','schemas','function-node','dbId','Use\x20remote','<name>','sqlName','sort','params','@lovrabet/rabetbase-cli','JSON\x20params','375571sbOWCY','46712NBFnal','<code>','page','functionNode','Keyword\x20filter','key','confirm','Menu\x20label','expect-parent-id','42jbfSns','sql','Menu\x20sort\x20value','Operation\x20type','meowKey','force','enableBffSave','skipImports','topk','Skip\x20confirmation\x20for\x20high-risk\x20writes','Verbose\x20output','5GmjgcN','remote','Name','Code\x20filter','603GyelME','132XCjyCF','parentId','value'];a209_0x28dc=function(){return _0x29f461;};return a209_0x28dc();}(function(_0x2bb2d1,_0x163b5c){const _0x4867f9=a209_0x1955,_0x804992=_0x2bb2d1();while(!![]){try{const _0x25a140=parseInt(_0x4867f9(0x14e))/0x1*(parseInt(_0x4867f9(0x117))/0x2)+-parseInt(_0x4867f9(0x12a))/0x3+parseInt(_0x4867f9(0xd6))/0x4*(parseInt(_0x4867f9(0x10c))/0x5)+parseInt(_0x4867f9(0x101))/0x6*(-parseInt(_0x4867f9(0xf7))/0x7)+-parseInt(_0x4867f9(0xf8))/0x8*(parseInt(_0x4867f9(0x110))/0x9)+parseInt(_0x4867f9(0x143))/0xa*(-parseInt(_0x4867f9(0x149))/0xb)+parseInt(_0x4867f9(0x111))/0xc*(parseInt(_0x4867f9(0xe0))/0xd);if(_0x25a140===_0x163b5c)break;else _0x804992['push'](_0x804992['shift']());}catch(_0x1a0766){_0x804992['push'](_0x804992['shift']());}}}(a209_0x28dc,0xe4dad));function a209_0x1955(_0x4d2b61,_0x5e0d76){_0x4d2b61=_0x4d2b61-0xd4;const _0x28dc29=a209_0x28dc();let _0x195562=_0x28dc29[_0x4d2b61];return _0x195562;}export const CLI_BIN_NAME=a209_0x37c4c5(0x135);export const CLI_DISPLAY_NAME=a209_0x37c4c5(0x14a);export const NPM_PACKAGE_NAME=a209_0x37c4c5(0xf5);export const GLOBAL_FLAGS=[{'name':a209_0x37c4c5(0x118),'meowKey':'appcode','type':'string','description':a209_0x37c4c5(0x115),'hint':a209_0x37c4c5(0xf9)},{'name':a209_0x37c4c5(0x137),'meowKey':a209_0x37c4c5(0x137),'type':'string','description':a209_0x37c4c5(0x128),'hint':a209_0x37c4c5(0xf1)},{'name':a209_0x37c4c5(0xdb),'meowKey':a209_0x37c4c5(0xdb),'type':'string','description':a209_0x37c4c5(0x119),'hint':a209_0x37c4c5(0xe8)},{'name':a209_0x37c4c5(0xde),'meowKey':a209_0x37c4c5(0xde),'type':'string','description':'Output\x20format','hint':a209_0x37c4c5(0x120)},{'name':'jq','meowKey':'jq','type':'string','description':a209_0x37c4c5(0x12f),'hint':a209_0x37c4c5(0xe4)},{'name':a209_0x37c4c5(0x147),'meowKey':a209_0x37c4c5(0xea),'type':a209_0x37c4c5(0xd8),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a209_0x37c4c5(0x144),'type':a209_0x37c4c5(0xd8),'description':a209_0x37c4c5(0x10a)},{'name':a209_0x37c4c5(0x13f),'meowKey':'nonInteractive','type':a209_0x37c4c5(0xd8),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':'global','type':a209_0x37c4c5(0xd8),'description':'Use\x20global\x20config\x20scope'},{'name':a209_0x37c4c5(0x146),'meowKey':a209_0x37c4c5(0x146),'type':'boolean','description':a209_0x37c4c5(0x153)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a209_0x37c4c5(0x139),'meowKey':a209_0x37c4c5(0x139),'type':'boolean','description':'Show\x20help'},{'name':a209_0x37c4c5(0x131),'meowKey':a209_0x37c4c5(0x131),'type':a209_0x37c4c5(0x142),'description':'App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','hidden':!![],'hint':'zh-CN\x20|\x20en-US'},{'name':a209_0x37c4c5(0x11a),'meowKey':a209_0x37c4c5(0x11a),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x10e),'hidden':!![]},{'name':'title','meowKey':a209_0x37c4c5(0x11b),'type':'string','description':a209_0x37c4c5(0x122),'hidden':!![]},{'name':a209_0x37c4c5(0x150),'meowKey':a209_0x37c4c5(0x150),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x12d),'hidden':!![]},{'name':a209_0x37c4c5(0x109),'meowKey':a209_0x37c4c5(0x109),'type':'string','description':a209_0x37c4c5(0x140),'hidden':!![]},{'name':a209_0x37c4c5(0x130),'meowKey':a209_0x37c4c5(0x130),'type':a209_0x37c4c5(0xd8),'description':a209_0x37c4c5(0xe9),'hidden':!![]},{'name':a209_0x37c4c5(0x123),'meowKey':a209_0x37c4c5(0x123),'type':a209_0x37c4c5(0xd8),'description':a209_0x37c4c5(0x141),'hidden':!![]},{'name':a209_0x37c4c5(0xe7),'meowKey':'output','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x136),'hidden':!![]},{'name':a209_0x37c4c5(0xf4),'meowKey':a209_0x37c4c5(0xf4),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xf6),'hidden':!![]},{'name':a209_0x37c4c5(0xe3),'meowKey':a209_0x37c4c5(0xe3),'type':'string','description':'Dataset\x20code','hidden':!![]},{'name':'all','meowKey':a209_0x37c4c5(0xe2),'type':a209_0x37c4c5(0xd8),'description':'Apply\x20to\x20all','hidden':!![]},{'name':'enable-bff-save','meowKey':a209_0x37c4c5(0x107),'type':'boolean','description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a209_0x37c4c5(0x142),'description':'Record\x20ID','hidden':!![]},{'name':a209_0x37c4c5(0x11e),'meowKey':a209_0x37c4c5(0x11e),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x145),'hidden':!![]},{'name':a209_0x37c4c5(0x151),'meowKey':'file','type':'string','description':a209_0x37c4c5(0xe5),'hidden':!![]},{'name':a209_0x37c4c5(0x126),'meowKey':a209_0x37c4c5(0x126),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x13e),'hidden':!![]},{'name':a209_0x37c4c5(0x129),'meowKey':a209_0x37c4c5(0xf2),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x14c),'hidden':!![]},{'name':a209_0x37c4c5(0x127),'meowKey':a209_0x37c4c5(0x127),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a209_0x37c4c5(0xef),'type':a209_0x37c4c5(0x142),'description':'DB\x20ID','hidden':!![]},{'name':a209_0x37c4c5(0xd5),'meowKey':a209_0x37c4c5(0xd5),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x13b),'hidden':!![]},{'name':a209_0x37c4c5(0x124),'meowKey':a209_0x37c4c5(0x124),'type':a209_0x37c4c5(0x142),'description':'Description','hidden':!![]},{'name':'description-file','meowKey':'descriptionFile','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xdd),'hidden':!![]},{'name':'page','meowKey':a209_0x37c4c5(0xfa),'type':'string','description':'Page\x20number','hidden':!![]},{'name':a209_0x37c4c5(0xe6),'meowKey':'pagesize','type':a209_0x37c4c5(0x142),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a209_0x37c4c5(0xe1),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xfc),'hidden':!![]},{'name':a209_0x37c4c5(0x12e),'meowKey':'code','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x10f),'hidden':!![]},{'name':a209_0x37c4c5(0x102),'meowKey':a209_0x37c4c5(0x102),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x14f),'hidden':!![]},{'name':a209_0x37c4c5(0xed),'meowKey':'schemas','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x13d),'hidden':!![]},{'name':a209_0x37c4c5(0x132),'meowKey':'operation','type':'string','description':a209_0x37c4c5(0x104),'hidden':!![]},{'name':'target','meowKey':a209_0x37c4c5(0x13c),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x138),'hidden':!![]},{'name':a209_0x37c4c5(0x114),'meowKey':a209_0x37c4c5(0x108),'type':'boolean','description':'Skip\x20import\x20generation','hidden':!![]},{'name':a209_0x37c4c5(0xfd),'meowKey':a209_0x37c4c5(0xfd),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xd9),'hidden':!![]},{'name':a209_0x37c4c5(0x113),'meowKey':a209_0x37c4c5(0x113),'type':'string','description':a209_0x37c4c5(0xdc),'hidden':!![]},{'name':a209_0x37c4c5(0x116),'meowKey':a209_0x37c4c5(0x116),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x134),'hidden':!![]},{'name':a209_0x37c4c5(0x14d),'meowKey':'stdin','type':a209_0x37c4c5(0xd8),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a209_0x37c4c5(0x13a),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x11d),'hidden':!![]},{'name':a209_0x37c4c5(0xd4),'meowKey':'reveal','type':a209_0x37c4c5(0xd8),'description':a209_0x37c4c5(0x148),'hidden':!![]},{'name':a209_0x37c4c5(0x106),'meowKey':a209_0x37c4c5(0x106),'type':a209_0x37c4c5(0xd8),'description':'Force\x20overwrite','hidden':!![]},{'name':a209_0x37c4c5(0xfe),'meowKey':'confirm','type':'boolean','description':a209_0x37c4c5(0x133),'hidden':!![]},{'name':a209_0x37c4c5(0x10d),'meowKey':a209_0x37c4c5(0x10d),'type':a209_0x37c4c5(0xd8),'description':a209_0x37c4c5(0xf0),'hidden':!![]},{'name':a209_0x37c4c5(0x11c),'meowKey':a209_0x37c4c5(0x11c),'type':a209_0x37c4c5(0xd8),'description':a209_0x37c4c5(0x10b),'hidden':!![]},{'name':'expected-count','meowKey':a209_0x37c4c5(0x121),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xd7),'hidden':!![]},{'name':a209_0x37c4c5(0xeb),'meowKey':'label','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xff),'hidden':!![]},{'name':a209_0x37c4c5(0x14b),'meowKey':a209_0x37c4c5(0x112),'type':'string','description':a209_0x37c4c5(0x11f),'hidden':!![]},{'name':a209_0x37c4c5(0xf3),'meowKey':a209_0x37c4c5(0xf3),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x103),'hidden':!![]},{'name':a209_0x37c4c5(0x100),'meowKey':'expectParentId','type':a209_0x37c4c5(0x142),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x12c),'hidden':!![]},{'name':'expected-children-count','meowKey':a209_0x37c4c5(0x152),'type':a209_0x37c4c5(0x142),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a209_0x37c4c5(0x12b),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xec),'hidden':!![]},{'name':a209_0x37c4c5(0xdf),'meowKey':'operationType','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x104),'hidden':!![]},{'name':a209_0x37c4c5(0xee),'meowKey':a209_0x37c4c5(0xfb),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xda),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a209_0x37c4c5(0x137),a209_0x37c4c5(0xdb),a209_0x37c4c5(0xde),'jq',a209_0x37c4c5(0x147),a209_0x37c4c5(0x144),a209_0x37c4c5(0x13f),'ci']);export function buildMeowFlags(){const _0x4ae69c=a209_0x37c4c5;return Object['fromEntries'](GLOBAL_FLAGS[_0x4ae69c(0x125)](_0x1faacb=>[_0x1faacb[_0x4ae69c(0x105)],{'type':_0x1faacb[_0x4ae69c(0x11e)]}]));}
|
|
1
|
+
const a209_0x198bee=a209_0x53a6;(function(_0x404620,_0x3e3d15){const _0x1ebdb2=a209_0x53a6,_0x1ee0f5=_0x404620();while(!![]){try{const _0x538459=-parseInt(_0x1ebdb2(0x14b))/0x1*(parseInt(_0x1ebdb2(0x176))/0x2)+parseInt(_0x1ebdb2(0x163))/0x3*(-parseInt(_0x1ebdb2(0x167))/0x4)+-parseInt(_0x1ebdb2(0x117))/0x5*(-parseInt(_0x1ebdb2(0x132))/0x6)+-parseInt(_0x1ebdb2(0x12e))/0x7+-parseInt(_0x1ebdb2(0x15c))/0x8+parseInt(_0x1ebdb2(0x13d))/0x9*(-parseInt(_0x1ebdb2(0x18d))/0xa)+-parseInt(_0x1ebdb2(0x158))/0xb*(-parseInt(_0x1ebdb2(0x128))/0xc);if(_0x538459===_0x3e3d15)break;else _0x1ee0f5['push'](_0x1ee0f5['shift']());}catch(_0x22abec){_0x1ee0f5['push'](_0x1ee0f5['shift']());}}}(a209_0x5872,0xad707));function a209_0x53a6(_0x322e3f,_0x1f6d32){_0x322e3f=_0x322e3f-0x10b;const _0x587245=a209_0x5872();let _0x53a61c=_0x587245[_0x322e3f];return _0x53a61c;}export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a209_0x198bee(0x17c);export const NPM_PACKAGE_NAME=a209_0x198bee(0x12c);export const GLOBAL_FLAGS=[{'name':a209_0x198bee(0x129),'meowKey':a209_0x198bee(0x129),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x15e),'hint':'<code>'},{'name':'app','meowKey':a209_0x198bee(0x17d),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x18b),'hint':a209_0x198bee(0x14c)},{'name':a209_0x198bee(0x17a),'meowKey':a209_0x198bee(0x17a),'type':'string','description':'Environment','hint':a209_0x198bee(0x193)},{'name':a209_0x198bee(0x17f),'meowKey':a209_0x198bee(0x17f),'type':a209_0x198bee(0x12f),'description':'Output\x20format','hint':a209_0x198bee(0x121)},{'name':'jq','meowKey':'jq','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x14f),'hint':'<expr>'},{'name':a209_0x198bee(0x183),'meowKey':a209_0x198bee(0x161),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x13b)},{'name':'yes','meowKey':a209_0x198bee(0x124),'type':'boolean','description':a209_0x198bee(0x157)},{'name':'non-interactive','meowKey':a209_0x198bee(0x14e),'type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a209_0x198bee(0x116),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x133)},{'name':a209_0x198bee(0x11b),'meowKey':'project','type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x191)},{'name':'ci','meowKey':'ci','type':a209_0x198bee(0x16d),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a209_0x198bee(0x15a),'meowKey':'help','type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x112)},{'name':a209_0x198bee(0x174),'meowKey':a209_0x198bee(0x174),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x169),'hidden':!![],'hint':a209_0x198bee(0x16a)},{'name':a209_0x198bee(0x17b),'meowKey':'name','type':'string','description':a209_0x198bee(0x151),'hidden':!![]},{'name':'title','meowKey':a209_0x198bee(0x114),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x110),'hidden':!![]},{'name':a209_0x198bee(0x12a),'meowKey':'query','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x156),'hidden':!![]},{'name':a209_0x198bee(0x125),'meowKey':a209_0x198bee(0x125),'type':a209_0x198bee(0x12f),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a209_0x198bee(0x175),'meowKey':a209_0x198bee(0x175),'type':a209_0x198bee(0x16d),'description':'Clear','hidden':!![]},{'name':a209_0x198bee(0x11c),'meowKey':'watch','type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x178),'hidden':!![]},{'name':a209_0x198bee(0x18a),'meowKey':a209_0x198bee(0x18a),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x195),'hidden':!![]},{'name':a209_0x198bee(0x171),'meowKey':a209_0x198bee(0x171),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x170),'hidden':!![]},{'name':'datasetcode','meowKey':a209_0x198bee(0x12b),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x168),'hidden':!![]},{'name':a209_0x198bee(0x164),'meowKey':a209_0x198bee(0x164),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x127),'hidden':!![]},{'name':a209_0x198bee(0x138),'meowKey':a209_0x198bee(0x15f),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x134),'hidden':!![]},{'name':'id','meowKey':'id','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x119),'hidden':!![]},{'name':'type','meowKey':a209_0x198bee(0x159),'type':'string','description':'Type\x20filter','hidden':!![]},{'name':a209_0x198bee(0x181),'meowKey':a209_0x198bee(0x181),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x11d),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x17e),'hidden':!![]},{'name':a209_0x198bee(0x187),'meowKey':a209_0x198bee(0x148),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x145),'hidden':!![]},{'name':a209_0x198bee(0x18c),'meowKey':a209_0x198bee(0x18c),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x145),'hidden':!![]},{'name':a209_0x198bee(0x143),'meowKey':a209_0x198bee(0x118),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x135),'hidden':!![]},{'name':a209_0x198bee(0x182),'meowKey':'dbid','type':'string','description':a209_0x198bee(0x135),'hidden':!![]},{'name':a209_0x198bee(0x10d),'meowKey':'description','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x13c),'hidden':!![]},{'name':a209_0x198bee(0x113),'meowKey':a209_0x198bee(0x172),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x111),'hidden':!![]},{'name':a209_0x198bee(0x15d),'meowKey':a209_0x198bee(0x15d),'type':'string','description':a209_0x198bee(0x16b),'hidden':!![]},{'name':a209_0x198bee(0x140),'meowKey':'pagesize','type':a209_0x198bee(0x12f),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':'keyword','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x162),'hidden':!![]},{'name':'code','meowKey':a209_0x198bee(0x186),'type':'string','description':'Code\x20filter','hidden':!![]},{'name':'sql','meowKey':a209_0x198bee(0x190),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x180),'hidden':!![]},{'name':a209_0x198bee(0x123),'meowKey':a209_0x198bee(0x123),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x173),'hidden':!![]},{'name':a209_0x198bee(0x177),'meowKey':a209_0x198bee(0x177),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x153),'hidden':!![]},{'name':'target','meowKey':a209_0x198bee(0x15b),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x14a),'hidden':!![]},{'name':'skip-imports','meowKey':a209_0x198bee(0x149),'type':a209_0x198bee(0x16d),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a209_0x198bee(0x142),'meowKey':a209_0x198bee(0x142),'type':'string','description':'Config\x20key','hidden':!![]},{'name':a209_0x198bee(0x16f),'meowKey':'value','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x139),'hidden':!![]},{'name':'tags','meowKey':'tags','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x150),'hidden':!![]},{'name':a209_0x198bee(0x12d),'meowKey':a209_0x198bee(0x12d),'type':'boolean','description':a209_0x198bee(0x14d),'hidden':!![]},{'name':a209_0x198bee(0x192),'meowKey':a209_0x198bee(0x120),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x131),'hidden':!![]},{'name':a209_0x198bee(0x147),'meowKey':'reveal','type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x188),'hidden':!![]},{'name':a209_0x198bee(0x165),'meowKey':'force','type':'boolean','description':a209_0x198bee(0x194),'hidden':!![]},{'name':a209_0x198bee(0x16e),'meowKey':a209_0x198bee(0x16e),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x13a),'hidden':!![]},{'name':'remote','meowKey':a209_0x198bee(0x16c),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x13f),'hidden':!![]},{'name':a209_0x198bee(0x160),'meowKey':a209_0x198bee(0x160),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x13e),'hidden':!![]},{'name':a209_0x198bee(0x130),'meowKey':'expectedCount','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x152),'hidden':!![]},{'name':a209_0x198bee(0x115),'meowKey':a209_0x198bee(0x115),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x185),'hidden':!![]},{'name':'parent-id','meowKey':a209_0x198bee(0x184),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x11a),'hidden':!![]},{'name':a209_0x198bee(0x10f),'meowKey':a209_0x198bee(0x10f),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x146),'hidden':!![]},{'name':a209_0x198bee(0x11e),'meowKey':a209_0x198bee(0x126),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x10e),'hidden':!![]},{'name':a209_0x198bee(0x141),'meowKey':'expectPath','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x18e),'hidden':!![]},{'name':a209_0x198bee(0x122),'meowKey':a209_0x198bee(0x10c),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x154),'hidden':!![]},{'name':'menu-ids','meowKey':a209_0x198bee(0x144),'type':a209_0x198bee(0x12f),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a209_0x198bee(0x136),'meowKey':a209_0x198bee(0x10b),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x137),'hidden':!![]},{'name':a209_0x198bee(0x189),'meowKey':a209_0x198bee(0x11f),'type':'string','description':a209_0x198bee(0x153),'hidden':!![]},{'name':'function-node','meowKey':'functionNode','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x155),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a209_0x198bee(0x129),a209_0x198bee(0x17d),'env',a209_0x198bee(0x17f),'jq',a209_0x198bee(0x183),a209_0x198bee(0x124),'non-interactive','ci']);function a209_0x5872(){const _0x299a2c=['menuIds','SQL\x20name','Menu\x20sort\x20value','reveal','sqlName','skipImports','Target\x20path','237173VrldKC','<name>','Read\x20value\x20from\x20stdin','nonInteractive','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Tags','Name','Expected\x20affected\x20count','Operation\x20type','Expected\x20current\x20child\x20count','Function\x20node','Search\x20query','Skip\x20confirmation\x20for\x20high-risk\x20writes','187adoQeC','type','help','target','3687008XYbXOd','page','Override\x20appcode','enableBffSave','verbose','dryRun','Keyword\x20filter','6KGWOMh','all','force','map','1199292tdqtPR','Dataset\x20code','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','zh-CN\x20|\x20en-US','Page\x20number','remote','boolean','confirm','value','JSON\x20params','params','descriptionFile','Schemas','locale','clear','4IfwqrI','operation','Watch\x20mode','fromEntries','env','name','Rabetbase\x20CLI','app','SQL\x20code','format','SQL\x20string','file','dbid','dry-run','parentId','Menu\x20label','code','sql-name','Reveal\x20sensitive\x20value','operation-type','output','Select\x20app\x20profile\x20by\x20name','sqlname','5970650vGbBoV','Expected\x20current\x20menu\x20path','meowKey','sql','Use\x20project\x20config\x20scope','from-env','production\x20|\x20daily','Force\x20overwrite','Output\x20path','taskId','expectedChildrenCount','description','Expected\x20current\x20parent\x20menu\x20id','sort','Title','Description\x20file','Show\x20help','description-file','title','label','global','10445UqthLJ','dbId','Record\x20ID','Parent\x20menu\x20id','project','watch','File\x20path','expect-parent-id','operationType','fromEnv','json\x20|\x20pretty\x20|\x20compress','expected-children-count','schemas','yes','topk','expectParentId','Apply\x20to\x20all','2230104Jhjmik','appcode','query','datasetcode','@lovrabet/rabetbase-cli','stdin','4353776RtvgPX','string','expected-count','Read\x20value\x20from\x20environment\x20variable','876CbBvIm','Use\x20global\x20config\x20scope','Enable\x20Backend\x20Function\x20save','DB\x20ID','task-id','Asynchronous\x20task\x20ID','enable-bff-save','Config\x20value','Confirm\x20destructive\x20action','Preview\x20operation\x20without\x20executing','Description','9yYVOEf','Verbose\x20output','Use\x20remote','pagesize','expect-path','key','db-id'];a209_0x5872=function(){return _0x299a2c;};return a209_0x5872();}export function buildMeowFlags(){const _0x33960f=a209_0x198bee;return Object[_0x33960f(0x179)](GLOBAL_FLAGS[_0x33960f(0x166)](_0x54641c=>[_0x54641c[_0x33960f(0x18f)],{'type':_0x54641c[_0x33960f(0x159)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a210_0x1e02(){const _0x49ae10=['2AurlPk','43038TMBYsN','371rmPdky','893060zWYujp','4tFNnjE','799347aUJvSi','830210XjFBab','27XItLqo','12597480EWCkbT','70420kkLcpg','write','production','99752DhBKcq','33FCQptp'];a210_0x1e02=function(){return _0x49ae10;};return a210_0x1e02();}const a210_0x18725f=a210_0x1933;function a210_0x1933(_0x3d3dfd,_0x106f5c){_0x3d3dfd=_0x3d3dfd-0x110;const _0x1e024e=a210_0x1e02();let _0x19334b=_0x1e024e[_0x3d3dfd];return _0x19334b;}(function(_0x3bf6fe,_0x3172a1){const _0x387886=a210_0x1933,_0x504c87=_0x3bf6fe();while(!![]){try{const _0x5bc5e1=-parseInt(_0x387886(0x11c))/0x1+-parseInt(_0x387886(0x113))/0x2*(parseInt(_0x387886(0x118))/0x3)+parseInt(_0x387886(0x117))/0x4*(parseInt(_0x387886(0x116))/0x5)+parseInt(_0x387886(0x114))/0x6*(-parseInt(_0x387886(0x115))/0x7)+parseInt(_0x387886(0x111))/0x8*(-parseInt(_0x387886(0x11a))/0x9)+-parseInt(_0x387886(0x119))/0xa*(parseInt(_0x387886(0x112))/0xb)+parseInt(_0x387886(0x11b))/0xc;if(_0x5bc5e1===_0x3172a1)break;else _0x504c87['push'](_0x504c87['shift']());}catch(_0x1a9c09){_0x504c87['push'](_0x504c87['shift']());}}}(a210_0x1e02,0x36e7e));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a210_0x18725f(0x110),'format':'compress','locale':'en-US','riskLevel':a210_0x18725f(0x11d),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a211_0x20af5a=a211_0x54bd;(function(_0x485e5c,_0x467ce5){const _0x473614=a211_0x54bd,_0x14bd11=_0x485e5c();while(!![]){try{const _0x2d58e5=parseInt(_0x473614(0x17f))/0x1*(-parseInt(_0x473614(0x1a7))/0x2)+-parseInt(_0x473614(0x180))/0x3*(parseInt(_0x473614(0x19c))/0x4)+parseInt(_0x473614(0x185))/0x5+parseInt(_0x473614(0x1a9))/0x6*(-parseInt(_0x473614(0x1ae))/0x7)+parseInt(_0x473614(0x192))/0x8+-parseInt(_0x473614(0x18a))/0x9+parseInt(_0x473614(0x198))/0xa;if(_0x2d58e5===_0x467ce5)break;else _0x14bd11['push'](_0x14bd11['shift']());}catch(_0x268a00){_0x14bd11['push'](_0x14bd11['shift']());}}}(a211_0x59b2,0x75706));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,activeRegion=DEFAULT_LOVRABET_REGION;const REGION_DOMAINS={'cn':{'production':{'user':a211_0x20af5a(0x194),'api':a211_0x20af5a(0x1a5),'runtime':a211_0x20af5a(0x18d),'skill':a211_0x20af5a(0x19a),'kb':a211_0x20af5a(0x1a5),'app':a211_0x20af5a(0x1b2)},'nonProduction':{'user':a211_0x20af5a(0x187),'api':'https://daily-api.lovrabet.com','runtime':a211_0x20af5a(0x1a0),'skill':a211_0x20af5a(0x182),'kb':a211_0x20af5a(0x193),'app':a211_0x20af5a(0x19d)}},'id':{'production':{'user':a211_0x20af5a(0x184),'api':'https://api.lovrabet.id','runtime':a211_0x20af5a(0x1b0),'skill':a211_0x20af5a(0x1a4),'kb':a211_0x20af5a(0x1af),'app':a211_0x20af5a(0x189)},'nonProduction':{'user':'https://user-daily.lovrabet.id','api':a211_0x20af5a(0x1a3),'runtime':a211_0x20af5a(0x1aa),'skill':'https://skills-daily.lovrabet.id','kb':a211_0x20af5a(0x1a3),'app':a211_0x20af5a(0x199)}},'global':{'production':{'user':a211_0x20af5a(0x1a8),'api':a211_0x20af5a(0x190),'runtime':a211_0x20af5a(0x181),'skill':'https://skills.lovrabet.ai','kb':a211_0x20af5a(0x190),'app':'https://app.lovrabet.ai'},'nonProduction':{'user':'https://user-daily.lovrabet.ai','api':a211_0x20af5a(0x188),'runtime':'https://daily-runtime.lovrabet.ai','skill':a211_0x20af5a(0x191),'kb':'https://daily-api.lovrabet.ai','app':a211_0x20af5a(0x183)}}};function getActiveRegionDomains(){const _0x35a9f9=a211_0x20af5a;return REGION_DOMAINS[activeRegion][isProduction(getEnv())?_0x35a9f9(0x1a1):_0x35a9f9(0x1a2)];}export function initDomains(_0x380087){const _0x4f689a=a211_0x20af5a;customApiDomain=_0x380087?.[_0x4f689a(0x1a6)],customUserDomain=_0x380087?.[_0x4f689a(0x197)],customRuntimeDomain=_0x380087?.[_0x4f689a(0x19e)],customSkillDomain=_0x380087?.[_0x4f689a(0x186)],customKbDomain=_0x380087?.[_0x4f689a(0x18b)],customAppDomain=_0x380087?.[_0x4f689a(0x19b)],activeRegion=_0x380087?.[_0x4f689a(0x196)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a211_0x20af5a(0x19f)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a211_0x20af5a(0x18c)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a211_0x20af5a(0x1ac)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a211_0x20af5a(0x1ab)];export const getActiveRegion=()=>activeRegion;function a211_0x59b2(){const _0x5a7ce7=['https://user.lovrabet.com','trim','region','userDomain','5989250MECPDe','https://daily.lovrabet.id','https://skills.lovrabet.com','appDomain','135668saafeh','https://daily.lovrabet.com','runtimeDomain','api','https://daily-runtime.lovrabet.com','production','nonProduction','https://daily-api.lovrabet.id','https://skills.lovrabet.id','https://api.lovrabet.com','apiDomain','377328LDPvMK','https://user.lovrabet.ai','919626bWKXja','https://daily-runtime.lovrabet.id','app','skill','origin','21bHmVrp','https://api.lovrabet.id','https://runtime.lovrabet.id','/web-app/app/','https://app.lovrabet.com','1eZNXyb','51lSjSwx','https://runtime.lovrabet.ai','https://skills-daily.lovrabet.com','https://daily.lovrabet.ai','https://user.lovrabet.id','4438230kNhTKz','skillDomain','https://user-daily.lovrabet.com','https://daily-api.lovrabet.ai','https://app.lovrabet.id','2703321YKTDHd','kbDomain','runtime','https://runtime.lovrabet.com','hostname','global','https://api.lovrabet.ai','https://skills-daily.lovrabet.ai','4159152AcXrBV','https://daily-api.lovrabet.com'];a211_0x59b2=function(){return _0x5a7ce7;};return a211_0x59b2();}export function getSdkClientRoutingConfig(){const _0x311990=a211_0x20af5a;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x311990(0x18c)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion===_0x311990(0x18f))return{'runtimeDomain':getRuntimeDomain()};return{};}function a211_0x54bd(_0x32f043,_0x4500d1){_0x32f043=_0x32f043-0x17f;const _0x59b2ef=a211_0x59b2();let _0x54bd2e=_0x59b2ef[_0x32f043];return _0x54bd2e;}export const getAppBaseUrl=_0x22eb4f=>{const _0x425444=a211_0x20af5a,_0xe9a214=encodeURIComponent(_0x22eb4f[_0x425444(0x195)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0xe9a214:getAppDomain()+_0x425444(0x1b1)+_0xe9a214;};export const getPublishedAppDomain=_0x5db205=>{const _0x49ba65=a211_0x20af5a,_0x118d74=new URL(getAppDomain());return _0x118d74[_0x49ba65(0x18e)]=_0x5db205[_0x49ba65(0x195)]()+'.'+_0x118d74[_0x49ba65(0x18e)],_0x118d74[_0x49ba65(0x1ad)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a212_0x597f(_0x524fff,_0x46df68){_0x524fff=_0x524fff-0x14a;const _0x5193b7=a212_0x5193();let _0x597f6d=_0x5193b7[_0x524fff];return _0x597f6d;}const a212_0x282beb=a212_0x597f;(function(_0x14e347,_0x38aa25){const _0xb3266d=a212_0x597f,_0x21f2f4=_0x14e347();while(!![]){try{const _0x3a156b=parseInt(_0xb3266d(0x156))/0x1+parseInt(_0xb3266d(0x153))/0x2+-parseInt(_0xb3266d(0x14d))/0x3*(parseInt(_0xb3266d(0x151))/0x4)+-parseInt(_0xb3266d(0x150))/0x5*(-parseInt(_0xb3266d(0x157))/0x6)+parseInt(_0xb3266d(0x14c))/0x7*(parseInt(_0xb3266d(0x154))/0x8)+parseInt(_0xb3266d(0x14a))/0x9+-parseInt(_0xb3266d(0x14e))/0xa;if(_0x3a156b===_0x38aa25)break;else _0x21f2f4['push'](_0x21f2f4['shift']());}catch(_0x29e202){_0x21f2f4['push'](_0x21f2f4['shift']());}}}(a212_0x5193,0xd1c80));export const RABETBASE_ENV_VALUES=[a212_0x282beb(0x152),a212_0x282beb(0x155)];export function normalizeEnv(_0x50aaa1){const _0x4501d3=a212_0x282beb;return _0x50aaa1==='online'?_0x4501d3(0x152):_0x50aaa1;}export function isProduction(_0x53d3f0){const _0x2c5086=a212_0x282beb;return normalizeEnv(_0x53d3f0)===_0x2c5086(0x152);}export function isDaily(_0x4a0347){return normalizeEnv(_0x4a0347)==='daily';}function a212_0x5193(){const _0x3616cf=['726eFFHAN','5900337gXKFoJ','dev','35fWkHxj','9903RWyGKg','10259950ClzcAr','development','29245EyMmzz','76dxBkHJ','production','580936wcxzHc','226832pcbEIv','daily','152418ClfOJa'];a212_0x5193=function(){return _0x3616cf;};return a212_0x5193();}export function isDev(_0x1d433d){const _0x59d8a8=a212_0x282beb,_0x4ee411=normalizeEnv(_0x1d433d);return _0x4ee411===_0x59d8a8(0x14f)||_0x4ee411===_0x59d8a8(0x14b);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a212_0x282beb(0x152));export function getEnv(){return env;}export function initEnv(_0x5d93ea){env=normalizeEnv(_0x5d93ea);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a213_0xe29eb1=a213_0x454e;function a213_0x454e(_0x57d33f,_0x1bab59){_0x57d33f=_0x57d33f-0x114;const _0x5445eb=a213_0x5445();let _0x454e95=_0x5445eb[_0x57d33f];return _0x454e95;}(function(_0x465fd6,_0x1e6fc6){const _0x3333fb=a213_0x454e,_0x297169=_0x465fd6();while(!![]){try{const _0x1c8ee0=parseInt(_0x3333fb(0x119))/0x1+parseInt(_0x3333fb(0x11e))/0x2+parseInt(_0x3333fb(0x117))/0x3+parseInt(_0x3333fb(0x118))/0x4+parseInt(_0x3333fb(0x115))/0x5+parseInt(_0x3333fb(0x114))/0x6*(-parseInt(_0x3333fb(0x11b))/0x7)+-parseInt(_0x3333fb(0x11d))/0x8*(parseInt(_0x3333fb(0x116))/0x9);if(_0x1c8ee0===_0x1e6fc6)break;else _0x297169['push'](_0x297169['shift']());}catch(_0x240fcd){_0x297169['push'](_0x297169['shift']());}}}(a213_0x5445,0x6ba38));function a213_0x5445(){const _0x522a8b=['1750344enCgTF','6jusryu','3346135LyhyUb','2176731LCZjyp','1896342LsDkAJ','2890460IHRpJk','347438ARATEV','compress','1016603rCFkqc','pretty','88BaXwFp'];a213_0x5445=function(){return _0x522a8b;};return a213_0x5445();}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a213_0xe29eb1(0x11c),a213_0xe29eb1(0x11a)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a214_0x5a1f07=a214_0x51f6;(function(_0x5a4801,_0x207441){const _0x24683b=a214_0x51f6,_0x561487=_0x5a4801();while(!![]){try{const _0x575ab8=parseInt(_0x24683b(0xc8))/0x1+-parseInt(_0x24683b(0xcc))/0x2+-parseInt(_0x24683b(0xca))/0x3+parseInt(_0x24683b(0xce))/0x4+-parseInt(_0x24683b(0xd0))/0x5*(-parseInt(_0x24683b(0xcf))/0x6)+parseInt(_0x24683b(0xcb))/0x7+-parseInt(_0x24683b(0xcd))/0x8;if(_0x575ab8===_0x207441)break;else _0x561487['push'](_0x561487['shift']());}catch(_0x1b81bf){_0x561487['push'](_0x561487['shift']());}}}(a214_0x4c0c,0xd0b07));function a214_0x51f6(_0x5ca416,_0x49cf0b){_0x5ca416=_0x5ca416-0xc8;const _0x4c0caa=a214_0x4c0c();let _0x51f6a2=_0x4c0caa[_0x5ca416];return _0x51f6a2;}export const DEFAULT_API_DIR=a214_0x5a1f07(0xc9);function a214_0x4c0c(){const _0x28cae3=['2291846uDxgRx','15766368mLRowR','5387904ffTDHF','1259694iAenou','35HmXwnE','510137nkUaaI','./src/api','2862396OgBiJw','11192202uPMmfN'];a214_0x4c0c=function(){return _0x28cae3;};return a214_0x4c0c();}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a215_0x3a924b=a215_0x25fd;(function(_0x200ee4,_0x2d2829){const _0x37e257=a215_0x25fd,_0x5de000=_0x200ee4();while(!![]){try{const _0x430dc1=-parseInt(_0x37e257(0x89))/0x1*(parseInt(_0x37e257(0x90))/0x2)+-parseInt(_0x37e257(0x96))/0x3+-parseInt(_0x37e257(0x8b))/0x4*(parseInt(_0x37e257(0x8a))/0x5)+parseInt(_0x37e257(0x8e))/0x6*(parseInt(_0x37e257(0x92))/0x7)+-parseInt(_0x37e257(0x8d))/0x8+parseInt(_0x37e257(0x8c))/0x9+parseInt(_0x37e257(0x95))/0xa;if(_0x430dc1===_0x2d2829)break;else _0x5de000['push'](_0x5de000['shift']());}catch(_0x31bcdd){_0x5de000['push'](_0x5de000['shift']());}}}(a215_0x3c69,0x30f26));function a215_0x3c69(){const _0x447d29=['global','7080070aqgdYf','1082799HtTFZJ','380615RcZwhV','5gYcXpx','460892MAswiI','1222344jGBtIz','1212952RQSsfV','2190318JcBDxa','indonesia','2enqgaI','includes','7NENWUm','string'];a215_0x3c69=function(){return _0x447d29;};return a215_0x3c69();}export const LOVRABET_REGION_VALUES=['cn','id',a215_0x3a924b(0x94)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];function a215_0x25fd(_0x5b4055,_0x2108ea){_0x5b4055=_0x5b4055-0x89;const _0x3c691d=a215_0x3c69();let _0x25fd02=_0x3c691d[_0x5b4055];return _0x25fd02;}export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x53103e){const _0x5d8eb5=a215_0x3a924b;return typeof _0x53103e===_0x5d8eb5(0x93)&&LOVRABET_REGION_VALUES[_0x5d8eb5(0x91)](_0x53103e);}export function isEnabledLovrabetRegion(_0x4b6e1d){const _0x285f4b=a215_0x3a924b;return typeof _0x4b6e1d===_0x285f4b(0x93)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x4b6e1d);}export function normalizeLovrabetRegion(_0x3b2356){const _0x5b19ef=a215_0x3a924b;if(_0x3b2356==='china')return'cn';if(_0x3b2356===_0x5b19ef(0x8f))return'id';return isLovrabetRegion(_0x3b2356)?_0x3b2356:DEFAULT_LOVRABET_REGION;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a216_0x2a0df9=a216_0x4e42;(function(_0x762cc,_0x51ed57){const _0x3b29d6=a216_0x4e42,_0x22d2a1=_0x762cc();while(!![]){try{const _0x2f1069=parseInt(_0x3b29d6(0x1f5))/0x1*(parseInt(_0x3b29d6(0x1f6))/0x2)+-parseInt(_0x3b29d6(0x1fb))/0x3+parseInt(_0x3b29d6(0x1fd))/0x4+-parseInt(_0x3b29d6(0x1fc))/0x5*(parseInt(_0x3b29d6(0x1f9))/0x6)+parseInt(_0x3b29d6(0x1ff))/0x7+parseInt(_0x3b29d6(0x1f7))/0x8+parseInt(_0x3b29d6(0x1fe))/0x9;if(_0x2f1069===_0x51ed57)break;else _0x22d2a1['push'](_0x22d2a1['shift']());}catch(_0x1bb7d4){_0x22d2a1['push'](_0x22d2a1['shift']());}}}(a216_0x5866,0xb9b8e));function a216_0x4e42(_0x1987f2,_0x36d8f8){_0x1987f2=_0x1987f2-0x1f4;const _0x58663a=a216_0x5866();let _0x4e42ff=_0x58663a[_0x1987f2];return _0x4e42ff;}function a216_0x5866(){const _0x77734c=['3049476FjIPTr','8097948rYuVso','2035551vHpaFh','read','270RZlMmR','8222uMTjpu','822696ORSuti','write','174LwdAux','high-risk-write','4300134idGQgI','167525PovxdE'];a216_0x5866=function(){return _0x77734c;};return a216_0x5866();}export const RISK_LEVEL_VALUES=[a216_0x2a0df9(0x1f4),a216_0x2a0df9(0x1f8),a216_0x2a0df9(0x1fa)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x8dc6e4,_0x5c37f8){const _0x45fa1c=a217_0x5aea,_0x58e41=_0x8dc6e4();while(!![]){try{const _0x2c6b88=-parseInt(_0x45fa1c(0x197))/0x1+-parseInt(_0x45fa1c(0x192))/0x2*(parseInt(_0x45fa1c(0x19c))/0x3)+parseInt(_0x45fa1c(0x19e))/0x4*(-parseInt(_0x45fa1c(0x185))/0x5)+parseInt(_0x45fa1c(0x17c))/0x6*(-parseInt(_0x45fa1c(0x186))/0x7)+parseInt(_0x45fa1c(0x194))/0x8*(parseInt(_0x45fa1c(0x17d))/0x9)+parseInt(_0x45fa1c(0x18a))/0xa+parseInt(_0x45fa1c(0x189))/0xb;if(_0x2c6b88===_0x5c37f8)break;else _0x58e41['push'](_0x58e41['shift']());}catch(_0x181bf7){_0x58e41['push'](_0x58e41['shift']());}}}(a217_0x11bf,0x88b89));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x3c6e54){const _0xa17e0c=a217_0x5aea;return typeof _0x3c6e54===_0xa17e0c(0x188)&&_0x3c6e54['trim']()?_0x3c6e54['trim']():undefined;}function a217_0x5aea(_0x2149dc,_0x1003c2){_0x2149dc=_0x2149dc-0x17a;const _0x11bf19=a217_0x11bf();let _0x5aea51=_0x11bf19[_0x2149dc];return _0x5aea51;}function appProfiles(_0x31807e){const _0x5486bc=a217_0x5aea;return _0x31807e[_0x5486bc(0x19b)]&&typeof _0x31807e[_0x5486bc(0x19b)]===_0x5486bc(0x190)?_0x31807e[_0x5486bc(0x19b)]:{};}function a217_0x11bf(){const _0x2bb157=['string','27769093AgbSEO','5611730njKLCZ','trim','projectConfig','read','appcode','write','object','app','66igvyBp','production','488XdZRSZ','high-risk-write','projectPath','429218ekHHIa','length','apiDir','PAGE_SIZE','apps','75351ysSEYd','riskLevel','2154812mOAwCn','entries','globalConfig','ACCESS_KEY','cookie','pageSize','RISK_LEVEL','2288994ZgpzNU','28233sfyyhJ','accessKey','locale','defaultApp','env','find','VERBOSE','format','10SFaAiW','7BUIrlt','keys'];a217_0x11bf=function(){return _0x2bb157;};return a217_0x11bf();}function resolveDefaultAppName(_0x76f7cd){const _0x1efba0=a217_0x5aea,_0x176180=stringConfigValue(_0x76f7cd[_0x1efba0(0x180)]);if(_0x176180)return _0x176180;const _0x18cf61=Object[_0x1efba0(0x187)](appProfiles(_0x76f7cd));return _0x18cf61[_0x1efba0(0x198)]===0x1?_0x18cf61[0x0]:undefined;}function resolveTopLevelAppCode(_0x2abed5){const _0xfbb0e9=a217_0x5aea;return stringConfigValue(_0x2abed5['appcode'])||stringConfigValue(_0x2abed5[_0xfbb0e9(0x191)]);}function normalizeRiskCeiling(_0x3ec655){const _0x2e6e18=a217_0x5aea;if(_0x3ec655===undefined||_0x3ec655===null)return undefined;if(_0x3ec655==='read'||_0x3ec655===_0x2e6e18(0x18f)||_0x3ec655===_0x2e6e18(0x195))return _0x3ec655;return _0x2e6e18(0x18d);}function resolveRiskCeiling(..._0x2f9a04){const _0x328ee7=a217_0x5aea;let _0x3822d8;for(const _0x4577a5 of _0x2f9a04){const _0x5c410f=normalizeRiskCeiling(_0x4577a5);_0x5c410f&&(!_0x3822d8||riskLevelOrder(_0x5c410f)<riskLevelOrder(_0x3822d8))&&(_0x3822d8=_0x5c410f);}return _0x3822d8??DEFAULT_CONFIG_VALUES[_0x328ee7(0x19d)];}export function resolveAppConfig({raw:_0x19378c,flags:_0x59c6b6,layers:_0x3aca4b,readEnv:_0x17e84a}){const _0x2e0bee=a217_0x5aea,_0x385061=_0x3aca4b?.['projectConfig']??{},_0x2f8cf1=_0x3aca4b?.[_0x2e0bee(0x1a0)]??{},_0xf8e056=!!_0x3aca4b?.[_0x2e0bee(0x196)]||Object[_0x2e0bee(0x187)](_0x385061)[_0x2e0bee(0x198)]>0x0,_0x43c837=!_0xf8e056,_0x3b4464=_0xf8e056?resolveDefaultAppName(_0x385061):undefined,_0x3eba3c=_0x43c837?resolveDefaultAppName(_0x2f8cf1):undefined,_0x4551e4=stringConfigValue(_0x59c6b6[_0x2e0bee(0x191)]),_0x528184=_0x17e84a('APP'),_0x5cb5c5={};if(_0x19378c[_0x2e0bee(0x19b)]&&typeof _0x19378c[_0x2e0bee(0x19b)]===_0x2e0bee(0x190))for(const [_0x32a151,_0x119947]of Object['entries'](_0x19378c['apps'])){_0x119947&&typeof _0x119947===_0x2e0bee(0x190)&&_0x119947['appcode']&&(_0x5cb5c5[_0x32a151]=_0x119947);}const _0x2862e6=_0x3b4464||_0x3eba3c||resolveDefaultAppName(_0x19378c),_0x5dbd59=Object[_0x2e0bee(0x187)](_0x5cb5c5)[_0x2e0bee(0x198)]>0x0,_0x73805a=_0x4551e4||_0x3b4464||_0x528184||_0x3eba3c||_0x2862e6||undefined,_0x672ec7=stringConfigValue(_0x59c6b6['appcode']),_0xd7678=_0x672ec7?Object[_0x2e0bee(0x19f)](_0x5cb5c5)[_0x2e0bee(0x182)](([,_0x55b762])=>_0x55b762?.[_0x2e0bee(0x18e)]===_0x672ec7):undefined,_0x1a3c30=_0xd7678?.[0x0],_0x31e70d=_0xd7678?.[0x1],_0x308d4a=_0x672ec7?_0x1a3c30:_0x73805a;let _0x156a60=_0x308d4a&&_0x5cb5c5[_0x308d4a]?_0x5cb5c5[_0x308d4a]:undefined;_0x672ec7&&_0x31e70d&&(_0x156a60=_0x31e70d);const _0x18a4bd=_0x672ec7?_0x31e70d??_0x156a60:_0x156a60,_0x48ac3a=!_0x4551e4&&!_0x3b4464&&_0x528184&&_0x308d4a===_0x528184,_0x47d31c=_0x4551e4||(_0x48ac3a?_0x528184:undefined)||(_0x672ec7?_0x1a3c30:undefined),_0x2ab39b=_0x18a4bd?.[_0x2e0bee(0x18e)],_0x1def53=_0xf8e056?resolveTopLevelAppCode(_0x385061):undefined,_0x17bf31=_0x43c837?resolveTopLevelAppCode(_0x2f8cf1):undefined,_0x437705=_0x4551e4||_0x3b4464?_0x2ab39b:undefined,_0x4e82da=!_0x4551e4&&!_0x3b4464?_0x2ab39b:undefined,_0x3fc1fa=_0x672ec7||_0x437705||_0x1def53||_0x4e82da||_0x17bf31||undefined,_0x593b2=_0xf8e056?stringConfigValue(_0x385061[_0x2e0bee(0x181)]):undefined,_0x4a7a91=_0x43c837?stringConfigValue(_0x2f8cf1[_0x2e0bee(0x181)]):undefined,_0x12e44a=_0x59c6b6['env']||_0x18a4bd?.['env']||_0x593b2||_0x17e84a('ENV')||_0x4a7a91||_0x19378c[_0x2e0bee(0x181)]||DEFAULT_CONFIG_VALUES[_0x2e0bee(0x181)],_0x22722b=_0x18a4bd?.[_0x2e0bee(0x17f)]||_0x19378c[_0x2e0bee(0x17f)]||DEFAULT_CONFIG_VALUES[_0x2e0bee(0x17f)],_0x22b808=_0x17e84a('COOKIE')||_0x18a4bd?.[_0x2e0bee(0x1a2)]||_0x19378c[_0x2e0bee(0x1a2)]||undefined,_0x5075c0=_0x17e84a(_0x2e0bee(0x1a1))||_0x18a4bd?.[_0x2e0bee(0x17e)]||_0x19378c[_0x2e0bee(0x17e)]||undefined,_0x40b2f0=_0x59c6b6['format']||_0x17e84a('FORMAT')||_0x18a4bd?.[_0x2e0bee(0x184)]||_0x19378c['format'],_0x3593bb=normalizeLegacyOutputFormat(_0x40b2f0),_0x1a5875=_0x17e84a(_0x2e0bee(0x19a))||_0x18a4bd?.[_0x2e0bee(0x17a)]||_0x19378c[_0x2e0bee(0x17a)],_0x492fa7=_0x1a5875?Number(_0x1a5875)||undefined:undefined,_0xd134ca=_0x3aca4b?[_0x3aca4b['globalConfig'][_0x2e0bee(0x19d)],_0x3aca4b[_0x2e0bee(0x18c)]['riskLevel']]:[_0x19378c[_0x2e0bee(0x19d)]],_0x535123=resolveRiskCeiling(..._0xd134ca,_0x18a4bd?.[_0x2e0bee(0x19d)]),_0x46296d=resolveRiskCeiling(_0x535123,_0x17e84a(_0x2e0bee(0x17b))),_0x207786=_0x17e84a(_0x2e0bee(0x183)),_0x2f2fd1=_0x207786==='1'||_0x207786==='true',_0x1c4936=_0x18a4bd?.[_0x2e0bee(0x199)]||_0x19378c[_0x2e0bee(0x199)]||DEFAULT_CONFIG_VALUES[_0x2e0bee(0x199)],_0x231ca5=isDaily(normalizeEnv(String(_0x12e44a)))?'daily':_0x2e0bee(0x193);return{'appCode':typeof _0x3fc1fa===_0x2e0bee(0x188)&&_0x3fc1fa['trim']()?_0x3fc1fa[_0x2e0bee(0x18b)]():undefined,'env':_0x231ca5,'locale':_0x22722b,'cookie':_0x22b808,'accessKey':_0x5075c0,'format':_0x3593bb,'pageSize':_0x492fa7,'riskLevel':_0x46296d,'verbose':_0x2f2fd1,'apiDir':_0x1c4936,'apps':_0x5cb5c5,'defaultApp':_0x2862e6,'currentApp':_0x5dbd59?_0x308d4a:undefined,'explicitAppName':_0x47d31c};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a218_0x5739(){const _0x2ef09a=['cookie','500961hLFRAZ','4242TgNCWq','260235tOddsq','50qugTNd','341MaxBjK','14929260OMcNap','186388JMfXvx','../auth/get-cookie.js','99PgnOEc','89704vqKzGv','2oRMOoM','authRequired','173830MtzlHK','133xrebLN'];a218_0x5739=function(){return _0x2ef09a;};return a218_0x5739();}(function(_0x40c49a,_0xea6269){const _0x44990e=a218_0x15a9,_0x23bd24=_0x40c49a();while(!![]){try{const _0x22d0c8=-parseInt(_0x44990e(0x1c7))/0x1*(parseInt(_0x44990e(0x1cf))/0x2)+parseInt(_0x44990e(0x1c5))/0x3+parseInt(_0x44990e(0x1cb))/0x4*(-parseInt(_0x44990e(0x1c8))/0x5)+-parseInt(_0x44990e(0x1c6))/0x6*(-parseInt(_0x44990e(0x1c3))/0x7)+parseInt(_0x44990e(0x1ce))/0x8*(parseInt(_0x44990e(0x1cd))/0x9)+-parseInt(_0x44990e(0x1c2))/0xa*(parseInt(_0x44990e(0x1c9))/0xb)+parseInt(_0x44990e(0x1ca))/0xc;if(_0x22d0c8===_0xea6269)break;else _0x23bd24['push'](_0x23bd24['shift']());}catch(_0x1c5fcc){_0x23bd24['push'](_0x23bd24['shift']());}}}(a218_0x5739,0x450a6));function a218_0x15a9(_0x50ff7e,_0x260ed4){_0x50ff7e=_0x50ff7e-0x1c2;const _0x57391e=a218_0x5739();let _0x15a91d=_0x57391e[_0x50ff7e];return _0x15a91d;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x3c46e0){const _0x5aa24d=a218_0x15a9,{getCookie:_0x4a87fd}=await import(_0x5aa24d(0x1cc)),_0x1d5dd9=_0x3c46e0[_0x5aa24d(0x1c4)]||_0x4a87fd(),_0x421ca9=_0x1d5dd9?await getIsSessionValid():![];return{'cookie':_0x1d5dd9,'isLoggedIn':_0x421ca9,async 'getOrLogin'(){const _0x4a7985=_0x5aa24d;if(_0x1d5dd9&&_0x421ca9)return _0x1d5dd9;throw CliErrors[_0x4a7985(0x1d0)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a219_0x3d0db5=a219_0x1070;(function(_0x2c75b8,_0x22c164){const _0x404003=a219_0x1070,_0x428067=_0x2c75b8();while(!![]){try{const _0x40ea37=parseInt(_0x404003(0x91))/0x1+-parseInt(_0x404003(0x8b))/0x2*(parseInt(_0x404003(0xb0))/0x3)+parseInt(_0x404003(0x8a))/0x4*(-parseInt(_0x404003(0xad))/0x5)+-parseInt(_0x404003(0xa2))/0x6+parseInt(_0x404003(0xa8))/0x7+-parseInt(_0x404003(0xa3))/0x8+parseInt(_0x404003(0xb9))/0x9*(parseInt(_0x404003(0xa9))/0xa);if(_0x40ea37===_0x22c164)break;else _0x428067['push'](_0x428067['shift']());}catch(_0x2542e3){_0x428067['push'](_0x428067['shift']());}}}(a219_0x27d8,0xba645));function a219_0x27d8(){const _0x44ddfc=['65xIMHYW','riskLevel','accessKey','93rbWZRz','Project','Global','keys','length','trim','pageSize','missing','object','2128419pyLSfP','error','utf8','cookie','format','303452JqUkQu','37226mImgey','parse','\x0a\x20\x20','locale','defaultApp','stringify','242152jjwKhM','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','region','empty','project','apps','appDomain','warn','app','status','apiDir','userDomain','appcode','set','runtimeDomain','string','migrated','798546KKGjhX','8966952EXJzaC','kbDomain','projectPath','env','silent','1848756RJxlxT','130hfbLfv','cwd','inherit','config'];a219_0x27d8=function(){return _0x44ddfc;};return a219_0x27d8();}import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME='.rabetbase.json';export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x5de59f){for(const _0x27aea1 of CONFIG_NAMES){const _0x48d447=resolve(_0x5de59f,_0x27aea1);if(existsSync(_0x48d447))return _0x48d447;}return undefined;}export function findProjectRootDirectory(_0x4c443f=process[a219_0x3d0db5(0xaa)]()){let _0x278cf5=resolve(_0x4c443f);const {root:_0x4f96e3}=parse(_0x278cf5),_0x13f244=homedir();while(!![]){if(resolveConfigPath(_0x278cf5)){if(_0x278cf5===_0x13f244)break;return _0x278cf5;}if(_0x278cf5===_0x4f96e3||_0x278cf5===_0x13f244)break;const _0x2f723a=dirname(_0x278cf5);if(_0x2f723a===_0x278cf5)break;_0x278cf5=_0x2f723a;}return resolve(_0x4c443f);}export function getProjectConfigPath(){const _0x5be738=a219_0x3d0db5;return resolveConfigPath(process[_0x5be738(0xaa)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x4a1007){const _0x4c3427=a219_0x3d0db5;if(!existsSync(_0x4a1007))return{'status':_0x4c3427(0xb7)};try{const _0xb66e30=readFileSync(_0x4a1007,{'encoding':_0x4c3427(0xbb)});if(!_0xb66e30?.[_0x4c3427(0xb5)]())return{'status':_0x4c3427(0x94)};const _0x32da76=JSON[_0x4c3427(0x8c)](_0xb66e30);return{'status':'ok','data':_0x32da76};}catch(_0x44dbfa){return{'status':_0x4c3427(0xba),'message':_0x44dbfa instanceof Error?_0x44dbfa['message']:String(_0x44dbfa)};}}function parseCliConfigJsonFile(_0x55de39,_0x45627f,_0x5df1ef){const _0xfbbed5=a219_0x3d0db5,_0x592f69=inspectCliConfigJsonFile(_0x55de39);if(_0x592f69[_0xfbbed5(0x9a)]===_0xfbbed5(0xb7)||_0x592f69[_0xfbbed5(0x9a)]===_0xfbbed5(0x94))return{};if(_0x592f69[_0xfbbed5(0x9a)]==='ok')return _0x592f69['data'];return _0x45627f===_0xfbbed5(0x98)&&_0x5df1ef&&console[_0xfbbed5(0xba)](CLI_BIN_NAME+':\x20'+_0x5df1ef+_0xfbbed5(0x92)+_0x55de39+_0xfbbed5(0x8d)+_0x592f69['message']),{};}function normalizeLegacyConfigShape(_0x24557d){const _0x503d36=a219_0x3d0db5;if(!_0x24557d||typeof _0x24557d!=='object')return{'config':{},'migrated':![]};const _0x1c30f3={..._0x24557d},_0x2b54f0=_0x1c30f3[_0x503d36(0x96)]&&typeof _0x1c30f3[_0x503d36(0x96)]===_0x503d36(0xb8)?{..._0x1c30f3['apps']}:{},_0x5f2825=Object[_0x503d36(0xb3)](_0x2b54f0)['length'],_0x533fcc=_0x1c30f3[_0x503d36(0x9d)]||_0x1c30f3[_0x503d36(0x99)];let _0x57db0f=![];if(_0x533fcc&&_0x5f2825===0x0){const _0x17a67c=typeof _0x1c30f3[_0x503d36(0x8f)]===_0x503d36(0xa0)&&_0x1c30f3[_0x503d36(0x8f)][_0x503d36(0xb5)]()?_0x1c30f3[_0x503d36(0x8f)]:String(_0x533fcc)[_0x503d36(0xb5)]();_0x2b54f0[_0x17a67c]={'appcode':String(_0x533fcc)[_0x503d36(0xb5)](),..._0x1c30f3[_0x503d36(0xa6)]!=null?{'env':_0x1c30f3[_0x503d36(0xa6)]}:{},..._0x1c30f3[_0x503d36(0x9b)]!=null?{'apiDir':_0x1c30f3[_0x503d36(0x9b)]}:{},..._0x1c30f3[_0x503d36(0xbc)]!=null?{'cookie':_0x1c30f3[_0x503d36(0xbc)]}:{},..._0x1c30f3[_0x503d36(0xaf)]!=null?{'accessKey':_0x1c30f3[_0x503d36(0xaf)]}:{},..._0x1c30f3['format']!=null?{'format':_0x1c30f3[_0x503d36(0x89)]}:{},..._0x1c30f3[_0x503d36(0xb6)]!=null?{'pageSize':_0x1c30f3[_0x503d36(0xb6)]}:{},..._0x1c30f3[_0x503d36(0xae)]!=null?{'riskLevel':_0x1c30f3['riskLevel']}:{},..._0x1c30f3[_0x503d36(0x8e)]!=null?{'locale':_0x1c30f3[_0x503d36(0x8e)]}:{}},_0x1c30f3['apps']=_0x2b54f0,delete _0x1c30f3[_0x503d36(0x8f)],_0x57db0f=!![];}return(_0x503d36(0x9d)in _0x1c30f3||_0x503d36(0x99)in _0x1c30f3)&&(delete _0x1c30f3[_0x503d36(0x9d)],delete _0x1c30f3[_0x503d36(0x99)],_0x57db0f=!![]),{'config':_0x1c30f3,'migrated':_0x57db0f};}function writeNormalizedConfigIfNeeded(_0x1d5b69,_0x3af383){const _0x1e95c6=a219_0x3d0db5,_0x155f3b=JSON[_0x1e95c6(0x90)](_0x3af383,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x1d5b69)===_0x155f3b)return;writeConfigFile(_0x1d5b69,_0x3af383),normalizedWriteCache[_0x1e95c6(0x9e)](_0x1d5b69,_0x155f3b);}function parseAndNormalizeConfig(_0x2a8c54,_0x15f969,_0x5ebcc3){const _0x3671d6=a219_0x3d0db5,_0x24a101=parseCliConfigJsonFile(_0x2a8c54,_0x15f969,_0x5ebcc3),_0x4ed309=normalizeLegacyConfigShape(_0x24a101);if(_0x4ed309[_0x3671d6(0xa1)])try{writeNormalizedConfigIfNeeded(_0x2a8c54,_0x4ed309[_0x3671d6(0xac)]);}catch{}return _0x4ed309[_0x3671d6(0xac)];}function a219_0x1070(_0x3d9312,_0x536072){_0x3d9312=_0x3d9312-0x89;const _0x27d848=a219_0x27d8();let _0x10701d=_0x27d848[_0x3d9312];return _0x10701d;}export function loadRawConfigLayers(_0x34ec6d){const _0x41db2c=a219_0x3d0db5;let _0x48d116={},_0x1fbce4={};const _0x6ae3e5=resolveConfigPath(homedir());_0x6ae3e5&&(_0x48d116=parseAndNormalizeConfig(_0x6ae3e5,'warn',_0x41db2c(0xb2)));const _0x298fd6=_0x34ec6d??findProjectRootDirectory(),_0x31f675=resolveConfigPath(_0x298fd6);return _0x31f675&&(_0x1fbce4=parseAndNormalizeConfig(_0x31f675,_0x41db2c(0x98),_0x41db2c(0xb1))),{'globalPath':_0x6ae3e5,'projectPath':_0x31f675,'globalConfig':_0x48d116,'projectConfig':_0x1fbce4};}const INHERIT_WHITELIST=['cookie',a219_0x3d0db5(0xaf),a219_0x3d0db5(0x8e),a219_0x3d0db5(0x89),a219_0x3d0db5(0xae),a219_0x3d0db5(0xb6),a219_0x3d0db5(0x93),a219_0x3d0db5(0x9c),'apiDomain',a219_0x3d0db5(0x9f),'skillDomain',a219_0x3d0db5(0xa4),a219_0x3d0db5(0x97)];export function mergeRawConfigLayers(_0x305f46){const _0x16530c=a219_0x3d0db5,{globalConfig:_0x5e461e,projectConfig:_0x30f231}=_0x305f46,_0x544f43=!!_0x305f46[_0x16530c(0xa5)]||Object['keys'](_0x30f231)['length']>0x0;if(!_0x544f43)return mergeGlobalOnly(_0x5e461e);return mergeProjectFirst(_0x5e461e,_0x30f231);}function mergeGlobalOnly(_0x59add9){const _0x319118=a219_0x3d0db5,_0x2b4435={..._0x59add9};delete _0x2b4435['inherit'];const _0x3f6997=_0x59add9[_0x319118(0x96)]&&typeof _0x59add9['apps']===_0x319118(0xb8)?_0x59add9[_0x319118(0x96)]:{};if(Object['keys'](_0x3f6997)[_0x319118(0xb4)]>0x0)_0x2b4435[_0x319118(0x96)]=_0x3f6997;if(_0x59add9[_0x319118(0x8f)])_0x2b4435[_0x319118(0x8f)]=_0x59add9[_0x319118(0x8f)];return _0x2b4435;}function mergeProjectFirst(_0x29aa7b,_0x2a3596){const _0x22fbac=a219_0x3d0db5,_0x5985a1={..._0x2a3596};delete _0x5985a1[_0x22fbac(0xab)];for(const _0x59b190 of INHERIT_WHITELIST){!(_0x59b190 in _0x5985a1)&&_0x59b190 in _0x29aa7b&&(_0x5985a1[_0x59b190]=_0x29aa7b[_0x59b190]);}const _0x41a4a4=_0x2a3596['apps']&&typeof _0x2a3596[_0x22fbac(0x96)]==='object'?_0x2a3596[_0x22fbac(0x96)]:{};return Object[_0x22fbac(0xb3)](_0x41a4a4)[_0x22fbac(0xb4)]>0x0?_0x5985a1[_0x22fbac(0x96)]=_0x41a4a4:delete _0x5985a1['apps'],_0x22fbac(0x8f)in _0x2a3596?_0x5985a1['defaultApp']=_0x2a3596['defaultApp']:delete _0x5985a1[_0x22fbac(0x8f)],_0x5985a1;}export function readRawConfigWithLayers(_0x5c0131){const _0x5cf182=loadRawConfigLayers(_0x5c0131);return{'config':mergeRawConfigLayers(_0x5cf182),'layers':_0x5cf182};}export function readRawConfig(_0x1a618a){return mergeRawConfigLayers(loadRawConfigLayers(_0x1a618a));}export function readConfigFile(_0x92ddf){const _0x43cbb6=a219_0x3d0db5;return parseAndNormalizeConfig(_0x92ddf,_0x43cbb6(0xa7));}export function writeConfigFile(_0x1f0832,_0x44d96e){const _0x11d799=a219_0x3d0db5,_0x2059d7=dirname(_0x1f0832);!existsSync(_0x2059d7)&&mkdirSync(_0x2059d7,{'recursive':!![]});const _0x434c0b=_0x1f0832+'.tmp';try{writeFileSync(_0x434c0b,JSON[_0x11d799(0x90)](_0x44d96e,null,0x2)+'\x0a',{'encoding':_0x11d799(0xbb),'mode':0x180}),renameSync(_0x434c0b,_0x1f0832);}catch(_0x1c512b){try{unlinkSync(_0x434c0b);}catch{}throw _0x1c512b;}}export function resolveWriteConfigPath(_0xf45982){const _0x2d9b98=a219_0x3d0db5,_0x2054bf=_0xf45982===_0x2d9b98(0x95)?process[_0x2d9b98(0xaa)]():homedir(),_0x5512c1=resolveConfigPath(_0x2054bf);return _0x5512c1??resolve(_0x2054bf,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a220_0x56dd8b=a220_0x2af5;(function(_0x244dbd,_0x33c055){const _0x31d9c3=a220_0x2af5,_0x6b2b0e=_0x244dbd();while(!![]){try{const _0x66c1bf=parseInt(_0x31d9c3(0x12d))/0x1*(-parseInt(_0x31d9c3(0x122))/0x2)+-parseInt(_0x31d9c3(0x12f))/0x3+-parseInt(_0x31d9c3(0x11b))/0x4*(parseInt(_0x31d9c3(0x117))/0x5)+parseInt(_0x31d9c3(0x137))/0x6+parseInt(_0x31d9c3(0x12b))/0x7+parseInt(_0x31d9c3(0x12c))/0x8*(parseInt(_0x31d9c3(0x127))/0x9)+parseInt(_0x31d9c3(0x120))/0xa*(parseInt(_0x31d9c3(0x11c))/0xb);if(_0x66c1bf===_0x33c055)break;else _0x6b2b0e['push'](_0x6b2b0e['shift']());}catch(_0x5a4d9d){_0x6b2b0e['push'](_0x6b2b0e['shift']());}}}(a220_0x44e1,0xb46e4));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';function a220_0x44e1(){const _0xe24663=['apiDir','join','filter','skillHubDomain','replace','argv','./constant/domain.js','string','project','raw','template_base_url','apps','apiDomain','keys','agentDomain','object','defaultApp','values','252275WoAKSa','cwd','https://g.lovrabet.com/dist/lovrabet-skill','skillDomain','8yqiPFc','36861xtGWOA','projectConfig','./constant/env.js','setRawCommand','2630lxwHlR','slice','79678iErlrZ','app','platformDomain','appDomain','merged','794961hisKIz','trim','env','kbDomain','3434102zsvSot','104kEbkOe','25EMDyAM','api.ts','4276590DwnVJL','userDomain','appcode','entries','-api.ts','./utils/is-non-interactive.js','map','length','4447698DzuQZD'];a220_0x44e1=function(){return _0xe24663;};return a220_0x44e1();}import{normalizeLovrabetRegion}from'./constant/region.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x218838){return process.env[`RABETBASE_${_0x218838}`]||process.env[`LOVRABET_${_0x218838}`]||undefined;}function optionalString(_0x1bc634){const _0x313d25=a220_0x2af5;return typeof _0x1bc634===_0x313d25(0x10c)&&_0x1bc634['trim']()?_0x1bc634[_0x313d25(0x128)]():undefined;}export async function createContext(_0x3d5288){const _0x4fba48=a220_0x2af5,{config:_0x36d118,layers:_0x2ce624}=readRawConfigWithLayers(),_0x46cd38=buildConfig(_0x36d118,_0x3d5288,_0x2ce624);await initGlobalEnvironment(_0x46cd38);const {getUserDomain:_0x3a5ccf,getApiDomain:_0x115507}=await import(_0x4fba48(0x10b)),_0x3f36b8={'apiDomain':_0x115507(),'userDomain':_0x3a5ccf()},_0x54e4db=await buildAuth(_0x46cd38);logger['setLogPath'](process[_0x4fba48(0x118)]());const _0x4456b6=(CLI_BIN_NAME+'\x20'+process[_0x4fba48(0x10a)][_0x4fba48(0x121)](0x2)[_0x4fba48(0x139)]('\x20'))[_0x4fba48(0x128)]();logger[_0x4fba48(0x11f)](_0x4456b6);const {isNonInteractive:_0x33d1a1}=await import(_0x4fba48(0x134)),_0x3c07ce=_0x33d1a1(_0x3d5288);return{'config':_0x46cd38,'auth':_0x54e4db,'logger':logger,'env':_0x3f36b8,'nonInteractive':_0x3c07ce};}export function buildConfigFromFlags(_0x5ec468){const {config:_0x450ca4,layers:_0x160a0a}=readRawConfigWithLayers();return buildConfig(_0x450ca4,_0x5ec468,_0x160a0a);}function a220_0x2af5(_0x3d5b5e,_0x5bc91d){_0x3d5b5e=_0x3d5b5e-0x10a;const _0x44e105=a220_0x44e1();let _0x2af5bc=_0x44e105[_0x3d5b5e];return _0x2af5bc;}export async function initGlobalEnvironment(_0x24c832){const _0x2818b3=a220_0x2af5,{initEnv:_0x30ee78}=await import(_0x2818b3(0x11e));_0x30ee78(_0x24c832[_0x2818b3(0x129)]);const {initDomains:_0xfe6da5}=await import(_0x2818b3(0x10b));_0xfe6da5({'region':normalizeLovrabetRegion(_0x24c832[_0x2818b3(0x10e)]?.['region']),'apiDomain':optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x111)]),'userDomain':optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x130)]),'runtimeDomain':optionalString(_0x24c832[_0x2818b3(0x10e)]?.['runtimeDomain']),'skillDomain':optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x11a)])||optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x13b)])||optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x113)])||optionalString(_0x24c832['raw']?.['platformDomain']),'kbDomain':optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x12a)])||optionalString(_0x24c832[_0x2818b3(0x10e)]?.['agentDomain'])||optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x124)]),'appDomain':optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x125)])});}export function getConfigAppCode(_0xc60920){const _0x56f128=a220_0x2af5,_0x10ffe3=readRawConfig(_0xc60920);if(_0x10ffe3[_0x56f128(0x110)]&&typeof _0x10ffe3[_0x56f128(0x110)]===_0x56f128(0x114)){const _0x5ba513=_0x10ffe3['defaultApp'];if(_0x5ba513)return _0x10ffe3['apps'][_0x5ba513]?.[_0x56f128(0x131)]?String(_0x10ffe3['apps'][_0x5ba513][_0x56f128(0x131)])[_0x56f128(0x128)]():undefined;const _0x4ba6ed=Object[_0x56f128(0x116)](_0x10ffe3[_0x56f128(0x110)]);if(_0x4ba6ed['length']===0x1&&_0x4ba6ed[0x0]?.['appcode'])return String(_0x4ba6ed[0x0][_0x56f128(0x131)])['trim']();}const _0x49e139=_0x10ffe3[_0x56f128(0x131)]||_0x10ffe3[_0x56f128(0x123)];if(typeof _0x49e139!==_0x56f128(0x10c)||_0x49e139[_0x56f128(0x128)]()==='')return undefined;return _0x49e139[_0x56f128(0x128)]();}export function getMultiAppConfigs(_0x4fb02d=a220_0x56dd8b(0x10d),_0x3e6040){const _0x371dd4=a220_0x56dd8b,_0x233d39=loadRawConfigLayers(_0x3e6040);let _0x98fb3e,_0x136401;if(_0x4fb02d===_0x371dd4(0x126)){const _0x23f74b=_0x233d39['globalConfig'][_0x371dd4(0x110)]&&typeof _0x233d39['globalConfig'][_0x371dd4(0x110)]==='object'?_0x233d39['globalConfig'][_0x371dd4(0x110)]:{},_0x4a2882=_0x233d39[_0x371dd4(0x11d)]['apps']&&typeof _0x233d39[_0x371dd4(0x11d)][_0x371dd4(0x110)]===_0x371dd4(0x114)?_0x233d39['projectConfig']['apps']:{};_0x98fb3e={..._0x23f74b,..._0x4a2882};const _0x265e97=readRawConfig(_0x3e6040);_0x136401=_0x265e97[_0x371dd4(0x115)];}else _0x98fb3e=_0x233d39['projectConfig']['apps'],_0x136401=_0x233d39[_0x371dd4(0x11d)][_0x371dd4(0x115)];!_0x136401&&_0x98fb3e&&typeof _0x98fb3e==='object'&&Object[_0x371dd4(0x112)](_0x98fb3e)[_0x371dd4(0x136)]===0x1&&(_0x136401=Object[_0x371dd4(0x112)](_0x98fb3e)[0x0]);if(!_0x98fb3e||typeof _0x98fb3e!==_0x371dd4(0x114)||Object[_0x371dd4(0x112)](_0x98fb3e)[_0x371dd4(0x136)]===0x0)return null;return Object['entries'](_0x98fb3e)[_0x371dd4(0x135)](([_0x48306c,_0x51d5f7])=>({'name':_0x48306c,'appcode':_0x51d5f7?.['appcode']||'','isDefault':_0x48306c===_0x136401,'env':_0x51d5f7?.[_0x371dd4(0x129)],'apiDir':_0x51d5f7?.[_0x371dd4(0x138)],'cookie':_0x51d5f7?.['cookie']||undefined}))[_0x371dd4(0x13a)](_0x1ca28f=>_0x1ca28f[_0x371dd4(0x131)]);}export function getTemplateBaseUrl(_0x52d996){const _0xf70caf=a220_0x56dd8b,_0xaea4=readRawConfig(_0x52d996);if(_0xaea4['template_base_url']&&typeof _0xaea4['template_base_url']===_0xf70caf(0x10c))return _0xaea4[_0xf70caf(0x10f)][_0xf70caf(0x13c)](/\/$/,'');return _0xf70caf(0x119);}function buildConfig(_0x4a3f15,_0x28626b,_0x54138f){return{...resolveAppConfig({'raw':_0x4a3f15,'flags':_0x28626b,'layers':_0x54138f,'readEnv':env}),'raw':_0x4a3f15};}export function resolveApiFilePath(_0x47b6d4,_0x35f4a9){const _0x3238e5=a220_0x56dd8b,_0x19ba32=resolve(process[_0x3238e5(0x118)](),_0x47b6d4),_0x21591a=resolve(_0x19ba32,_0x3238e5(0x12e));if(!_0x35f4a9)return _0x21591a;const _0x25d9b2=readRawConfig(),_0x547a74=_0x25d9b2[_0x3238e5(0x110)]&&typeof _0x25d9b2['apps']===_0x3238e5(0x114)?_0x25d9b2[_0x3238e5(0x110)]:{},_0x3130d7=Object[_0x3238e5(0x132)](_0x547a74)['find'](([,_0x28db71])=>_0x28db71?.[_0x3238e5(0x131)]===_0x35f4a9);if(!_0x3130d7)return _0x21591a;const [_0x5a09b3,_0x3e300d]=_0x3130d7,_0x27160b=typeof _0x25d9b2[_0x3238e5(0x115)]===_0x3238e5(0x10c)?_0x25d9b2[_0x3238e5(0x115)]:undefined;if(_0x3e300d?.[_0x3238e5(0x138)])return _0x21591a;if(_0x27160b&&_0x5a09b3!==_0x27160b)return resolve(_0x19ba32,_0x5a09b3+_0x3238e5(0x133));return _0x21591a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41adab,_0x315bb9){const _0x1aee62=a221_0x4545,_0x4057e0=_0x41adab();while(!![]){try{const _0xff7bcb=-parseInt(_0x1aee62(0x12b))/0x1+parseInt(_0x1aee62(0x128))/0x2+parseInt(_0x1aee62(0x12e))/0x3*(-parseInt(_0x1aee62(0x136))/0x4)+parseInt(_0x1aee62(0x132))/0x5+parseInt(_0x1aee62(0x12f))/0x6+parseInt(_0x1aee62(0x12a))/0x7+parseInt(_0x1aee62(0x12c))/0x8*(-parseInt(_0x1aee62(0x130))/0x9);if(_0xff7bcb===_0x315bb9)break;else _0x4057e0['push'](_0x4057e0['shift']());}catch(_0x48677d){_0x4057e0['push'](_0x4057e0['shift']());}}}(a221_0x3fd4,0xb0bf6));import{readFileSync,existsSync}from'node:fs';function a221_0x4545(_0x33e155,_0x4b5e72){_0x33e155=_0x33e155-0x128;const _0x3fd441=a221_0x3fd4();let _0x454586=_0x3fd441[_0x33e155];return _0x454586;}import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x51b8f8){const _0x1ee055=a221_0x4545,_0x565226=[],_0x31abdb=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x5972b0;while((_0x5972b0=_0x31abdb[_0x1ee055(0x12d)](_0x51b8f8))!==null){_0x565226[_0x1ee055(0x134)]({'datasetCode':_0x5972b0[0x1],'tableName':_0x5972b0[0x2],'name':_0x5972b0[0x3],'alias':_0x5972b0[0x4]});}return _0x565226;}export function loadAliasMap(_0x2b22cb,_0xe9bfb3,_0x3899f3){const _0x51e82a=a221_0x4545,_0x4541d7=_0x3899f3??resolve(process['cwd'](),_0x2b22cb,_0x51e82a(0x137));if(cache['has'](_0x4541d7))return cache['get'](_0x4541d7);if(!existsSync(_0x4541d7))return cache['set'](_0x4541d7,[]),[];try{const _0xbe57e4=readFileSync(_0x4541d7,'utf-8'),_0x32fa1e=parseApiFile(_0xbe57e4);return cache['set'](_0x4541d7,_0x32fa1e),_0x32fa1e;}catch{return cache[_0x51e82a(0x129)](_0x4541d7,[]),[];}}export function resolveAlias(_0x616f3d,_0x486df4,_0x418d72,_0xc3e68c){const _0x38d9c7=a221_0x4545;if(!_0x486df4)return undefined;const _0x257c05=loadAliasMap(_0x616f3d,_0x418d72,_0xc3e68c),_0xf5978b=_0x257c05[_0x38d9c7(0x135)](_0x293411=>_0x293411[_0x38d9c7(0x133)]===_0x486df4);return _0xf5978b?.[_0x38d9c7(0x131)];}function a221_0x3fd4(){const _0x4b7a3d=['111051xUGyGl','388656aRkwnN','61767YWfyQY','datasetCode','3399350DEDXSb','alias','push','find','132iQSaTi','api.ts','1422608XCupPk','set','5877025yHkRwG','308828zQEHhj','48bVoqqu','exec'];a221_0x3fd4=function(){return _0x4b7a3d;};return a221_0x3fd4();}export function listAliases(_0x67893b,_0x4ba32,_0x34669a){return loadAliasMap(_0x67893b,_0x4ba32,_0x34669a);}
|