@lovrabet/rabetbase-cli 2.5.0-beta.4 → 2.5.0-beta.6
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 +2 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a206_0x205d99=a206_0x56c5;function a206_0x56c5(_0x294140,_0x4a55f1){_0x294140=_0x294140-0x169;const _0x26467e=a206_0x2646();let _0x56c59d=_0x26467e[_0x294140];return _0x56c59d;}(function(_0x1927e4,_0x3eaa34){const _0x265915=a206_0x56c5,_0xa229f2=_0x1927e4();while(!![]){try{const _0x33f12f=parseInt(_0x265915(0x18e))/0x1*(parseInt(_0x265915(0x18b))/0x2)+-parseInt(_0x265915(0x192))/0x3*(parseInt(_0x265915(0x198))/0x4)+-parseInt(_0x265915(0x171))/0x5+-parseInt(_0x265915(0x18a))/0x6+parseInt(_0x265915(0x188))/0x7*(parseInt(_0x265915(0x173))/0x8)+parseInt(_0x265915(0x193))/0x9+parseInt(_0x265915(0x196))/0xa;if(_0x33f12f===_0x3eaa34)break;else _0xa229f2['push'](_0xa229f2['shift']());}catch(_0xd5309e){_0xa229f2['push'](_0xa229f2['shift']());}}}(a206_0x2646,0x6205e));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';function a206_0x2646(){const _0x2ec86a=['https:','userDomain','91PHdBbT','skill-domain','798540EYFIeF','353204cFjgLD','user-domain','str','1JdEoZJ','Domain\x20config\x20file\x20not\x20found:\x20','hash','Invalid\x20','706692LPaDqE','2658627uCvCjJ','agentDomain','string','8089630ajNChV','appDomain','12JIfHHM','keys','validation','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','password','pathname','origin','Allowed\x20fields:\x20','app-domain','1834665CbJlCJ','parse','201384bIWgdl','join','filter','api-domain','kbDomain','skillDomain','trim','kb-domain','runtime-domain','search','includes','utf8','platformDomain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','Invalid\x20domain\x20config\x20JSON:\x20','Unsupported\x20domain\x20config\x20field(s):\x20','username','isArray','object'];a206_0x2646=function(){return _0x2ec86a;};return a206_0x2646();}import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a206_0x205d99(0x187),'apiDomain','runtimeDomain',a206_0x205d99(0x178),a206_0x205d99(0x177),a206_0x205d99(0x197)];const DOMAIN_FLAGS={'userDomain':a206_0x205d99(0x18c),'apiDomain':a206_0x205d99(0x176),'runtimeDomain':a206_0x205d99(0x17b),'skillDomain':a206_0x205d99(0x189),'kbDomain':a206_0x205d99(0x17a),'appDomain':a206_0x205d99(0x170)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a206_0x205d99(0x194),a206_0x205d99(0x17f),'skillHubDomain'];export function normalizeDomainOrigin(_0x2efdf4,_0x565b33){const _0x555ac5=a206_0x205d99;if(typeof _0x565b33!==_0x555ac5(0x195)||!_0x565b33[_0x555ac5(0x179)]())throw CliErrors[_0x555ac5(0x16a)](_0x555ac5(0x191)+_0x2efdf4+_0x555ac5(0x180));let _0x5a4f6a;try{_0x5a4f6a=new URL(_0x565b33[_0x555ac5(0x179)]());}catch{throw CliErrors['validation'](_0x555ac5(0x191)+_0x2efdf4+':\x20\x22'+_0x565b33+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x5a4f6a['protocol']!==_0x555ac5(0x186)||_0x5a4f6a[_0x555ac5(0x183)]||_0x5a4f6a[_0x555ac5(0x16c)]||_0x5a4f6a[_0x555ac5(0x16d)]!=='/'&&_0x5a4f6a[_0x555ac5(0x16d)]!==''||_0x5a4f6a[_0x555ac5(0x17c)]||_0x5a4f6a[_0x555ac5(0x190)])throw CliErrors[_0x555ac5(0x16a)](_0x555ac5(0x191)+_0x2efdf4+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x555ac5(0x16b));return _0x5a4f6a[_0x555ac5(0x16e)];}export function readDomainConfig(_0x3776d8){const _0x42db63=a206_0x205d99,_0x1e4e82=isAbsolute(_0x3776d8)?_0x3776d8:resolve(process['cwd'](),_0x3776d8);if(!existsSync(_0x1e4e82))throw CliErrors['validation'](_0x42db63(0x18f)+_0x1e4e82);let _0x1f87f6;try{_0x1f87f6=JSON[_0x42db63(0x172)](readFileSync(_0x1e4e82,_0x42db63(0x17e)));}catch{throw CliErrors[_0x42db63(0x16a)](_0x42db63(0x181)+_0x1e4e82);}if(!_0x1f87f6||typeof _0x1f87f6!==_0x42db63(0x185)||Array[_0x42db63(0x184)](_0x1f87f6))throw CliErrors[_0x42db63(0x16a)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0xb8f6ee=_0x1f87f6,_0x49208e=Object['keys'](_0xb8f6ee)[_0x42db63(0x175)](_0x447050=>!DOMAIN_CONFIG_FIELDS[_0x42db63(0x17d)](_0x447050));if(_0x49208e['length']>0x0)throw CliErrors['validation'](_0x42db63(0x182)+_0x49208e[_0x42db63(0x174)](',\x20'),_0x42db63(0x16f)+DOMAIN_CONFIG_FIELDS[_0x42db63(0x174)](',\x20'));const _0x85a0f7={};for(const _0x504c3d of DOMAIN_CONFIG_FIELDS){_0xb8f6ee[_0x504c3d]!==undefined&&(_0x85a0f7[_0x504c3d]=normalizeDomainOrigin(_0x504c3d,_0xb8f6ee[_0x504c3d]));}if(Object[_0x42db63(0x169)](_0x85a0f7)['length']===0x0)throw CliErrors[_0x42db63(0x16a)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return _0x85a0f7;}export function resolveDomainFlags(_0x15d6fa){const _0x2e37ef=a206_0x205d99,_0x22dfd1=(_0x15d6fa['str']('domain-config')||'')[_0x2e37ef(0x179)](),_0x3e2423=_0x22dfd1?readDomainConfig(_0x22dfd1):{};for(const _0x1e0960 of DOMAIN_CONFIG_FIELDS){const _0x4a159b=(_0x15d6fa[_0x2e37ef(0x18d)](DOMAIN_FLAGS[_0x1e0960])||'')[_0x2e37ef(0x179)]();if(_0x4a159b)_0x3e2423[_0x1e0960]=normalizeDomainOrigin(_0x1e0960,_0x4a159b);}return _0x3e2423;}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x52f151=a207_0x3d05;(function(_0x40f810,_0xf437ae){const _0x1324d6=a207_0x3d05,_0x3b1e1c=_0x40f810();while(!![]){try{const _0x52875a=parseInt(_0x1324d6(0x147))/0x1*(parseInt(_0x1324d6(0x125))/0x2)+parseInt(_0x1324d6(0x143))/0x3+parseInt(_0x1324d6(0x12c))/0x4+-parseInt(_0x1324d6(0x117))/0x5+parseInt(_0x1324d6(0x118))/0x6*(-parseInt(_0x1324d6(0x144))/0x7)+parseInt(_0x1324d6(0x13f))/0x8*(-parseInt(_0x1324d6(0x13b))/0x9)+parseInt(_0x1324d6(0x123))/0xa*(parseInt(_0x1324d6(0x149))/0xb);if(_0x52875a===_0xf437ae)break;else _0x3b1e1c['push'](_0x3b1e1c['shift']());}catch(_0x8bf19){_0x3b1e1c['push'](_0x3b1e1c['shift']());}}}(a207_0xf787,0xf08ad));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=[a207_0x52f151(0x136),a207_0x52f151(0x13a),'locale',a207_0x52f151(0x134),a207_0x52f151(0x119),a207_0x52f151(0x11c),'userDomain',a207_0x52f151(0x124),a207_0x52f151(0x127),a207_0x52f151(0x11a),a207_0x52f151(0x13e),a207_0x52f151(0x148)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a207_0x52f151(0x146),a207_0x52f151(0x12f),'locale','format',a207_0x52f151(0x136),a207_0x52f151(0x13a),a207_0x52f151(0x122),a207_0x52f151(0x11c),a207_0x52f151(0x138),'apiDomain',a207_0x52f151(0x127),a207_0x52f151(0x11a),a207_0x52f151(0x13e),a207_0x52f151(0x148)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x4727c0){const _0x580475=a207_0x52f151;return[..._0x4727c0][_0x580475(0x145)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x3b2234){const _0x5e848c=a207_0x52f151;return TOP_LEVEL_CONFIG_KEYS[_0x5e848c(0x133)](_0x3b2234);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4bc39c=a207_0x52f151;return _0x4bc39c(0x126)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a207_0x52f151(0x12f),'apiDir':a207_0x52f151(0x122),'cookie':a207_0x52f151(0x136),'accessKey':a207_0x52f151(0x13a),'defaultFormat':a207_0x52f151(0x134),'pageSize':a207_0x52f151(0x11d),'riskLevel':'riskLevel','locale':a207_0x52f151(0x137)};export function getAppProfileFlagDefs(){const _0x48cd07=a207_0x52f151;return[{'name':_0x48cd07(0x12f),'type':_0x48cd07(0x11e),'description':_0x48cd07(0x128),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x48cd07(0x122),'type':'string','description':_0x48cd07(0x131)},{'name':_0x48cd07(0x136),'type':'string','description':_0x48cd07(0x121),'hidden':!![]},{'name':'accessKey','type':_0x48cd07(0x11e),'description':_0x48cd07(0x120),'hidden':!![]},{'name':_0x48cd07(0x11f),'type':_0x48cd07(0x11e),'description':_0x48cd07(0x12d),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x48cd07(0x11d),'type':_0x48cd07(0x140),'description':_0x48cd07(0x115)},{'name':_0x48cd07(0x119),'type':_0x48cd07(0x11e),'description':_0x48cd07(0x13d),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x48cd07(0x11e),'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x58af32){const _0x33ef7a=a207_0x52f151,_0x44bf34={};for(const [_0x1c0c60,_0x31d2b9]of Object[_0x33ef7a(0x12e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x25fbbe=_0x58af32(_0x1c0c60);if(!_0x25fbbe)continue;_0x44bf34[_0x31d2b9]=_0x31d2b9===_0x33ef7a(0x11d)?Number(_0x25fbbe):_0x25fbbe;}return _0x44bf34;}export function buildAppProfileListFields(_0x29fd39){const _0x2dd677=a207_0x52f151;return{'env':_0x29fd39[_0x2dd677(0x12f)]??null,'apiDir':_0x29fd39[_0x2dd677(0x122)]??null,'hasCookie':!!_0x29fd39[_0x2dd677(0x136)],'hasAccessKey':!!_0x29fd39['accessKey'],'format':_0x29fd39[_0x2dd677(0x134)]??null,'pageSize':_0x29fd39['pageSize']??null,'riskLevel':_0x29fd39['riskLevel']??null,'locale':_0x29fd39[_0x2dd677(0x137)]??null};}export function buildAppDoctorFields(_0x2c104a,_0x19937e){const _0xdae8aa=a207_0x52f151;return{'env':{'value':_0x2c104a[_0xdae8aa(0x12f)]||_0x19937e[_0xdae8aa(0x12f)],'source':_0x2c104a[_0xdae8aa(0x12f)]?_0xdae8aa(0x135):_0xdae8aa(0x141)},'apiDir':{'value':_0x2c104a['apiDir']||_0x19937e['apiDir'],'source':_0x2c104a['apiDir']?_0xdae8aa(0x135):'inherit'},'cookie':{'value':_0x2c104a['cookie']||_0x19937e['cookie'],'source':_0x2c104a[_0xdae8aa(0x136)]?_0xdae8aa(0x135):'inherit'},'accessKey':{'value':_0x2c104a[_0xdae8aa(0x13a)]||_0x19937e[_0xdae8aa(0x13a)],'source':_0x2c104a[_0xdae8aa(0x13a)]?_0xdae8aa(0x135):_0xdae8aa(0x141)}};}export function buildCanonicalAppConfig(_0x5e2442,_0x145cdd){const _0x54be2c=a207_0x52f151,_0x444098=_0x5e2442[_0x54be2c(0x129)](_0x4c75bb=>String(_0x4c75bb||'')['trim']())[_0x54be2c(0x12b)](Boolean);if(_0x444098[_0x54be2c(0x130)]===0x0)return{};const _0x3e2c20={};for(const _0x52167e of _0x444098){_0x3e2c20[_0x52167e]=_0x145cdd?{'appcode':_0x52167e,'env':_0x145cdd}:{'appcode':_0x52167e};}return _0x444098[_0x54be2c(0x130)]>0x1?{'apps':_0x3e2c20,'defaultApp':_0x444098[0x0]}:{'apps':_0x3e2c20};}export function normalizeStoredDefaultApp(_0x55dd19,_0x342cda){const _0x1979f3=a207_0x52f151,_0x569ea2=_0x55dd19[_0x1979f3(0x139)]&&typeof _0x55dd19[_0x1979f3(0x139)]===_0x1979f3(0x11b)?_0x55dd19['apps']:{},_0x2dbbc4=Object[_0x1979f3(0x116)](_0x569ea2);if(_0x2dbbc4[_0x1979f3(0x130)]<=0x1)return delete _0x55dd19[_0x1979f3(0x12a)],undefined;const _0x5e68a9=typeof _0x55dd19[_0x1979f3(0x12a)]===_0x1979f3(0x11e)&&_0x569ea2[_0x55dd19[_0x1979f3(0x12a)]]?_0x55dd19[_0x1979f3(0x12a)]:undefined,_0xd22bf0=_0x342cda&&_0x569ea2[_0x342cda]?_0x342cda:_0x5e68a9;if(_0xd22bf0)return _0x55dd19[_0x1979f3(0x12a)]=_0xd22bf0,_0xd22bf0;return delete _0x55dd19[_0x1979f3(0x12a)],undefined;}export function buildCanonicalProjectConfig(_0x56dab2,_0x377003){const _0x3be176=a207_0x52f151,{appCodes:appCodes=[],env:_0x208c09,metadata:_0x3fba28}=_0x377003,_0x532a85={..._0x56dab2,..._0x3fba28||{}};delete _0x532a85[_0x3be176(0x146)],delete _0x532a85[_0x3be176(0x135)];if(_0x208c09)_0x532a85['env']=_0x208c09;else!_0x532a85['env']&&(_0x532a85[_0x3be176(0x12f)]=DEFAULT_CONFIG_VALUES[_0x3be176(0x12f)]);const _0x2c8f35=buildCanonicalAppConfig(appCodes,_0x532a85[_0x3be176(0x12f)]);if(Object[_0x3be176(0x116)](_0x2c8f35)[_0x3be176(0x130)]>0x0){_0x532a85[_0x3be176(0x139)]=_0x2c8f35[_0x3be176(0x139)];if(_0x2c8f35[_0x3be176(0x12a)])_0x532a85[_0x3be176(0x12a)]=_0x2c8f35[_0x3be176(0x12a)];else delete _0x532a85['defaultApp'];}return _0x532a85;}function a207_0x3d05(_0x43d9d9,_0x49a5ca){_0x43d9d9=_0x43d9d9-0x115;const _0xf78790=a207_0xf787();let _0x3d05a6=_0xf78790[_0x43d9d9];return _0x3d05a6;}const LOCALE_MAP={'zh':a207_0x52f151(0x142),'zh-cn':a207_0x52f151(0x142),'zh_cn':'zh-CN','en':'en-US','en-us':a207_0x52f151(0x132),'en_us':a207_0x52f151(0x132)};function a207_0xf787(){const _0x212ec8=['Target\x20environment','map','defaultApp','filter','698412FMvTnQ','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','entries','env','length','API\x20directory\x20path','en-US','has','format','app','cookie','locale','userDomain','apps','accessKey','14813343GykhMc','toLowerCase','Risk\x20level','kbDomain','8Wglltg','number','inherit','zh-CN','5399892bDVLrw','104279cpKzFo','join','appcode','183ahFRni','appDomain','24559744LcxoQS','Default\x20page\x20size','keys','3474700RmIvlZ','534MuNYWU','riskLevel','skillDomain','object','region','pageSize','string','defaultFormat','Access\x20key','Auth\x20cookie','apiDir','10YVHGco','apiDomain','4860EkXLci','Config\x20key\x20(','runtimeDomain'];a207_0xf787=function(){return _0x212ec8;};return a207_0xf787();}export function normalizeLocale(_0xc2b9ef){const _0x353596=a207_0x52f151;if(!_0xc2b9ef)return null;return LOCALE_MAP[_0xc2b9ef[_0x353596(0x13c)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x34d771=a208_0x1ed1;(function(_0x403294,_0x26e52b){const _0x5ee16a=a208_0x1ed1,_0x4a7e91=_0x403294();while(!![]){try{const _0x52e866=parseInt(_0x5ee16a(0x188))/0x1*(parseInt(_0x5ee16a(0x18a))/0x2)+-parseInt(_0x5ee16a(0x18e))/0x3+parseInt(_0x5ee16a(0x189))/0x4+-parseInt(_0x5ee16a(0x18c))/0x5+-parseInt(_0x5ee16a(0x18b))/0x6+parseInt(_0x5ee16a(0x190))/0x7+parseInt(_0x5ee16a(0x18f))/0x8;if(_0x52e866===_0x26e52b)break;else _0x4a7e91['push'](_0x4a7e91['shift']());}catch(_0x39cc6d){_0x4a7e91['push'](_0x4a7e91['shift']());}}}(a208_0x34f6,0x7bd12));function a208_0x1ed1(_0x55a8f9,_0x5d19dd){_0x55a8f9=_0x55a8f9-0x187;const _0x34f609=a208_0x34f6();let _0x1ed1c6=_0x34f609[_0x55a8f9];return _0x1ed1c6;}export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a208_0x34d771(0x18d);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a208_0x34d771(0x187);function a208_0x34f6(){const _0x336306=['/config/index.json','1102461liUPwq','11126520tygqqg','656796GXXqgj','/templates/projects','252897WZYipj','438272pVneEk','2kYUEtK','2607768dEvxbS','2689195LDgNsn'];a208_0x34f6=function(){return _0x336306;};return a208_0x34f6();}
|
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
|
+
function a209_0x5acb(_0x2e2c6d,_0x3c5e6c){_0x2e2c6d=_0x2e2c6d-0xc3;const _0x427f61=a209_0x427f();let _0x5acb39=_0x427f61[_0x2e2c6d];return _0x5acb39;}const a209_0x3fd0b7=a209_0x5acb;(function(_0x516fa1,_0x5db4e5){const _0x276b05=a209_0x5acb,_0x272e5a=_0x516fa1();while(!![]){try{const _0x10bedc=-parseInt(_0x276b05(0xee))/0x1*(-parseInt(_0x276b05(0xf8))/0x2)+-parseInt(_0x276b05(0x130))/0x3*(parseInt(_0x276b05(0xf4))/0x4)+-parseInt(_0x276b05(0x11f))/0x5*(parseInt(_0x276b05(0x13d))/0x6)+-parseInt(_0x276b05(0xd2))/0x7*(-parseInt(_0x276b05(0xec))/0x8)+parseInt(_0x276b05(0xcf))/0x9*(parseInt(_0x276b05(0xd9))/0xa)+-parseInt(_0x276b05(0xde))/0xb+-parseInt(_0x276b05(0x119))/0xc;if(_0x10bedc===_0x5db4e5)break;else _0x272e5a['push'](_0x272e5a['shift']());}catch(_0x245837){_0x272e5a['push'](_0x272e5a['shift']());}}}(a209_0x427f,0xc0ccd));export const CLI_BIN_NAME=a209_0x3fd0b7(0xf6);export const CLI_DISPLAY_NAME=a209_0x3fd0b7(0x102);export const NPM_PACKAGE_NAME=a209_0x3fd0b7(0x111);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a209_0x3fd0b7(0xcb),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x110),'hint':a209_0x3fd0b7(0xcc)},{'name':'app','meowKey':'app','type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a209_0x3fd0b7(0xe9)},{'name':a209_0x3fd0b7(0x148),'meowKey':'env','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x125),'hint':a209_0x3fd0b7(0x11d)},{'name':'format','meowKey':a209_0x3fd0b7(0x11e),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x14c),'hint':a209_0x3fd0b7(0x13e)},{'name':'jq','meowKey':'jq','type':a209_0x3fd0b7(0xeb),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a209_0x3fd0b7(0x116)},{'name':a209_0x3fd0b7(0x129),'meowKey':a209_0x3fd0b7(0xea),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x114)},{'name':'yes','meowKey':a209_0x3fd0b7(0x108),'type':a209_0x3fd0b7(0x137),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a209_0x3fd0b7(0x141),'meowKey':a209_0x3fd0b7(0x11c),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x13b)},{'name':a209_0x3fd0b7(0xe7),'meowKey':a209_0x3fd0b7(0xe7),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':a209_0x3fd0b7(0x10a),'meowKey':a209_0x3fd0b7(0x10a),'type':a209_0x3fd0b7(0x137),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a209_0x3fd0b7(0x14f),'meowKey':'help','type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x13a)},{'name':'locale','meowKey':a209_0x3fd0b7(0xe3),'type':'string','description':a209_0x3fd0b7(0xc5),'hidden':!![],'hint':a209_0x3fd0b7(0xed)},{'name':a209_0x3fd0b7(0x101),'meowKey':a209_0x3fd0b7(0x101),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xe2),'hidden':!![]},{'name':a209_0x3fd0b7(0xfb),'meowKey':'title','type':a209_0x3fd0b7(0xeb),'description':'Title','hidden':!![]},{'name':a209_0x3fd0b7(0xfa),'meowKey':a209_0x3fd0b7(0xfa),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x107),'hidden':!![]},{'name':a209_0x3fd0b7(0xe4),'meowKey':'topk','type':'string','description':a209_0x3fd0b7(0x113),'hidden':!![]},{'name':a209_0x3fd0b7(0xc3),'meowKey':a209_0x3fd0b7(0xc3),'type':a209_0x3fd0b7(0x137),'description':'Clear','hidden':!![]},{'name':a209_0x3fd0b7(0xf2),'meowKey':a209_0x3fd0b7(0xf2),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0xd0),'hidden':!![]},{'name':a209_0x3fd0b7(0xff),'meowKey':a209_0x3fd0b7(0xff),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x100),'hidden':!![]},{'name':a209_0x3fd0b7(0x127),'meowKey':a209_0x3fd0b7(0x127),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x133),'hidden':!![]},{'name':a209_0x3fd0b7(0x10d),'meowKey':a209_0x3fd0b7(0x10d),'type':'string','description':a209_0x3fd0b7(0xc8),'hidden':!![]},{'name':a209_0x3fd0b7(0xfd),'meowKey':a209_0x3fd0b7(0xfd),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x12a),'hidden':!![]},{'name':a209_0x3fd0b7(0x13c),'meowKey':a209_0x3fd0b7(0xf3),'type':'boolean','description':a209_0x3fd0b7(0xce),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a209_0x3fd0b7(0x143),'hidden':!![]},{'name':a209_0x3fd0b7(0xe6),'meowKey':'type','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xef),'hidden':!![]},{'name':'file','meowKey':a209_0x3fd0b7(0x128),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x117),'hidden':!![]},{'name':a209_0x3fd0b7(0x14b),'meowKey':a209_0x3fd0b7(0x14b),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x120),'hidden':!![]},{'name':'sql-name','meowKey':'sqlName','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xcd),'hidden':!![]},{'name':a209_0x3fd0b7(0xda),'meowKey':a209_0x3fd0b7(0xda),'type':a209_0x3fd0b7(0xeb),'description':'SQL\x20name','hidden':!![]},{'name':a209_0x3fd0b7(0xd7),'meowKey':a209_0x3fd0b7(0x14d),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xc9),'hidden':!![]},{'name':a209_0x3fd0b7(0x144),'meowKey':'dbid','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xc9),'hidden':!![]},{'name':a209_0x3fd0b7(0xd1),'meowKey':a209_0x3fd0b7(0xd1),'type':'string','description':'Description','hidden':!![]},{'name':a209_0x3fd0b7(0xe8),'meowKey':a209_0x3fd0b7(0x105),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xc4),'hidden':!![]},{'name':a209_0x3fd0b7(0xf5),'meowKey':a209_0x3fd0b7(0xf5),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x138),'hidden':!![]},{'name':a209_0x3fd0b7(0x106),'meowKey':a209_0x3fd0b7(0x106),'type':'string','description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a209_0x3fd0b7(0xd6),'type':'string','description':a209_0x3fd0b7(0x12f),'hidden':!![]},{'name':a209_0x3fd0b7(0x145),'meowKey':'code','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x149),'hidden':!![]},{'name':'sql','meowKey':a209_0x3fd0b7(0x104),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x103),'hidden':!![]},{'name':'schemas','meowKey':a209_0x3fd0b7(0x136),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xe1),'hidden':!![]},{'name':a209_0x3fd0b7(0xdd),'meowKey':a209_0x3fd0b7(0xdd),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x13f),'hidden':!![]},{'name':'target','meowKey':a209_0x3fd0b7(0xdc),'type':'string','description':a209_0x3fd0b7(0x12c),'hidden':!![]},{'name':a209_0x3fd0b7(0x123),'meowKey':'skipImports','type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0xc7),'hidden':!![]},{'name':'key','meowKey':'key','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x10e),'hidden':!![]},{'name':a209_0x3fd0b7(0x12b),'meowKey':a209_0x3fd0b7(0x12b),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xd5),'hidden':!![]},{'name':a209_0x3fd0b7(0xd8),'meowKey':a209_0x3fd0b7(0xd8),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x132),'hidden':!![]},{'name':a209_0x3fd0b7(0x115),'meowKey':a209_0x3fd0b7(0x115),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x10f),'hidden':!![]},{'name':a209_0x3fd0b7(0x121),'meowKey':a209_0x3fd0b7(0x12e),'type':a209_0x3fd0b7(0xeb),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a209_0x3fd0b7(0x142),'meowKey':'reveal','type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x14a),'hidden':!![]},{'name':'force','meowKey':a209_0x3fd0b7(0x150),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x146),'hidden':!![]},{'name':a209_0x3fd0b7(0x140),'meowKey':'confirm','type':a209_0x3fd0b7(0x137),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a209_0x3fd0b7(0xdf),'meowKey':'remote','type':'boolean','description':a209_0x3fd0b7(0xc6),'hidden':!![]},{'name':a209_0x3fd0b7(0xf7),'meowKey':'verbose','type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x147),'hidden':!![]},{'name':a209_0x3fd0b7(0x109),'meowKey':'expectedCount','type':a209_0x3fd0b7(0xeb),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':'label','meowKey':a209_0x3fd0b7(0xca),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xd3),'hidden':!![]},{'name':a209_0x3fd0b7(0xfc),'meowKey':a209_0x3fd0b7(0xd4),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x112),'hidden':!![]},{'name':a209_0x3fd0b7(0xe0),'meowKey':a209_0x3fd0b7(0xe0),'type':a209_0x3fd0b7(0xeb),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a209_0x3fd0b7(0xdb),'meowKey':a209_0x3fd0b7(0x10c),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x126),'hidden':!![]},{'name':a209_0x3fd0b7(0xe5),'meowKey':a209_0x3fd0b7(0xf9),'type':'string','description':a209_0x3fd0b7(0x11b),'hidden':!![]},{'name':a209_0x3fd0b7(0x118),'meowKey':'expectedChildrenCount','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x11a),'hidden':!![]},{'name':a209_0x3fd0b7(0x122),'meowKey':a209_0x3fd0b7(0xf1),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x12d),'hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xfe),'hidden':!![]},{'name':a209_0x3fd0b7(0xf0),'meowKey':a209_0x3fd0b7(0x139),'type':a209_0x3fd0b7(0xeb),'description':'Operation\x20type','hidden':!![]},{'name':a209_0x3fd0b7(0x124),'meowKey':a209_0x3fd0b7(0x135),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x134),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a209_0x3fd0b7(0xcb),'app',a209_0x3fd0b7(0x148),a209_0x3fd0b7(0x11e),'jq',a209_0x3fd0b7(0x129),a209_0x3fd0b7(0x108),a209_0x3fd0b7(0x141),'ci']);function a209_0x427f(){const _0x440d5e=['Expected\x20current\x20child\x20count','Expected\x20current\x20menu\x20path','nonInteractive','production\x20|\x20daily','format','65QnBblO','SQL\x20code','from-env','menu-ids','skip-imports','function-node','Environment','Expected\x20current\x20parent\x20menu\x20id','params','file','dry-run','Apply\x20to\x20all','value','Target\x20path','Comma-separated\x20menu\x20IDs','fromEnv','Keyword\x20filter','1246803JpHSBH','meowKey','Tags','JSON\x20params','Function\x20node','functionNode','schemas','boolean','Page\x20number','operationType','Show\x20help','Force\x20non-interactive\x20mode\x20(CI)','enable-bff-save','329370XPuDer','json\x20|\x20pretty\x20|\x20compress','Operation\x20type','confirm','non-interactive','reveal','Record\x20ID','dbid','code','Force\x20overwrite','Verbose\x20output','env','Code\x20filter','Reveal\x20sensitive\x20value','sqlcode','Output\x20format','dbId','fromEntries','help','force','clear','Description\x20file','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Use\x20remote','Skip\x20import\x20generation','Dataset\x20code','DB\x20ID','label','appcode','<code>','SQL\x20name','Enable\x20Backend\x20Function\x20save','9xQlEsa','Watch\x20mode','description','287VMahxc','Menu\x20label','parentId','Config\x20value','keyword','db-id','tags','12950760PRijJV','sqlname','expect-parent-id','target','operation','2828551zanRpv','remote','sort','Schemas','Name','locale','topk','expect-path','type','global','description-file','<name>','dryRun','string','244072XPILRK','zh-CN\x20|\x20en-US','917771lsljyM','Type\x20filter','operation-type','menuIds','watch','enableBffSave','4ZiEknw','page','rabetbase','verbose','2wChafn','expectPath','query','title','parent-id','all','Asynchronous\x20task\x20ID','output','Output\x20path','name','Rabetbase\x20CLI','SQL\x20string','sql','descriptionFile','pagesize','Search\x20query','yes','expected-count','project','map','expectParentId','datasetcode','Config\x20key','Read\x20value\x20from\x20stdin','Override\x20appcode','@lovrabet/rabetbase-cli','Parent\x20menu\x20id','Maximum\x20search\x20hits','Preview\x20operation\x20without\x20executing','stdin','<expr>','File\x20path','expected-children-count','15451560rtuVAT'];a209_0x427f=function(){return _0x440d5e;};return a209_0x427f();}export function buildMeowFlags(){const _0x10afd3=a209_0x3fd0b7;return Object[_0x10afd3(0x14e)](GLOBAL_FLAGS[_0x10afd3(0x10b)](_0x42a9a0=>[_0x42a9a0[_0x10afd3(0x131)],{'type':_0x42a9a0[_0x10afd3(0xe6)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a210_0x11519e=a210_0x201d;function a210_0x55b3(){const _0x242316=['write','compress','619419nFFIlS','2785734tXtGIh','33384vsWGOx','en-US','10RdvCcY','4LIMgBb','295382ZTOamm','7MRpNLg','355MTEWRs','2902141mrKdBS','2970728EqxLTI','production','1536188BVfQSy'];a210_0x55b3=function(){return _0x242316;};return a210_0x55b3();}(function(_0xb15d74,_0x518fb1){const _0x39e308=a210_0x201d,_0x88166=_0xb15d74();while(!![]){try{const _0x1848b4=-parseInt(_0x39e308(0xd1))/0x1+-parseInt(_0x39e308(0xd0))/0x2*(parseInt(_0x39e308(0xcb))/0x3)+parseInt(_0x39e308(0xc8))/0x4+-parseInt(_0x39e308(0xd3))/0x5*(parseInt(_0x39e308(0xcd))/0x6)+parseInt(_0x39e308(0xd2))/0x7*(parseInt(_0x39e308(0xd5))/0x8)+parseInt(_0x39e308(0xcc))/0x9+parseInt(_0x39e308(0xcf))/0xa*(parseInt(_0x39e308(0xd4))/0xb);if(_0x1848b4===_0x518fb1)break;else _0x88166['push'](_0x88166['shift']());}catch(_0x366fca){_0x88166['push'](_0x88166['shift']());}}}(a210_0x55b3,0x3705d));import{DEFAULT_API_DIR}from'../constant/paths.js';function a210_0x201d(_0x319b5d,_0x36d33d){_0x319b5d=_0x319b5d-0xc7;const _0x55b303=a210_0x55b3();let _0x201de6=_0x55b303[_0x319b5d];return _0x201de6;}export const DEFAULT_CONFIG_VALUES={'env':a210_0x11519e(0xc7),'format':a210_0x11519e(0xca),'locale':a210_0x11519e(0xce),'riskLevel':a210_0x11519e(0xc9),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a211_0x392f83=a211_0x4b50;(function(_0x27b6d2,_0x1eec1f){const _0x40b9aa=a211_0x4b50,_0x321a7a=_0x27b6d2();while(!![]){try{const _0x8eefc8=parseInt(_0x40b9aa(0x1d0))/0x1+parseInt(_0x40b9aa(0x1d1))/0x2*(-parseInt(_0x40b9aa(0x1dc))/0x3)+parseInt(_0x40b9aa(0x1da))/0x4+parseInt(_0x40b9aa(0x1b4))/0x5+-parseInt(_0x40b9aa(0x1b0))/0x6+-parseInt(_0x40b9aa(0x1d9))/0x7+parseInt(_0x40b9aa(0x1c0))/0x8*(parseInt(_0x40b9aa(0x1d2))/0x9);if(_0x8eefc8===_0x1eec1f)break;else _0x321a7a['push'](_0x321a7a['shift']());}catch(_0x227847){_0x321a7a['push'](_0x321a7a['shift']());}}}(a211_0x4548,0xb78cc));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_0x392f83(0x1b1),'api':'https://api.lovrabet.com','runtime':a211_0x392f83(0x1cd),'skill':'https://skills.lovrabet.com','kb':a211_0x392f83(0x1ba),'app':a211_0x392f83(0x1c8)},'nonProduction':{'user':a211_0x392f83(0x1d7),'api':a211_0x392f83(0x1b8),'runtime':a211_0x392f83(0x1b9),'skill':a211_0x392f83(0x1d6),'kb':'https://daily-api.lovrabet.com','app':a211_0x392f83(0x1d8)}},'id':{'production':{'user':a211_0x392f83(0x1c5),'api':a211_0x392f83(0x1c4),'runtime':'https://runtime.lovrabet.id','skill':a211_0x392f83(0x1c2),'kb':a211_0x392f83(0x1c4),'app':a211_0x392f83(0x1cf)},'nonProduction':{'user':a211_0x392f83(0x1c1),'api':a211_0x392f83(0x1d3),'runtime':'https://daily-runtime.lovrabet.id','skill':'https://skills-daily.lovrabet.id','kb':'https://daily-api.lovrabet.id','app':a211_0x392f83(0x1db)}},'global':{'production':{'user':a211_0x392f83(0x1bc),'api':a211_0x392f83(0x1c6),'runtime':'https://runtime.lovrabet.ai','skill':'https://skills.lovrabet.ai','kb':a211_0x392f83(0x1c6),'app':a211_0x392f83(0x1d5)},'nonProduction':{'user':a211_0x392f83(0x1bf),'api':a211_0x392f83(0x1be),'runtime':a211_0x392f83(0x1c7),'skill':a211_0x392f83(0x1cc),'kb':'https://daily-api.lovrabet.ai','app':a211_0x392f83(0x1ce)}}};function a211_0x4b50(_0x53d23f,_0x26075b){_0x53d23f=_0x53d23f-0x1b0;const _0x45488e=a211_0x4548();let _0x4b5012=_0x45488e[_0x53d23f];return _0x4b5012;}function getActiveRegionDomains(){const _0x316f21=a211_0x392f83;return REGION_DOMAINS[activeRegion][isProduction(getEnv())?_0x316f21(0x1bd):_0x316f21(0x1ca)];}export function initDomains(_0x29069a){const _0x54ddb8=a211_0x392f83;customApiDomain=_0x29069a?.[_0x54ddb8(0x1b3)],customUserDomain=_0x29069a?.[_0x54ddb8(0x1b5)],customRuntimeDomain=_0x29069a?.[_0x54ddb8(0x1cb)],customSkillDomain=_0x29069a?.[_0x54ddb8(0x1dd)],customKbDomain=_0x29069a?.['kbDomain'],customAppDomain=_0x29069a?.[_0x54ddb8(0x1b2)],activeRegion=_0x29069a?.['region']??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a211_0x392f83(0x1c9)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a211_0x392f83(0x1d4)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a211_0x392f83(0x1bb)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()['app'];export const getActiveRegion=()=>activeRegion;export function getSdkClientRoutingConfig(){const _0x215678=a211_0x392f83;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x215678(0x1d4)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion==='global')return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x5bfd07=>{const _0x19fd59=a211_0x392f83,_0x41dd5f=encodeURIComponent(_0x5bfd07[_0x19fd59(0x1b7)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x41dd5f:getAppDomain()+'/web-app/app/'+_0x41dd5f;};function a211_0x4548(){const _0x34023f=['https://daily-api.lovrabet.id','runtime','https://app.lovrabet.ai','https://skills-daily.lovrabet.com','https://user-daily.lovrabet.com','https://daily.lovrabet.com','9313675jIzwyv','2161740cjoIXL','https://daily.lovrabet.id','1997277POZkoL','skillDomain','6474894HolJbb','https://user.lovrabet.com','appDomain','apiDomain','2891985JdlxMb','userDomain','hostname','trim','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com','https://api.lovrabet.com','skill','https://user.lovrabet.ai','production','https://daily-api.lovrabet.ai','https://user-daily.lovrabet.ai','4097768wlPQNC','https://user-daily.lovrabet.id','https://skills.lovrabet.id','origin','https://api.lovrabet.id','https://user.lovrabet.id','https://api.lovrabet.ai','https://daily-runtime.lovrabet.ai','https://app.lovrabet.com','api','nonProduction','runtimeDomain','https://skills-daily.lovrabet.ai','https://runtime.lovrabet.com','https://daily.lovrabet.ai','https://app.lovrabet.id','1325296nbGatZ','4aPFPHC','36qjJeFG'];a211_0x4548=function(){return _0x34023f;};return a211_0x4548();}export const getPublishedAppDomain=_0x5ae015=>{const _0x6f3022=a211_0x392f83,_0x27e3f4=new URL(getAppDomain());return _0x27e3f4['hostname']=_0x5ae015[_0x6f3022(0x1b7)]()+'.'+_0x27e3f4[_0x6f3022(0x1b6)],_0x27e3f4[_0x6f3022(0x1c3)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a212_0xb04b08=a212_0x2cf5;function a212_0x1b49(){const _0xd6de7a=['online','415886xFnvFg','development','222388RfAnKg','613120OxyTmS','3TinSnT','production','523954MvZxjK','1110780fcNXLB','15342czrlBN','dev','1025880uFAeyD','daily','217ZweuZF'];a212_0x1b49=function(){return _0xd6de7a;};return a212_0x1b49();}(function(_0x37c6f3,_0x1b2811){const _0xe3cb8=a212_0x2cf5,_0x24e797=_0x37c6f3();while(!![]){try{const _0x4262a1=-parseInt(_0xe3cb8(0x1cb))/0x1+parseInt(_0xe3cb8(0x1d1))/0x2+-parseInt(_0xe3cb8(0x1cf))/0x3*(-parseInt(_0xe3cb8(0x1cd))/0x4)+parseInt(_0xe3cb8(0x1d5))/0x5+-parseInt(_0xe3cb8(0x1d3))/0x6*(parseInt(_0xe3cb8(0x1d7))/0x7)+parseInt(_0xe3cb8(0x1ce))/0x8+parseInt(_0xe3cb8(0x1d2))/0x9;if(_0x4262a1===_0x1b2811)break;else _0x24e797['push'](_0x24e797['shift']());}catch(_0x556146){_0x24e797['push'](_0x24e797['shift']());}}}(a212_0x1b49,0x37949));export const RABETBASE_ENV_VALUES=['production',a212_0xb04b08(0x1d6)];export function normalizeEnv(_0x44e746){const _0x34b6b1=a212_0xb04b08;return _0x44e746===_0x34b6b1(0x1ca)?_0x34b6b1(0x1d0):_0x44e746;}export function isProduction(_0x22d167){return normalizeEnv(_0x22d167)==='production';}export function isDaily(_0x1fb166){const _0x1a49e0=a212_0xb04b08;return normalizeEnv(_0x1fb166)===_0x1a49e0(0x1d6);}export function isDev(_0x396463){const _0x57847a=a212_0xb04b08,_0x4278f6=normalizeEnv(_0x396463);return _0x4278f6===_0x57847a(0x1cc)||_0x4278f6===_0x57847a(0x1d4);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a212_0xb04b08(0x1d0));function a212_0x2cf5(_0x1c51ae,_0x2260eb){_0x1c51ae=_0x1c51ae-0x1ca;const _0x1b490f=a212_0x1b49();let _0x2cf5d4=_0x1b490f[_0x1c51ae];return _0x2cf5d4;}export function getEnv(){return env;}export function initEnv(_0x2d2a89){env=normalizeEnv(_0x2d2a89);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a213_0x171061=a213_0x1482;(function(_0x431d94,_0x32e28d){const _0x4afa22=a213_0x1482,_0x2e4db8=_0x431d94();while(!![]){try{const _0x219fbe=-parseInt(_0x4afa22(0x168))/0x1+parseInt(_0x4afa22(0x167))/0x2+parseInt(_0x4afa22(0x164))/0x3*(-parseInt(_0x4afa22(0x169))/0x4)+-parseInt(_0x4afa22(0x163))/0x5*(parseInt(_0x4afa22(0x16b))/0x6)+parseInt(_0x4afa22(0x16a))/0x7+-parseInt(_0x4afa22(0x16d))/0x8+-parseInt(_0x4afa22(0x165))/0x9*(-parseInt(_0x4afa22(0x16e))/0xa);if(_0x219fbe===_0x32e28d)break;else _0x2e4db8['push'](_0x2e4db8['shift']());}catch(_0x57df3e){_0x2e4db8['push'](_0x2e4db8['shift']());}}}(a213_0x14ad,0x48e6d));function a213_0x14ad(){const _0x40ef82=['1765080DYhXlc','17220LxMmiD','json','5ORcQVW','3RxLtAA','7173iMtboe','compress','570650pldhKY','322344kRpKKi','1771676mNCURv','769181oazUej','2898834hXvhAX','pretty'];a213_0x14ad=function(){return _0x40ef82;};return a213_0x14ad();}function a213_0x1482(_0x37553e,_0x3445ae){_0x37553e=_0x37553e-0x162;const _0x14ad37=a213_0x14ad();let _0x148260=_0x14ad37[_0x37553e];return _0x148260;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a213_0x171061(0x162),a213_0x171061(0x16c),a213_0x171061(0x166)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a214_0x102c(){const _0x1fe9ff=['90yqkMId','65022MvVVNP','16vVQDbV','7644FPSyvw','1019029AoNECe','1043vbcyzQ','884930YYwAGM','52672QRBPyz','4qvPwND','496UcgVrk','138177luxoKT','35373NYLwsL','3285768ydaxgZ'];a214_0x102c=function(){return _0x1fe9ff;};return a214_0x102c();}(function(_0x5d3372,_0x48fe53){const _0x23a547=a214_0xcf25,_0x270920=_0x5d3372();while(!![]){try{const _0xb719fc=parseInt(_0x23a547(0xa0))/0x1*(-parseInt(_0x23a547(0x98))/0x2)+parseInt(_0x23a547(0x9d))/0x3*(parseInt(_0x23a547(0x99))/0x4)+parseInt(_0x23a547(0x97))/0x5+parseInt(_0x23a547(0x9f))/0x6*(parseInt(_0x23a547(0x96))/0x7)+parseInt(_0x23a547(0x9a))/0x8*(parseInt(_0x23a547(0x9b))/0x9)+parseInt(_0x23a547(0x9e))/0xa*(-parseInt(_0x23a547(0x95))/0xb)+parseInt(_0x23a547(0xa1))/0xc*(-parseInt(_0x23a547(0x9c))/0xd);if(_0xb719fc===_0x48fe53)break;else _0x270920['push'](_0x270920['shift']());}catch(_0xaedf8e){_0x270920['push'](_0x270920['shift']());}}}(a214_0x102c,0xcfa05));function a214_0xcf25(_0x555129,_0x3d2fa4){_0x555129=_0x555129-0x95;const _0x102c5c=a214_0x102c();let _0xcf253=_0x102c5c[_0x555129];return _0xcf253;}export const DEFAULT_API_DIR='./src/api';
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a215_0x439990=a215_0x47e3;function a215_0xbda9(){const _0x45b04e=['39Twabjc','2295544qyrAzy','170lQMygI','477014jTKWaK','62074hJZDdq','indonesia','includes','62514RVqnnz','2796092gEWeLs','string','3422461tgVtiW','global','19487466sRXdxK'];a215_0xbda9=function(){return _0x45b04e;};return a215_0xbda9();}(function(_0x2ba1ab,_0x13c040){const _0x35e8c7=a215_0x47e3,_0x57150e=_0x2ba1ab();while(!![]){try{const _0xb8661b=-parseInt(_0x35e8c7(0x1bd))/0x1+parseInt(_0x35e8c7(0x1be))/0x2*(-parseInt(_0x35e8c7(0x1ba))/0x3)+-parseInt(_0x35e8c7(0x1c2))/0x4+-parseInt(_0x35e8c7(0x1bc))/0x5*(parseInt(_0x35e8c7(0x1c1))/0x6)+parseInt(_0x35e8c7(0x1b7))/0x7+-parseInt(_0x35e8c7(0x1bb))/0x8+parseInt(_0x35e8c7(0x1b9))/0x9;if(_0xb8661b===_0x13c040)break;else _0x57150e['push'](_0x57150e['shift']());}catch(_0x40f032){_0x57150e['push'](_0x57150e['shift']());}}}(a215_0xbda9,0x69d52));export const LOVRABET_REGION_VALUES=['cn','id',a215_0x439990(0x1b8)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x5ded4a){const _0x55fdb6=a215_0x439990;return typeof _0x5ded4a===_0x55fdb6(0x1c3)&&LOVRABET_REGION_VALUES[_0x55fdb6(0x1c0)](_0x5ded4a);}export function isEnabledLovrabetRegion(_0x377fcc){const _0x129b31=a215_0x439990;return typeof _0x377fcc===_0x129b31(0x1c3)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x377fcc);}function a215_0x47e3(_0x26d381,_0x4c2286){_0x26d381=_0x26d381-0x1b7;const _0xbda99d=a215_0xbda9();let _0x47e3e8=_0xbda99d[_0x26d381];return _0x47e3e8;}export function normalizeLovrabetRegion(_0x3af531){const _0x17d6c6=a215_0x439990;if(_0x3af531==='china')return'cn';if(_0x3af531===_0x17d6c6(0x1bf))return'id';return isLovrabetRegion(_0x3af531)?_0x3af531:DEFAULT_LOVRABET_REGION;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a216_0x1ffb(){const _0x5a4554=['1380827chKDCd','19352pMsoFB','389078NPArGv','568kiiPLY','write','18CVdqpr','high-risk-write','22070mKqUmn','24039JEMZVr','3DVJJjp','1397UgSRAl','1915YpiUzS','708464JOEjsA'];a216_0x1ffb=function(){return _0x5a4554;};return a216_0x1ffb();}const a216_0x4221b4=a216_0x859d;(function(_0x9fc755,_0x462fbf){const _0x20ff35=a216_0x859d,_0x29b94f=_0x9fc755();while(!![]){try{const _0x4c4744=parseInt(_0x20ff35(0x9e))/0x1+parseInt(_0x20ff35(0x9f))/0x2+parseInt(_0x20ff35(0xa6))/0x3*(parseInt(_0x20ff35(0xa9))/0x4)+parseInt(_0x20ff35(0xa8))/0x5*(parseInt(_0x20ff35(0xa2))/0x6)+-parseInt(_0x20ff35(0xaa))/0x7+parseInt(_0x20ff35(0xa0))/0x8*(parseInt(_0x20ff35(0xa5))/0x9)+-parseInt(_0x20ff35(0xa4))/0xa*(parseInt(_0x20ff35(0xa7))/0xb);if(_0x4c4744===_0x462fbf)break;else _0x29b94f['push'](_0x29b94f['shift']());}catch(_0x1f6158){_0x29b94f['push'](_0x29b94f['shift']());}}}(a216_0x1ffb,0x19737));function a216_0x859d(_0x457bed,_0x120524){_0x457bed=_0x457bed-0x9e;const _0x1ffb8=a216_0x1ffb();let _0x859d2f=_0x1ffb8[_0x457bed];return _0x859d2f;}export const RISK_LEVEL_VALUES=['read',a216_0x4221b4(0xa1),a216_0x4221b4(0xa3)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xfeba6e,_0x8a8121){const _0x37d3b9=a217_0x4e46,_0x59be9a=_0xfeba6e();while(!![]){try{const _0x2b4693=-parseInt(_0x37d3b9(0xc0))/0x1*(parseInt(_0x37d3b9(0xc9))/0x2)+parseInt(_0x37d3b9(0xca))/0x3+-parseInt(_0x37d3b9(0xd7))/0x4*(parseInt(_0x37d3b9(0xbf))/0x5)+parseInt(_0x37d3b9(0xdd))/0x6+parseInt(_0x37d3b9(0xe1))/0x7+-parseInt(_0x37d3b9(0xba))/0x8*(parseInt(_0x37d3b9(0xe2))/0x9)+parseInt(_0x37d3b9(0xcc))/0xa*(parseInt(_0x37d3b9(0xdb))/0xb);if(_0x2b4693===_0x8a8121)break;else _0x59be9a['push'](_0x59be9a['shift']());}catch(_0x3d20bf){_0x59be9a['push'](_0x59be9a['shift']());}}}(a217_0x5c89,0xaf8cf));function a217_0x5c89(){const _0x4b462e=['entries','length','PAGE_SIZE','projectConfig','string','2053894IXPnOa','690726MGKFRY','ACCESS_KEY','1590mgenzE','APP','app','high-risk-write','apiDir','find','locale','globalConfig','keys','true','read','1730276maEuOu','format','defaultApp','FORMAT','216689hjbsSC','accessKey','3713748DGzTGz','env','production','cookie','1366512ULPfzZ','3398544dYxedD','trim','RISK_LEVEL','pageSize','24EdBVCq','riskLevel','object','apps','daily','15KdTuKj','1WothXf','VERBOSE','write','appcode'];a217_0x5c89=function(){return _0x4b462e;};return a217_0x5c89();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function a217_0x4e46(_0x1d0253,_0x54f4aa){_0x1d0253=_0x1d0253-0xb8;const _0x5c89f6=a217_0x5c89();let _0x4e469e=_0x5c89f6[_0x1d0253];return _0x4e469e;}function stringConfigValue(_0x1b9aa1){const _0x37bfe5=a217_0x4e46;return typeof _0x1b9aa1===_0x37bfe5(0xc8)&&_0x1b9aa1[_0x37bfe5(0xe3)]()?_0x1b9aa1['trim']():undefined;}function appProfiles(_0x387c1c){const _0x226873=a217_0x4e46;return _0x387c1c[_0x226873(0xbd)]&&typeof _0x387c1c[_0x226873(0xbd)]===_0x226873(0xbc)?_0x387c1c[_0x226873(0xbd)]:{};}function resolveDefaultAppName(_0x5d9ec5){const _0x49b104=a217_0x4e46,_0x27e1b8=stringConfigValue(_0x5d9ec5[_0x49b104(0xd9)]);if(_0x27e1b8)return _0x27e1b8;const _0x359b56=Object[_0x49b104(0xd4)](appProfiles(_0x5d9ec5));return _0x359b56[_0x49b104(0xc5)]===0x1?_0x359b56[0x0]:undefined;}function resolveTopLevelAppCode(_0x42918a){const _0x432174=a217_0x4e46;return stringConfigValue(_0x42918a['appcode'])||stringConfigValue(_0x42918a[_0x432174(0xce)]);}function normalizeRiskCeiling(_0x43c75e){const _0x1f85a5=a217_0x4e46;if(_0x43c75e===undefined||_0x43c75e===null)return undefined;if(_0x43c75e===_0x1f85a5(0xd6)||_0x43c75e===_0x1f85a5(0xc2)||_0x43c75e===_0x1f85a5(0xcf))return _0x43c75e;return _0x1f85a5(0xd6);}function resolveRiskCeiling(..._0x4126d5){const _0x3b87bf=a217_0x4e46;let _0x3f00b3;for(const _0xa2840e of _0x4126d5){const _0x39f109=normalizeRiskCeiling(_0xa2840e);_0x39f109&&(!_0x3f00b3||riskLevelOrder(_0x39f109)<riskLevelOrder(_0x3f00b3))&&(_0x3f00b3=_0x39f109);}return _0x3f00b3??DEFAULT_CONFIG_VALUES[_0x3b87bf(0xbb)];}export function resolveAppConfig({raw:_0x37240d,flags:_0x22f03d,layers:_0x1d3caf,readEnv:_0x8fde53}){const _0x197cac=a217_0x4e46,_0x58819d=_0x1d3caf?.['projectConfig']??{},_0x9f93c4=_0x1d3caf?.[_0x197cac(0xd3)]??{},_0x138fe0=!!_0x1d3caf?.['projectPath']||Object[_0x197cac(0xd4)](_0x58819d)[_0x197cac(0xc5)]>0x0,_0x2faad7=!_0x138fe0,_0x5066df=_0x138fe0?resolveDefaultAppName(_0x58819d):undefined,_0x51a92f=_0x2faad7?resolveDefaultAppName(_0x9f93c4):undefined,_0x446336=stringConfigValue(_0x22f03d[_0x197cac(0xce)]),_0xa426c4=_0x8fde53(_0x197cac(0xcd)),_0x2bb0c2={};if(_0x37240d[_0x197cac(0xbd)]&&typeof _0x37240d[_0x197cac(0xbd)]===_0x197cac(0xbc))for(const [_0x3479b0,_0x4a1677]of Object[_0x197cac(0xc4)](_0x37240d[_0x197cac(0xbd)])){_0x4a1677&&typeof _0x4a1677===_0x197cac(0xbc)&&_0x4a1677[_0x197cac(0xc3)]&&(_0x2bb0c2[_0x3479b0]=_0x4a1677);}const _0x5d9d86=_0x5066df||_0x51a92f||resolveDefaultAppName(_0x37240d),_0x453e0c=Object[_0x197cac(0xd4)](_0x2bb0c2)[_0x197cac(0xc5)]>0x0,_0x116011=_0x446336||_0x5066df||_0xa426c4||_0x51a92f||_0x5d9d86||undefined,_0x3a4ff2=stringConfigValue(_0x22f03d['appcode']),_0x4a98e1=_0x3a4ff2?Object[_0x197cac(0xc4)](_0x2bb0c2)[_0x197cac(0xd1)](([,_0x5de7e8])=>_0x5de7e8?.[_0x197cac(0xc3)]===_0x3a4ff2):undefined,_0x2d022f=_0x4a98e1?.[0x0],_0x5ae249=_0x4a98e1?.[0x1],_0x44e1af=_0x3a4ff2?_0x2d022f:_0x116011;let _0x5730f6=_0x44e1af&&_0x2bb0c2[_0x44e1af]?_0x2bb0c2[_0x44e1af]:undefined;_0x3a4ff2&&_0x5ae249&&(_0x5730f6=_0x5ae249);const _0x136918=_0x3a4ff2?_0x5ae249??_0x5730f6:_0x5730f6,_0x2e55f4=!_0x446336&&!_0x5066df&&_0xa426c4&&_0x44e1af===_0xa426c4,_0x4f2298=_0x446336||(_0x2e55f4?_0xa426c4:undefined)||(_0x3a4ff2?_0x2d022f:undefined),_0x26cd9b=_0x136918?.[_0x197cac(0xc3)],_0x591841=_0x138fe0?resolveTopLevelAppCode(_0x58819d):undefined,_0x39dace=_0x2faad7?resolveTopLevelAppCode(_0x9f93c4):undefined,_0x40ddae=_0x446336||_0x5066df?_0x26cd9b:undefined,_0x78aaca=!_0x446336&&!_0x5066df?_0x26cd9b:undefined,_0x30a832=_0x3a4ff2||_0x40ddae||_0x591841||_0x78aaca||_0x39dace||undefined,_0x17a891=_0x138fe0?stringConfigValue(_0x58819d[_0x197cac(0xde)]):undefined,_0x2f04bf=_0x2faad7?stringConfigValue(_0x9f93c4[_0x197cac(0xde)]):undefined,_0x1ec201=_0x22f03d['env']||_0x136918?.['env']||_0x17a891||_0x8fde53('ENV')||_0x2f04bf||_0x37240d[_0x197cac(0xde)]||DEFAULT_CONFIG_VALUES['env'],_0x3b4e66=_0x136918?.[_0x197cac(0xd2)]||_0x37240d[_0x197cac(0xd2)]||DEFAULT_CONFIG_VALUES[_0x197cac(0xd2)],_0x43a641=_0x8fde53('COOKIE')||_0x136918?.[_0x197cac(0xe0)]||_0x37240d[_0x197cac(0xe0)]||undefined,_0x5e2b5b=_0x8fde53(_0x197cac(0xcb))||_0x136918?.[_0x197cac(0xdc)]||_0x37240d[_0x197cac(0xdc)]||undefined,_0x456eee=_0x22f03d['format']||_0x8fde53(_0x197cac(0xda))||_0x136918?.['format']||_0x37240d[_0x197cac(0xd8)],_0x956e2e=normalizeLegacyOutputFormat(_0x456eee),_0x295aba=_0x8fde53(_0x197cac(0xc6))||_0x136918?.['pageSize']||_0x37240d[_0x197cac(0xb9)],_0x3ddb2a=_0x295aba?Number(_0x295aba)||undefined:undefined,_0x41ffb6=_0x1d3caf?[_0x1d3caf['globalConfig'][_0x197cac(0xbb)],_0x1d3caf[_0x197cac(0xc7)][_0x197cac(0xbb)]]:[_0x37240d[_0x197cac(0xbb)]],_0x867d31=resolveRiskCeiling(..._0x41ffb6,_0x136918?.[_0x197cac(0xbb)]),_0x321475=resolveRiskCeiling(_0x867d31,_0x8fde53(_0x197cac(0xb8))),_0x1a6052=_0x8fde53(_0x197cac(0xc1)),_0x20ab63=_0x1a6052==='1'||_0x1a6052===_0x197cac(0xd5),_0xdafa3d=_0x136918?.[_0x197cac(0xd0)]||_0x37240d['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],_0x2c0b1e=isDaily(normalizeEnv(String(_0x1ec201)))?_0x197cac(0xbe):_0x197cac(0xdf);return{'appCode':typeof _0x30a832===_0x197cac(0xc8)&&_0x30a832[_0x197cac(0xe3)]()?_0x30a832[_0x197cac(0xe3)]():undefined,'env':_0x2c0b1e,'locale':_0x3b4e66,'cookie':_0x43a641,'accessKey':_0x5e2b5b,'format':_0x956e2e,'pageSize':_0x3ddb2a,'riskLevel':_0x321475,'verbose':_0x20ab63,'apiDir':_0xdafa3d,'apps':_0x2bb0c2,'defaultApp':_0x5d9d86,'currentApp':_0x453e0c?_0x44e1af:undefined,'explicitAppName':_0x4f2298};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a218_0x3417(_0x1f9b33,_0x47bdef){_0x1f9b33=_0x1f9b33-0x11e;const _0x54e06d=a218_0x54e0();let _0x3417bd=_0x54e06d[_0x1f9b33];return _0x3417bd;}(function(_0x49a892,_0xde122f){const _0x4a5b62=a218_0x3417,_0x3b1627=_0x49a892();while(!![]){try{const _0xa5c7a5=-parseInt(_0x4a5b62(0x122))/0x1*(-parseInt(_0x4a5b62(0x129))/0x2)+-parseInt(_0x4a5b62(0x12b))/0x3+parseInt(_0x4a5b62(0x121))/0x4*(parseInt(_0x4a5b62(0x128))/0x5)+parseInt(_0x4a5b62(0x120))/0x6*(-parseInt(_0x4a5b62(0x11f))/0x7)+-parseInt(_0x4a5b62(0x124))/0x8*(-parseInt(_0x4a5b62(0x126))/0x9)+-parseInt(_0x4a5b62(0x11e))/0xa*(-parseInt(_0x4a5b62(0x12c))/0xb)+parseInt(_0x4a5b62(0x127))/0xc;if(_0xa5c7a5===_0xde122f)break;else _0x3b1627['push'](_0x3b1627['shift']());}catch(_0x220202){_0x3b1627['push'](_0x3b1627['shift']());}}}(a218_0x54e0,0x7972f));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a218_0x54e0(){const _0x2a9154=['22850FGEFuu','60226jRBLUX','../auth/get-cookie.js','2829336MTBiwU','3079714Xrajka','10urZDvS','28QKtEaU','1434102NWyPbU','752xbavwA','9fRRvwk','cookie','41304uOHJNA','authRequired','54HrpLHk','11466072wPxSeh'];a218_0x54e0=function(){return _0x2a9154;};return a218_0x54e0();}export async function buildAuth(_0x36ff5a){const _0x46af83=a218_0x3417,{getCookie:_0x418935}=await import(_0x46af83(0x12a)),_0x1b4044=_0x36ff5a[_0x46af83(0x123)]||_0x418935(),_0x148ca0=_0x1b4044?await getIsSessionValid():![];return{'cookie':_0x1b4044,'isLoggedIn':_0x148ca0,async 'getOrLogin'(){const _0x4907f1=_0x46af83;if(_0x1b4044&&_0x148ca0)return _0x1b4044;throw CliErrors[_0x4907f1(0x125)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a219_0x2386f7=a219_0x4cfb;(function(_0x3dfdbd,_0x4f4c8e){const _0x5680c6=a219_0x4cfb,_0x25b716=_0x3dfdbd();while(!![]){try{const _0x555acb=-parseInt(_0x5680c6(0x142))/0x1+parseInt(_0x5680c6(0x11e))/0x2*(-parseInt(_0x5680c6(0x11f))/0x3)+-parseInt(_0x5680c6(0x148))/0x4*(-parseInt(_0x5680c6(0x12d))/0x5)+parseInt(_0x5680c6(0x13b))/0x6*(-parseInt(_0x5680c6(0x149))/0x7)+-parseInt(_0x5680c6(0x147))/0x8+parseInt(_0x5680c6(0x12a))/0x9+parseInt(_0x5680c6(0x137))/0xa*(parseInt(_0x5680c6(0x146))/0xb);if(_0x555acb===_0x4f4c8e)break;else _0x25b716['push'](_0x25b716['shift']());}catch(_0x1ac4d1){_0x25b716['push'](_0x25b716['shift']());}}}(a219_0x2c80,0x1b9d7));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=a219_0x2386f7(0x135);export const CONFIG_NAMES=[NEW_CONFIG_NAME];function a219_0x2c80(){const _0x10f265=['264738TMxjnb','app','locale','riskLevel','apps','kbDomain','\x0a\x20\x20','67312MUJojo','silent','appcode','defaultApp','7062AafUYF','1503856LFECig','13204PRnkAH','35FahHGd','pageSize','missing','Project','keys','migrated','cookie','cwd','skillDomain','projectPath','Global','126658wmBtfG','9kbztwY','empty','warn','length','utf8','env','get','accessKey','stringify','config','appDomain','261540NEApgV','status','message','5kYTpJV','format','error','.tmp','data','parse','inherit','trim','.rabetbase.json','set','11630txmOIU','apiDomain','object','string'];a219_0x2c80=function(){return _0x10f265;};return a219_0x2c80();}const normalizedWriteCache=new Map();export function resolveConfigPath(_0x21ee6d){for(const _0x3c522a of CONFIG_NAMES){const _0x8746ac=resolve(_0x21ee6d,_0x3c522a);if(existsSync(_0x8746ac))return _0x8746ac;}return undefined;}export function findProjectRootDirectory(_0x33fd98=process[a219_0x2386f7(0x11a)]()){let _0x2ff05b=resolve(_0x33fd98);const {root:_0x4b850c}=parse(_0x2ff05b),_0x40fe12=homedir();while(!![]){if(resolveConfigPath(_0x2ff05b)){if(_0x2ff05b===_0x40fe12)break;return _0x2ff05b;}if(_0x2ff05b===_0x4b850c||_0x2ff05b===_0x40fe12)break;const _0x82bd18=dirname(_0x2ff05b);if(_0x82bd18===_0x2ff05b)break;_0x2ff05b=_0x82bd18;}return resolve(_0x33fd98);}export function getProjectConfigPath(){const _0xc9f308=a219_0x2386f7;return resolveConfigPath(process[_0xc9f308(0x11a)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x22ff83){const _0x3796e0=a219_0x2386f7;if(!existsSync(_0x22ff83))return{'status':'missing'};try{const _0xfc6ab5=readFileSync(_0x22ff83,{'encoding':'utf8'});if(!_0xfc6ab5?.['trim']())return{'status':_0x3796e0(0x120)};const _0x243cf5=JSON[_0x3796e0(0x132)](_0xfc6ab5);return{'status':'ok','data':_0x243cf5};}catch(_0x5ca72e){return{'status':'error','message':_0x5ca72e instanceof Error?_0x5ca72e[_0x3796e0(0x12c)]:String(_0x5ca72e)};}}function parseCliConfigJsonFile(_0x22ba52,_0x4c146d,_0x1607eb){const _0x24372a=a219_0x2386f7,_0x11e6d1=inspectCliConfigJsonFile(_0x22ba52);if(_0x11e6d1[_0x24372a(0x12b)]===_0x24372a(0x14b)||_0x11e6d1['status']===_0x24372a(0x120))return{};if(_0x11e6d1[_0x24372a(0x12b)]==='ok')return _0x11e6d1[_0x24372a(0x131)];return _0x4c146d===_0x24372a(0x121)&&_0x1607eb&&console[_0x24372a(0x12f)](CLI_BIN_NAME+':\x20'+_0x1607eb+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x22ba52+_0x24372a(0x141)+_0x11e6d1[_0x24372a(0x12c)]),{};}function a219_0x4cfb(_0x3b3b33,_0x48fafc){_0x3b3b33=_0x3b3b33-0x117;const _0x2c8052=a219_0x2c80();let _0x4cfb05=_0x2c8052[_0x3b3b33];return _0x4cfb05;}function normalizeLegacyConfigShape(_0x1d6a09){const _0x46bc78=a219_0x2386f7;if(!_0x1d6a09||typeof _0x1d6a09!==_0x46bc78(0x139))return{'config':{},'migrated':![]};const _0x2e6ff1={..._0x1d6a09},_0x500c6d=_0x2e6ff1[_0x46bc78(0x13f)]&&typeof _0x2e6ff1[_0x46bc78(0x13f)]==='object'?{..._0x2e6ff1['apps']}:{},_0x11f453=Object[_0x46bc78(0x117)](_0x500c6d)[_0x46bc78(0x122)],_0x4f48fb=_0x2e6ff1['appcode']||_0x2e6ff1[_0x46bc78(0x13c)];let _0x12d7a0=![];if(_0x4f48fb&&_0x11f453===0x0){const _0x3b1e7e=typeof _0x2e6ff1[_0x46bc78(0x145)]===_0x46bc78(0x13a)&&_0x2e6ff1[_0x46bc78(0x145)]['trim']()?_0x2e6ff1['defaultApp']:String(_0x4f48fb)['trim']();_0x500c6d[_0x3b1e7e]={'appcode':String(_0x4f48fb)[_0x46bc78(0x134)](),..._0x2e6ff1['env']!=null?{'env':_0x2e6ff1[_0x46bc78(0x124)]}:{},..._0x2e6ff1['apiDir']!=null?{'apiDir':_0x2e6ff1['apiDir']}:{},..._0x2e6ff1['cookie']!=null?{'cookie':_0x2e6ff1[_0x46bc78(0x119)]}:{},..._0x2e6ff1[_0x46bc78(0x126)]!=null?{'accessKey':_0x2e6ff1[_0x46bc78(0x126)]}:{},..._0x2e6ff1[_0x46bc78(0x12e)]!=null?{'format':_0x2e6ff1['format']}:{},..._0x2e6ff1[_0x46bc78(0x14a)]!=null?{'pageSize':_0x2e6ff1[_0x46bc78(0x14a)]}:{},..._0x2e6ff1[_0x46bc78(0x13e)]!=null?{'riskLevel':_0x2e6ff1['riskLevel']}:{},..._0x2e6ff1['locale']!=null?{'locale':_0x2e6ff1['locale']}:{}},_0x2e6ff1[_0x46bc78(0x13f)]=_0x500c6d,delete _0x2e6ff1['defaultApp'],_0x12d7a0=!![];}return(_0x46bc78(0x144)in _0x2e6ff1||'app'in _0x2e6ff1)&&(delete _0x2e6ff1[_0x46bc78(0x144)],delete _0x2e6ff1[_0x46bc78(0x13c)],_0x12d7a0=!![]),{'config':_0x2e6ff1,'migrated':_0x12d7a0};}function writeNormalizedConfigIfNeeded(_0x2b9f0d,_0x212a98){const _0x5b8257=a219_0x2386f7,_0xc3b825=JSON[_0x5b8257(0x127)](_0x212a98,null,0x2)+'\x0a';if(normalizedWriteCache[_0x5b8257(0x125)](_0x2b9f0d)===_0xc3b825)return;writeConfigFile(_0x2b9f0d,_0x212a98),normalizedWriteCache[_0x5b8257(0x136)](_0x2b9f0d,_0xc3b825);}function parseAndNormalizeConfig(_0x312e63,_0x19a162,_0x3439f1){const _0x22a00e=a219_0x2386f7,_0x4484ee=parseCliConfigJsonFile(_0x312e63,_0x19a162,_0x3439f1),_0x45d7df=normalizeLegacyConfigShape(_0x4484ee);if(_0x45d7df[_0x22a00e(0x118)])try{writeNormalizedConfigIfNeeded(_0x312e63,_0x45d7df[_0x22a00e(0x128)]);}catch{}return _0x45d7df['config'];}export function loadRawConfigLayers(_0x36a5b8){const _0x5d67aa=a219_0x2386f7;let _0x50c396={},_0x216123={};const _0x53ff69=resolveConfigPath(homedir());_0x53ff69&&(_0x50c396=parseAndNormalizeConfig(_0x53ff69,_0x5d67aa(0x121),_0x5d67aa(0x11d)));const _0xd08feb=_0x36a5b8??findProjectRootDirectory(),_0x149f33=resolveConfigPath(_0xd08feb);return _0x149f33&&(_0x216123=parseAndNormalizeConfig(_0x149f33,_0x5d67aa(0x121),_0x5d67aa(0x14c))),{'globalPath':_0x53ff69,'projectPath':_0x149f33,'globalConfig':_0x50c396,'projectConfig':_0x216123};}const INHERIT_WHITELIST=[a219_0x2386f7(0x119),a219_0x2386f7(0x126),a219_0x2386f7(0x13d),a219_0x2386f7(0x12e),a219_0x2386f7(0x13e),a219_0x2386f7(0x14a),'region','userDomain',a219_0x2386f7(0x138),'runtimeDomain',a219_0x2386f7(0x11b),a219_0x2386f7(0x140),a219_0x2386f7(0x129)];export function mergeRawConfigLayers(_0x5b6284){const _0x157141=a219_0x2386f7,{globalConfig:_0x5d7b01,projectConfig:_0x1606b0}=_0x5b6284,_0x5a2067=!!_0x5b6284[_0x157141(0x11c)]||Object[_0x157141(0x117)](_0x1606b0)['length']>0x0;if(!_0x5a2067)return mergeGlobalOnly(_0x5d7b01);return mergeProjectFirst(_0x5d7b01,_0x1606b0);}function mergeGlobalOnly(_0x44114a){const _0x18a613=a219_0x2386f7,_0xad7141={..._0x44114a};delete _0xad7141[_0x18a613(0x133)];const _0x133313=_0x44114a[_0x18a613(0x13f)]&&typeof _0x44114a[_0x18a613(0x13f)]===_0x18a613(0x139)?_0x44114a[_0x18a613(0x13f)]:{};if(Object['keys'](_0x133313)[_0x18a613(0x122)]>0x0)_0xad7141[_0x18a613(0x13f)]=_0x133313;if(_0x44114a['defaultApp'])_0xad7141['defaultApp']=_0x44114a['defaultApp'];return _0xad7141;}function mergeProjectFirst(_0x3fcb25,_0x3da275){const _0x5655e4=a219_0x2386f7,_0x2678d1={..._0x3da275};delete _0x2678d1[_0x5655e4(0x133)];for(const _0x156cd0 of INHERIT_WHITELIST){!(_0x156cd0 in _0x2678d1)&&_0x156cd0 in _0x3fcb25&&(_0x2678d1[_0x156cd0]=_0x3fcb25[_0x156cd0]);}const _0x2345d0=_0x3da275['apps']&&typeof _0x3da275[_0x5655e4(0x13f)]===_0x5655e4(0x139)?_0x3da275[_0x5655e4(0x13f)]:{};return Object[_0x5655e4(0x117)](_0x2345d0)['length']>0x0?_0x2678d1[_0x5655e4(0x13f)]=_0x2345d0:delete _0x2678d1[_0x5655e4(0x13f)],'defaultApp'in _0x3da275?_0x2678d1[_0x5655e4(0x145)]=_0x3da275[_0x5655e4(0x145)]:delete _0x2678d1[_0x5655e4(0x145)],_0x2678d1;}export function readRawConfigWithLayers(_0x1f2c44){const _0x40385a=loadRawConfigLayers(_0x1f2c44);return{'config':mergeRawConfigLayers(_0x40385a),'layers':_0x40385a};}export function readRawConfig(_0x4f9b14){return mergeRawConfigLayers(loadRawConfigLayers(_0x4f9b14));}export function readConfigFile(_0x1103fd){const _0x4ae683=a219_0x2386f7;return parseAndNormalizeConfig(_0x1103fd,_0x4ae683(0x143));}export function writeConfigFile(_0x13ec75,_0x2735ad){const _0x537f31=a219_0x2386f7,_0x4320d4=dirname(_0x13ec75);!existsSync(_0x4320d4)&&mkdirSync(_0x4320d4,{'recursive':!![]});const _0x1a72e2=_0x13ec75+_0x537f31(0x130);try{writeFileSync(_0x1a72e2,JSON[_0x537f31(0x127)](_0x2735ad,null,0x2)+'\x0a',{'encoding':_0x537f31(0x123),'mode':0x180}),renameSync(_0x1a72e2,_0x13ec75);}catch(_0x3ccbaf){try{unlinkSync(_0x1a72e2);}catch{}throw _0x3ccbaf;}}export function resolveWriteConfigPath(_0x58217f){const _0x3f88a2=a219_0x2386f7,_0x20f27d=_0x58217f==='project'?process[_0x3f88a2(0x11a)]():homedir(),_0x15a3ad=resolveConfigPath(_0x20f27d);return _0x15a3ad??resolve(_0x20f27d,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a220_0xd7d89=a220_0xb93a;(function(_0xe6b426,_0x5c1d0b){const _0x48a56d=a220_0xb93a,_0x2bf791=_0xe6b426();while(!![]){try{const _0x2048a0=parseInt(_0x48a56d(0x16d))/0x1*(parseInt(_0x48a56d(0x164))/0x2)+parseInt(_0x48a56d(0x169))/0x3*(-parseInt(_0x48a56d(0x16a))/0x4)+-parseInt(_0x48a56d(0x16b))/0x5+parseInt(_0x48a56d(0x156))/0x6*(parseInt(_0x48a56d(0x15d))/0x7)+parseInt(_0x48a56d(0x151))/0x8*(parseInt(_0x48a56d(0x158))/0x9)+parseInt(_0x48a56d(0x163))/0xa*(parseInt(_0x48a56d(0x152))/0xb)+parseInt(_0x48a56d(0x14c))/0xc*(parseInt(_0x48a56d(0x14e))/0xd);if(_0x2048a0===_0x5c1d0b)break;else _0x2bf791['push'](_0x2bf791['shift']());}catch(_0x1f3a8f){_0x2bf791['push'](_0x2bf791['shift']());}}}(a220_0x4480,0xec558));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';import{normalizeLovrabetRegion}from'./constant/region.js';import{logger}from'./utils/logger.js';function a220_0x4480(){const _0x46b57a=['object','10dCufdZ','38eIyOoz','length','setRawCommand','platformDomain','https://g.lovrabet.com/dist/lovrabet-skill','3VRPNkC','6877932wCYhGA','8577705kMhiHD','kbDomain','2521OjYzRR','region','merged','-api.ts','apiDir','env','skillHubDomain','./constant/domain.js','cookie','trim','api.ts','projectConfig','defaultApp','slice','apps','globalConfig','48JYBHof','./constant/env.js','5326061ZxIKnm','entries','template_base_url','1192qjuXFV','2692217SWOltv','project','agentDomain','runtimeDomain','6gjiBKs','keys','90855iaOBwN','cwd','raw','replace','string','6772213piaKKo','map','appcode','setLogPath','apiDomain'];a220_0x4480=function(){return _0x46b57a;};return a220_0x4480();}export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x294feb){return process.env[`RABETBASE_${_0x294feb}`]||process.env[`LOVRABET_${_0x294feb}`]||undefined;}function optionalString(_0x4d2549){const _0x39fc30=a220_0xb93a;return typeof _0x4d2549===_0x39fc30(0x15c)&&_0x4d2549[_0x39fc30(0x176)]()?_0x4d2549[_0x39fc30(0x176)]():undefined;}export async function createContext(_0x2697b7){const _0x5601f6=a220_0xb93a,{config:_0x1c8fa0,layers:_0x3844b9}=readRawConfigWithLayers(),_0x81d968=buildConfig(_0x1c8fa0,_0x2697b7,_0x3844b9);await initGlobalEnvironment(_0x81d968);const {getUserDomain:_0x2f7e9a,getApiDomain:_0x9e5ce3}=await import(_0x5601f6(0x174)),_0x50fe82={'apiDomain':_0x9e5ce3(),'userDomain':_0x2f7e9a()},_0x2af498=await buildAuth(_0x81d968);logger[_0x5601f6(0x160)](process['cwd']());const _0x55c49a=(CLI_BIN_NAME+'\x20'+process['argv'][_0x5601f6(0x149)](0x2)['join']('\x20'))['trim']();logger[_0x5601f6(0x166)](_0x55c49a);const {isNonInteractive:_0x5b1e60}=await import('./utils/is-non-interactive.js'),_0x89f67d=_0x5b1e60(_0x2697b7);return{'config':_0x81d968,'auth':_0x2af498,'logger':logger,'env':_0x50fe82,'nonInteractive':_0x89f67d};}export function buildConfigFromFlags(_0x326aa8){const {config:_0x1e03e6,layers:_0x4e338b}=readRawConfigWithLayers();return buildConfig(_0x1e03e6,_0x326aa8,_0x4e338b);}export async function initGlobalEnvironment(_0x16d60f){const _0x2b78fe=a220_0xb93a,{initEnv:_0x56ff91}=await import(_0x2b78fe(0x14d));_0x56ff91(_0x16d60f[_0x2b78fe(0x172)]);const {initDomains:_0x165912}=await import(_0x2b78fe(0x174));_0x165912({'region':normalizeLovrabetRegion(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x16e)]),'apiDomain':optionalString(_0x16d60f['raw']?.[_0x2b78fe(0x161)]),'userDomain':optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.['userDomain']),'runtimeDomain':optionalString(_0x16d60f['raw']?.[_0x2b78fe(0x155)]),'skillDomain':optionalString(_0x16d60f['raw']?.['skillDomain'])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x173)])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.['agentDomain'])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x167)]),'kbDomain':optionalString(_0x16d60f['raw']?.[_0x2b78fe(0x16c)])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x154)])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x167)]),'appDomain':optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.['appDomain'])});}function a220_0xb93a(_0x30d8dd,_0x413985){_0x30d8dd=_0x30d8dd-0x146;const _0x448074=a220_0x4480();let _0xb93a80=_0x448074[_0x30d8dd];return _0xb93a80;}export function getConfigAppCode(_0x5dc32e){const _0x4073bb=a220_0xb93a,_0x566124=readRawConfig(_0x5dc32e);if(_0x566124[_0x4073bb(0x14a)]&&typeof _0x566124['apps']==='object'){const _0x24509c=_0x566124[_0x4073bb(0x148)];if(_0x24509c)return _0x566124[_0x4073bb(0x14a)][_0x24509c]?.[_0x4073bb(0x15f)]?String(_0x566124[_0x4073bb(0x14a)][_0x24509c][_0x4073bb(0x15f)])['trim']():undefined;const _0x5bbbfa=Object['values'](_0x566124[_0x4073bb(0x14a)]);if(_0x5bbbfa['length']===0x1&&_0x5bbbfa[0x0]?.['appcode'])return String(_0x5bbbfa[0x0][_0x4073bb(0x15f)])['trim']();}const _0x2d0d9a=_0x566124[_0x4073bb(0x15f)]||_0x566124['app'];if(typeof _0x2d0d9a!==_0x4073bb(0x15c)||_0x2d0d9a[_0x4073bb(0x176)]()==='')return undefined;return _0x2d0d9a[_0x4073bb(0x176)]();}export function getMultiAppConfigs(_0x42ae32=a220_0xd7d89(0x153),_0x1f133d){const _0x4883e5=a220_0xd7d89,_0x1bcb71=loadRawConfigLayers(_0x1f133d);let _0xc4a82f,_0x7c122a;if(_0x42ae32===_0x4883e5(0x16f)){const _0x2171a6=_0x1bcb71[_0x4883e5(0x14b)][_0x4883e5(0x14a)]&&typeof _0x1bcb71['globalConfig']['apps']==='object'?_0x1bcb71[_0x4883e5(0x14b)][_0x4883e5(0x14a)]:{},_0x5b9dae=_0x1bcb71['projectConfig'][_0x4883e5(0x14a)]&&typeof _0x1bcb71[_0x4883e5(0x147)][_0x4883e5(0x14a)]===_0x4883e5(0x162)?_0x1bcb71[_0x4883e5(0x147)][_0x4883e5(0x14a)]:{};_0xc4a82f={..._0x2171a6,..._0x5b9dae};const _0x953d74=readRawConfig(_0x1f133d);_0x7c122a=_0x953d74[_0x4883e5(0x148)];}else _0xc4a82f=_0x1bcb71[_0x4883e5(0x147)]['apps'],_0x7c122a=_0x1bcb71[_0x4883e5(0x147)][_0x4883e5(0x148)];!_0x7c122a&&_0xc4a82f&&typeof _0xc4a82f===_0x4883e5(0x162)&&Object[_0x4883e5(0x157)](_0xc4a82f)[_0x4883e5(0x165)]===0x1&&(_0x7c122a=Object[_0x4883e5(0x157)](_0xc4a82f)[0x0]);if(!_0xc4a82f||typeof _0xc4a82f!==_0x4883e5(0x162)||Object['keys'](_0xc4a82f)[_0x4883e5(0x165)]===0x0)return null;return Object[_0x4883e5(0x14f)](_0xc4a82f)[_0x4883e5(0x15e)](([_0x3220a0,_0x3e9049])=>({'name':_0x3220a0,'appcode':_0x3e9049?.[_0x4883e5(0x15f)]||'','isDefault':_0x3220a0===_0x7c122a,'env':_0x3e9049?.[_0x4883e5(0x172)],'apiDir':_0x3e9049?.[_0x4883e5(0x171)],'cookie':_0x3e9049?.[_0x4883e5(0x175)]||undefined}))['filter'](_0x5da412=>_0x5da412[_0x4883e5(0x15f)]);}export function getTemplateBaseUrl(_0x352d60){const _0x55606f=a220_0xd7d89,_0x32c60b=readRawConfig(_0x352d60);if(_0x32c60b[_0x55606f(0x150)]&&typeof _0x32c60b[_0x55606f(0x150)]===_0x55606f(0x15c))return _0x32c60b[_0x55606f(0x150)][_0x55606f(0x15b)](/\/$/,'');return _0x55606f(0x168);}function buildConfig(_0x830925,_0x3cc0a1,_0x14b4b6){return{...resolveAppConfig({'raw':_0x830925,'flags':_0x3cc0a1,'layers':_0x14b4b6,'readEnv':env}),'raw':_0x830925};}export function resolveApiFilePath(_0xde82c0,_0x289497){const _0x4a9409=a220_0xd7d89,_0x5683c4=resolve(process[_0x4a9409(0x159)](),_0xde82c0),_0x40cc3b=resolve(_0x5683c4,_0x4a9409(0x146));if(!_0x289497)return _0x40cc3b;const _0x112f61=readRawConfig(),_0x5d7cd3=_0x112f61[_0x4a9409(0x14a)]&&typeof _0x112f61[_0x4a9409(0x14a)]===_0x4a9409(0x162)?_0x112f61[_0x4a9409(0x14a)]:{},_0x2723e0=Object[_0x4a9409(0x14f)](_0x5d7cd3)['find'](([,_0x9dd737])=>_0x9dd737?.['appcode']===_0x289497);if(!_0x2723e0)return _0x40cc3b;const [_0x3bffe3,_0x1b8d5f]=_0x2723e0,_0x45f3c9=typeof _0x112f61[_0x4a9409(0x148)]===_0x4a9409(0x15c)?_0x112f61[_0x4a9409(0x148)]:undefined;if(_0x1b8d5f?.['apiDir'])return _0x40cc3b;if(_0x45f3c9&&_0x3bffe3!==_0x45f3c9)return resolve(_0x5683c4,_0x3bffe3+_0x4a9409(0x170));return _0x40cc3b;}
|