@lovrabet/rabetbase-cli 2.5.6-beta.1 → 2.5.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 +15 -1
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.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/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.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/detail.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/logs.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/batch-design.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/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.d.ts +1 -0
- package/lib/commands/dataset/design-context.js +1 -0
- package/lib/commands/dataset/design-start.d.ts +1 -0
- package/lib/commands/dataset/design-start.js +1 -0
- package/lib/commands/dataset/design-status.d.ts +1 -0
- package/lib/commands/dataset/design-status.js +1 -0
- package/lib/commands/dataset/design-sync-retry.d.ts +1 -0
- package/lib/commands/dataset/design-sync-retry.js +1 -0
- package/lib/commands/dataset/design-sync-status.d.ts +1 -0
- package/lib/commands/dataset/design-sync-status.js +1 -0
- package/lib/commands/dataset/design-validate.d.ts +1 -0
- package/lib/commands/dataset/design-validate.js +1 -0
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.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/dataset/user-deleted-field-list.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/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.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/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.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/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.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/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.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/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/api-architecture-upgrade.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/domain-routing-sync.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/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.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/feishu-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/project-domain-routing.js +1 -1
- package/lib/config/region-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/constant/routing-profile.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.d.ts +11 -0
- 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/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.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/page/lr-smart-jsx.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/supported-flags.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/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.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/services/dataset-design/checkpoint.d.ts +17 -0
- package/lib/services/dataset-design/checkpoint.js +1 -0
- package/lib/services/dataset-design/commands.d.ts +6 -0
- package/lib/services/dataset-design/commands.js +1 -0
- package/lib/services/dataset-design/contract.d.ts +7 -0
- package/lib/services/dataset-design/contract.js +1 -0
- 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 +3 -2
- package/skills/rabetbase/SKILL.md +4 -4
- package/skills/rabetbase/references/rabetbase-dataset-design.md +25 -0
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +2 -255
- package/skills/rabetbase-dataset-generation/SKILL.md +45 -0
- package/skills/rabetbase-dataset-generation/references/workflow.md +60 -0
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e8348,_0x5621ed){const _0x565a64=a282_0x5a91,_0x48c9c1=_0x5e8348();while(!![]){try{const _0x17a773=parseInt(_0x565a64(0x201))/0x1+parseInt(_0x565a64(0x1f7))/0x2*(parseInt(_0x565a64(0x1fa))/0x3)+-parseInt(_0x565a64(0x200))/0x4+-parseInt(_0x565a64(0x202))/0x5*(parseInt(_0x565a64(0x1f4))/0x6)+parseInt(_0x565a64(0x1ff))/0x7+-parseInt(_0x565a64(0x1e9))/0x8+parseInt(_0x565a64(0x1e3))/0x9;if(_0x17a773===_0x5621ed)break;else _0x48c9c1['push'](_0x48c9c1['shift']());}catch(_0x2f066f){_0x48c9c1['push'](_0x48c9c1['shift']());}}}(a282_0x477b,0x3490d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a282_0x477b(){const _0x2e8b5c=['ENV','source','string','projectConfig','keys','2416400QGnyeg','riskLevel','value','production','region','locale','apps','env','PAGE_SIZE','pageSize','object','6aCGcYF','accessKey','cookie','3340VSfsZf','apiDir','read','177KMHRTk','write','ACCESS_KEY','VERBOSE','app','1500639wmFARZ','498076QRprIU','181955eEqLtm','1820185VLyZRe','entries','length','trim','format','defaultApp','high-risk-write','APP','appcode','COOKIE','4599477lZAiPw'];a282_0x477b=function(){return _0x2e8b5c;};return a282_0x477b();}function a282_0x5a91(_0x4e9dce,_0x3f8590){_0x4e9dce=_0x4e9dce-0x1dc;const _0x477b2d=a282_0x477b();let _0x5a91bd=_0x477b2d[_0x4e9dce];return _0x5a91bd;}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x26d6ca){const _0x30c615=a282_0x5a91;return typeof _0x26d6ca===_0x30c615(0x1e6)&&_0x26d6ca[_0x30c615(0x1dc)]()?_0x26d6ca[_0x30c615(0x1dc)]():undefined;}function appProfiles(_0x4e0a67){const _0x1021b4=a282_0x5a91;return _0x4e0a67[_0x1021b4(0x1ef)]&&typeof _0x4e0a67['apps']===_0x1021b4(0x1f3)?_0x4e0a67[_0x1021b4(0x1ef)]:{};}function resolveDefaultAppName(_0x48114c){const _0xef7612=a282_0x5a91,_0x5b45be=stringConfigValue(_0x48114c[_0xef7612(0x1de)]);if(_0x5b45be)return _0x5b45be;const _0x26fe5d=Object[_0xef7612(0x1e8)](appProfiles(_0x48114c));return _0x26fe5d[_0xef7612(0x204)]===0x1?_0x26fe5d[0x0]:undefined;}function resolveTopLevelAppCode(_0x5de795){const _0x42a770=a282_0x5a91;return stringConfigValue(_0x5de795[_0x42a770(0x1e1)])||stringConfigValue(_0x5de795[_0x42a770(0x1fe)]);}function normalizeRiskCeiling(_0xc6ae56){const _0x25260e=a282_0x5a91;if(_0xc6ae56===undefined||_0xc6ae56===null)return undefined;if(_0xc6ae56===_0x25260e(0x1f9)||_0xc6ae56===_0x25260e(0x1fb)||_0xc6ae56===_0x25260e(0x1df))return _0xc6ae56;return _0x25260e(0x1f9);}function resolveRiskCeiling(..._0xace424){const _0x49b548=a282_0x5a91;let _0x1aec25;for(const _0x27722c of _0xace424){const _0x685045=normalizeRiskCeiling(_0x27722c);_0x685045&&(!_0x1aec25||riskLevelOrder(_0x685045)<riskLevelOrder(_0x1aec25))&&(_0x1aec25=_0x685045);}return _0x1aec25??DEFAULT_CONFIG_VALUES[_0x49b548(0x1ea)];}export function resolveAppConfig({raw:_0x7d3679,flags:_0x2ef7d7,layers:_0x451b4c,readEnv:_0x49f197}){const _0x41996b=a282_0x5a91,_0xff945f=_0x451b4c?.[_0x41996b(0x1e7)]??{},_0x1c8323=_0x451b4c?.['globalConfig']??{},_0x281699=!!_0x451b4c?.['projectPath']||Object[_0x41996b(0x1e8)](_0xff945f)['length']>0x0,_0x53ea63=!_0x281699,_0x5a695c=_0x281699?resolveDefaultAppName(_0xff945f):undefined,_0x26fc77=_0x53ea63?resolveDefaultAppName(_0x1c8323):undefined,_0x48e943=stringConfigValue(_0x2ef7d7[_0x41996b(0x1fe)]),_0x1f82df=_0x49f197(_0x41996b(0x1e0)),_0x8484bc={};if(_0x7d3679[_0x41996b(0x1ef)]&&typeof _0x7d3679['apps']===_0x41996b(0x1f3))for(const [_0x35623c,_0x406d44]of Object[_0x41996b(0x203)](_0x7d3679[_0x41996b(0x1ef)])){_0x406d44&&typeof _0x406d44===_0x41996b(0x1f3)&&_0x406d44[_0x41996b(0x1e1)]&&(_0x8484bc[_0x35623c]=_0x406d44);}const _0x5b7706=_0x5a695c||_0x26fc77||resolveDefaultAppName(_0x7d3679),_0x51d479=Object[_0x41996b(0x1e8)](_0x8484bc)[_0x41996b(0x204)]>0x0,_0x1f7be0=_0x48e943||_0x5a695c||_0x1f82df||_0x26fc77||_0x5b7706||undefined,_0x13b5ea=stringConfigValue(_0x2ef7d7['appcode']),_0x4afd90=_0x13b5ea?Object[_0x41996b(0x203)](_0x8484bc)['filter'](([,_0x3e3f12])=>_0x3e3f12?.[_0x41996b(0x1e1)]===_0x13b5ea):[],_0x186abb=_0x48e943&&_0x8484bc[_0x48e943]?.[_0x41996b(0x1e1)]===_0x13b5ea?[_0x48e943,_0x8484bc[_0x48e943]]:undefined,_0x12058a=_0x186abb??(_0x4afd90['length']===0x1?_0x4afd90[0x0]:undefined),_0x332398=_0x12058a?.[0x0],_0x5a3fa3=_0x12058a?.[0x1],_0x1664d2=_0x13b5ea?_0x332398:_0x1f7be0;let _0x3b7558=_0x1664d2&&_0x8484bc[_0x1664d2]?_0x8484bc[_0x1664d2]:undefined;_0x13b5ea&&_0x5a3fa3&&(_0x3b7558=_0x5a3fa3);const _0x2dab00=_0x13b5ea?_0x5a3fa3??_0x3b7558:_0x3b7558,_0x23ae50=!_0x48e943&&!_0x5a695c&&_0x1f82df&&_0x1664d2===_0x1f82df,_0x28c38f=_0x48e943||(_0x23ae50?_0x1f82df:undefined)||(_0x13b5ea?_0x332398:undefined),_0x2f18a4=_0x2dab00?.[_0x41996b(0x1e1)],_0x2a20d2=_0x281699?resolveTopLevelAppCode(_0xff945f):undefined,_0x103e21=_0x53ea63?resolveTopLevelAppCode(_0x1c8323):undefined,_0x1fa2ce=_0x48e943||_0x5a695c?_0x2f18a4:undefined,_0x2ef8de=!_0x48e943&&!_0x5a695c?_0x2f18a4:undefined,_0x4ef07b=_0x13b5ea||_0x1fa2ce||_0x2a20d2||_0x2ef8de||_0x103e21||undefined,_0x249edc=_0x281699?stringConfigValue(_0xff945f[_0x41996b(0x1f0)]):undefined,_0x6a70bc=_0x53ea63?stringConfigValue(_0x1c8323[_0x41996b(0x1f0)]):undefined,_0x4636a5=_0x2ef7d7[_0x41996b(0x1f0)]||_0x2dab00?.[_0x41996b(0x1f0)]||_0x249edc||_0x49f197(_0x41996b(0x1e4))||_0x6a70bc||_0x7d3679['env']||DEFAULT_CONFIG_VALUES[_0x41996b(0x1f0)],_0x1b8fb9=_0x2dab00?.[_0x41996b(0x1ee)]||_0x7d3679['locale']||DEFAULT_CONFIG_VALUES[_0x41996b(0x1ee)],_0x3ba441=_0x49f197(_0x41996b(0x1e2))||_0x2dab00?.['cookie']||_0x7d3679[_0x41996b(0x1f6)]||undefined,_0x20472a=_0x49f197(_0x41996b(0x1fc))||_0x2dab00?.['accessKey']||_0x7d3679[_0x41996b(0x1f5)]||undefined,_0xff7efc=_0x2ef7d7[_0x41996b(0x1dd)]||_0x49f197('FORMAT')||_0x2dab00?.[_0x41996b(0x1dd)]||_0x7d3679[_0x41996b(0x1dd)],_0x41ccbd=normalizeLegacyOutputFormat(_0xff7efc),_0x2eb75e=_0x49f197(_0x41996b(0x1f1))||_0x2dab00?.['pageSize']||_0x7d3679[_0x41996b(0x1f2)],_0x4470a4=_0x2eb75e?Number(_0x2eb75e)||undefined:undefined,_0x3f962b=_0x451b4c?[_0x451b4c['globalConfig'][_0x41996b(0x1ea)],_0x451b4c[_0x41996b(0x1e7)][_0x41996b(0x1ea)]]:[_0x7d3679[_0x41996b(0x1ea)]],_0x36a152=resolveRiskCeiling(..._0x3f962b,_0x2dab00?.[_0x41996b(0x1ea)]),_0x5be125=resolveRiskCeiling(_0x36a152,_0x49f197('RISK_LEVEL')),_0x1e2660=_0x49f197(_0x41996b(0x1fd)),_0x3e85ed=_0x1e2660==='1'||_0x1e2660==='true',_0x4b00ac=_0x2dab00?.[_0x41996b(0x1f8)]||_0x7d3679['apiDir']||DEFAULT_CONFIG_VALUES[_0x41996b(0x1f8)],_0xf549af=selectConfiguredRegion({'appRegion':_0x2dab00?.['region'],'projectRegion':_0x281699?_0xff945f[_0x41996b(0x1ed)]:undefined,'globalRegion':_0x281699||_0x53ea63?_0x1c8323['region']:undefined,'mergedRegion':_0x7d3679[_0x41996b(0x1ed)]}),_0x3cccad=normalizeLovrabetRegion(_0xf549af[_0x41996b(0x1eb)])??DEFAULT_LOVRABET_REGION,_0x2bc65a=isDaily(normalizeEnv(String(_0x4636a5)))?'daily':_0x41996b(0x1ec);return{'appCode':typeof _0x4ef07b===_0x41996b(0x1e6)&&_0x4ef07b['trim']()?_0x4ef07b[_0x41996b(0x1dc)]():undefined,'region':_0x3cccad,'regionConfiguredValue':_0xf549af[_0x41996b(0x1eb)],'regionSource':_0xf549af[_0x41996b(0x1e5)],'env':_0x2bc65a,'locale':_0x1b8fb9,'cookie':_0x3ba441,'accessKey':_0x20472a,'format':_0x41ccbd,'pageSize':_0x4470a4,'riskLevel':_0x5be125,'verbose':_0x3e85ed,'apiDir':_0x4b00ac,'apps':_0x8484bc,'defaultApp':_0x5b7706,'currentApp':_0x51d479?_0x1664d2:undefined,'explicitAppName':_0x28c38f};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a283_0x2e88(_0x162eba,_0x5e5727){_0x162eba=_0x162eba-0x12b;const _0x29c095=a283_0x29c0();let _0x2e88f0=_0x29c095[_0x162eba];return _0x2e88f0;}(function(_0x25b672,_0x4a6325){const _0x5f55d6=a283_0x2e88,_0x2dd4ba=_0x25b672();while(!![]){try{const _0x5adbf6=-parseInt(_0x5f55d6(0x133))/0x1*(parseInt(_0x5f55d6(0x12d))/0x2)+parseInt(_0x5f55d6(0x135))/0x3+parseInt(_0x5f55d6(0x132))/0x4+-parseInt(_0x5f55d6(0x12f))/0x5*(-parseInt(_0x5f55d6(0x12c))/0x6)+parseInt(_0x5f55d6(0x136))/0x7+-parseInt(_0x5f55d6(0x12b))/0x8+parseInt(_0x5f55d6(0x134))/0x9;if(_0x5adbf6===_0x4a6325)break;else _0x2dd4ba['push'](_0x2dd4ba['shift']());}catch(_0x17bdea){_0x2dd4ba['push'](_0x2dd4ba['shift']());}}}(a283_0x29c0,0xbb8fe));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x488558){const _0x4a1792=a283_0x2e88,{getCookie:_0x55df5e}=await import(_0x4a1792(0x12e)),_0x1e0b74=_0x488558[_0x4a1792(0x131)]||_0x55df5e(),_0x2e093e=_0x1e0b74?await getIsSessionValid():![];return{'cookie':_0x1e0b74,'isLoggedIn':_0x2e093e,async 'getOrLogin'(){const _0x2b16ba=_0x4a1792;if(_0x1e0b74&&_0x2e093e)return _0x1e0b74;throw CliErrors[_0x2b16ba(0x130)]();}};}function a283_0x29c0(){const _0x2b48b1=['2694020EXhNTQ','51ZOkHFx','634275aXKIZF','4360923OefLzK','728679HsbqjR','5771504jaMiTy','742638CfChlN','36698vHFuwS','../auth/get-cookie.js','5CTzSpG','authRequired','cookie'];a283_0x29c0=function(){return _0x2b48b1;};return a283_0x29c0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a284_0x1ec4d2=a284_0x4a7a;(function(_0x4f2718,_0x2ed719){const _0x31260a=a284_0x4a7a,_0x5d5214=_0x4f2718();while(!![]){try{const _0x4eadb0=-parseInt(_0x31260a(0x18e))/0x1+-parseInt(_0x31260a(0x1b3))/0x2*(-parseInt(_0x31260a(0x189))/0x3)+-parseInt(_0x31260a(0x18f))/0x4+parseInt(_0x31260a(0x1a6))/0x5*(-parseInt(_0x31260a(0x195))/0x6)+-parseInt(_0x31260a(0x19c))/0x7*(parseInt(_0x31260a(0x1b9))/0x8)+parseInt(_0x31260a(0x1b2))/0x9+parseInt(_0x31260a(0x1ae))/0xa*(parseInt(_0x31260a(0x1b6))/0xb);if(_0x4eadb0===_0x2ed719)break;else _0x5d5214['push'](_0x5d5214['shift']());}catch(_0x12bdf9){_0x5d5214['push'](_0x5d5214['shift']());}}}(a284_0x7159,0x9a462));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';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a284_0x1ec4d2(0x1b7);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x365ae8){for(const _0x275769 of CONFIG_NAMES){const _0x286d54=resolve(_0x365ae8,_0x275769);if(existsSync(_0x286d54))return _0x286d54;}return undefined;}export function findProjectRootDirectory(_0x5bd4db=process['cwd']()){let _0xdb160a=resolve(_0x5bd4db);const {root:_0x3eb0be}=parse(_0xdb160a),_0x387604=homedir();while(!![]){if(resolveConfigPath(_0xdb160a)){if(_0xdb160a===_0x387604)break;return _0xdb160a;}if(_0xdb160a===_0x3eb0be||_0xdb160a===_0x387604)break;const _0x55ca40=dirname(_0xdb160a);if(_0x55ca40===_0xdb160a)break;_0xdb160a=_0x55ca40;}return resolve(_0x5bd4db);}export function getProjectConfigPath(){const _0x302eb3=a284_0x1ec4d2;return resolveConfigPath(process[_0x302eb3(0x1a7)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0xfa766c){const _0x40afb2=a284_0x1ec4d2;if(!existsSync(_0xfa766c))return{'status':_0x40afb2(0x199)};try{const _0x34c5ca=readFileSync(_0xfa766c,{'encoding':_0x40afb2(0x19e)});if(!_0x34c5ca?.[_0x40afb2(0x1ba)]())return{'status':_0x40afb2(0x1a1)};const _0x414b64=JSON[_0x40afb2(0x19d)](_0x34c5ca);return{'status':'ok','data':_0x414b64};}catch(_0x445db2){return{'status':_0x40afb2(0x19f),'message':_0x445db2 instanceof Error?_0x445db2[_0x40afb2(0x18a)]:String(_0x445db2)};}}function parseCliConfigJsonFile(_0x5995f3,_0xf22841,_0x44def7){const _0x2fe6b2=a284_0x1ec4d2,_0x436464=inspectCliConfigJsonFile(_0x5995f3);if(_0x436464[_0x2fe6b2(0x198)]===_0x2fe6b2(0x199)||_0x436464[_0x2fe6b2(0x198)]===_0x2fe6b2(0x1a1))return{};if(_0x436464['status']==='ok')return _0x436464[_0x2fe6b2(0x190)];return _0xf22841===_0x2fe6b2(0x1be)&&_0x44def7&&console[_0x2fe6b2(0x19f)](CLI_BIN_NAME+':\x20'+_0x44def7+_0x2fe6b2(0x1b4)+_0x5995f3+'\x0a\x20\x20'+_0x436464['message']),{};}function normalizeLegacyConfigShape(_0x417e5d){const _0x1da6ec=a284_0x1ec4d2;if(!_0x417e5d||typeof _0x417e5d!==_0x1da6ec(0x1b1))return{'config':{},'migrated':![]};const _0x640f06={..._0x417e5d},_0x327063=_0x640f06[_0x1da6ec(0x1a9)]&&typeof _0x640f06['apps']==='object'?{..._0x640f06[_0x1da6ec(0x1a9)]}:{},_0x29dfce=Object[_0x1da6ec(0x18c)](_0x327063)['length'],_0x1f463d=_0x640f06[_0x1da6ec(0x191)]||_0x640f06[_0x1da6ec(0x1bb)];let _0x4e2609=![];if(_0x1f463d&&_0x29dfce===0x0){const _0x4fd17f=typeof _0x640f06[_0x1da6ec(0x1b5)]===_0x1da6ec(0x19b)&&_0x640f06[_0x1da6ec(0x1b5)][_0x1da6ec(0x1ba)]()?_0x640f06[_0x1da6ec(0x1b5)]:String(_0x1f463d)[_0x1da6ec(0x1ba)]();_0x327063[_0x4fd17f]={'appcode':String(_0x1f463d)[_0x1da6ec(0x1ba)](),..._0x640f06[_0x1da6ec(0x192)]!=null?{'env':_0x640f06[_0x1da6ec(0x192)]}:{},..._0x640f06[_0x1da6ec(0x1ab)]!=null?{'apiDir':_0x640f06[_0x1da6ec(0x1ab)]}:{},..._0x640f06[_0x1da6ec(0x1a2)]!=null?{'cookie':_0x640f06[_0x1da6ec(0x1a2)]}:{},..._0x640f06[_0x1da6ec(0x1b8)]!=null?{'accessKey':_0x640f06[_0x1da6ec(0x1b8)]}:{},..._0x640f06[_0x1da6ec(0x1bc)]!=null?{'format':_0x640f06[_0x1da6ec(0x1bc)]}:{},..._0x640f06['pageSize']!=null?{'pageSize':_0x640f06[_0x1da6ec(0x194)]}:{},..._0x640f06[_0x1da6ec(0x197)]!=null?{'riskLevel':_0x640f06[_0x1da6ec(0x197)]}:{},..._0x640f06[_0x1da6ec(0x1aa)]!=null?{'locale':_0x640f06[_0x1da6ec(0x1aa)]}:{}},_0x640f06['apps']=_0x327063,delete _0x640f06[_0x1da6ec(0x1b5)],_0x4e2609=!![];}return(_0x1da6ec(0x191)in _0x640f06||'app'in _0x640f06)&&(delete _0x640f06[_0x1da6ec(0x191)],delete _0x640f06[_0x1da6ec(0x1bb)],_0x4e2609=!![]),{'config':_0x640f06,'migrated':_0x4e2609};}function writeNormalizedConfigIfNeeded(_0x3f66b,_0x4429fa){const _0x22d79b=a284_0x1ec4d2,_0x4970bd=JSON[_0x22d79b(0x1a4)](normalizeConfigForWrite(_0x4429fa),null,0x2)+'\x0a';if(normalizedWriteCache[_0x22d79b(0x188)](_0x3f66b)===_0x4970bd)return;writeConfigFile(_0x3f66b,_0x4429fa),normalizedWriteCache[_0x22d79b(0x1c1)](_0x3f66b,_0x4970bd);}function parseAndNormalizeConfig(_0x249f3,_0x24c401,_0x52f8c4){const _0x25a1b4=a284_0x1ec4d2,_0x30ba49=parseCliConfigJsonFile(_0x249f3,_0x24c401,_0x52f8c4),_0x317ce5=normalizeLegacyConfigShape(_0x30ba49);if(_0x317ce5[_0x25a1b4(0x19a)])try{writeNormalizedConfigIfNeeded(_0x249f3,_0x317ce5['config']);}catch{}return _0x317ce5[_0x25a1b4(0x193)];}export function loadRawConfigLayers(_0x22f891){const _0x435698=a284_0x1ec4d2;let _0x10f9ef={},_0x4bbbe7={};const _0x20035a=resolveConfigPath(homedir());_0x20035a&&(_0x10f9ef=parseAndNormalizeConfig(_0x20035a,_0x435698(0x1be),_0x435698(0x1a0)));const _0x550f89=_0x22f891??findProjectRootDirectory(),_0x2ba1ea=resolveConfigPath(_0x550f89);return _0x2ba1ea&&(_0x4bbbe7=parseAndNormalizeConfig(_0x2ba1ea,_0x435698(0x1be),_0x435698(0x1b0))),{'globalPath':_0x20035a,'projectPath':_0x2ba1ea,'globalConfig':_0x10f9ef,'projectConfig':_0x4bbbe7};}const INHERIT_WHITELIST=['cookie',a284_0x1ec4d2(0x1b8),a284_0x1ec4d2(0x1aa),a284_0x1ec4d2(0x1bc),a284_0x1ec4d2(0x197),a284_0x1ec4d2(0x194),'region',a284_0x1ec4d2(0x1a3),'userDomain',a284_0x1ec4d2(0x1ad),a284_0x1ec4d2(0x18b),'skillDomain',a284_0x1ec4d2(0x1ac),a284_0x1ec4d2(0x1c0),a284_0x1ec4d2(0x1a5),'localDomain',a284_0x1ec4d2(0x1af)];export function mergeRawConfigLayers(_0x4337b3){const _0x21329a=a284_0x1ec4d2,{globalConfig:_0x57f9cf,projectConfig:_0x4ba25f}=_0x4337b3,_0x45c310=!!_0x4337b3[_0x21329a(0x196)]||Object[_0x21329a(0x18c)](_0x4ba25f)[_0x21329a(0x1bf)]>0x0;if(!_0x45c310)return mergeGlobalOnly(_0x57f9cf);return mergeProjectFirst(_0x57f9cf,_0x4ba25f);}function a284_0x7159(){const _0x2a1213=['format','inherit','warn','length','kbServiceDomain','set','get','9AdBCye','message','runtimeDomain','keys','project','705555zhtKli','4954680blihYM','data','appcode','env','config','pageSize','233070hKpcJZ','projectPath','riskLevel','status','missing','migrated','string','4234370IbCtZO','parse','utf8','error','Global','empty','cookie','routing','stringify','appDomain','20TmRpyt','cwd','silent','apps','locale','apiDir','kbDomain','apiDomain','6130DvzKxs','certificateDomain','Project','object','10860642IPHRlZ','374828tJUMEp','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','defaultApp','28127zqmLlw','.rabetbase.json','accessKey','8BStZoi','trim','app'];a284_0x7159=function(){return _0x2a1213;};return a284_0x7159();}function mergeGlobalOnly(_0x4669a8){const _0x2e528c=a284_0x1ec4d2,_0x55b7ac={..._0x4669a8};delete _0x55b7ac[_0x2e528c(0x1bd)];const _0x5072bd=_0x4669a8['apps']&&typeof _0x4669a8[_0x2e528c(0x1a9)]==='object'?_0x4669a8[_0x2e528c(0x1a9)]:{};if(Object['keys'](_0x5072bd)[_0x2e528c(0x1bf)]>0x0)_0x55b7ac['apps']=_0x5072bd;if(_0x4669a8[_0x2e528c(0x1b5)])_0x55b7ac['defaultApp']=_0x4669a8['defaultApp'];return _0x55b7ac;}function mergeProjectFirst(_0x127bf3,_0x44676b){const _0x52b6cc=a284_0x1ec4d2,_0x355cea={..._0x44676b};delete _0x355cea[_0x52b6cc(0x1bd)];for(const _0x42bca9 of INHERIT_WHITELIST){!(_0x42bca9 in _0x355cea)&&_0x42bca9 in _0x127bf3&&(_0x355cea[_0x42bca9]=_0x127bf3[_0x42bca9]);}const _0x13f8aa=_0x44676b[_0x52b6cc(0x1a9)]&&typeof _0x44676b[_0x52b6cc(0x1a9)]===_0x52b6cc(0x1b1)?_0x44676b['apps']:{};return Object['keys'](_0x13f8aa)[_0x52b6cc(0x1bf)]>0x0?_0x355cea['apps']=_0x13f8aa:delete _0x355cea[_0x52b6cc(0x1a9)],_0x52b6cc(0x1b5)in _0x44676b?_0x355cea[_0x52b6cc(0x1b5)]=_0x44676b['defaultApp']:delete _0x355cea[_0x52b6cc(0x1b5)],_0x355cea;}export function readRawConfigWithLayers(_0x250166){const _0x4d2622=loadRawConfigLayers(_0x250166);return{'config':mergeRawConfigLayers(_0x4d2622),'layers':_0x4d2622};}export function readRawConfig(_0x5a3c79){return mergeRawConfigLayers(loadRawConfigLayers(_0x5a3c79));}function a284_0x4a7a(_0x1486d4,_0x8a7ae6){_0x1486d4=_0x1486d4-0x188;const _0x715953=a284_0x7159();let _0x4a7a3f=_0x715953[_0x1486d4];return _0x4a7a3f;}export function readConfigFile(_0x2eb74e){const _0x4fe041=a284_0x1ec4d2;return parseAndNormalizeConfig(_0x2eb74e,_0x4fe041(0x1a8));}export function writeConfigFile(_0x467edd,_0x2b26c8){const _0x59a9dc=a284_0x1ec4d2,_0x47e0fd=dirname(_0x467edd);!existsSync(_0x47e0fd)&&mkdirSync(_0x47e0fd,{'recursive':!![]});const _0xe49a40=_0x467edd+'.tmp';try{const _0xb5655c=normalizeConfigForWrite(_0x2b26c8);writeFileSync(_0xe49a40,JSON['stringify'](_0xb5655c,null,0x2)+'\x0a',{'encoding':_0x59a9dc(0x19e),'mode':0x180}),renameSync(_0xe49a40,_0x467edd);}catch(_0x1a046d){try{unlinkSync(_0xe49a40);}catch{}throw _0x1a046d;}}export function resolveWriteConfigPath(_0x17a904){const _0x3d3b6f=a284_0x1ec4d2,_0x18f85c=_0x17a904===_0x3d3b6f(0x18d)?process['cwd']():homedir(),_0x441731=resolveConfigPath(_0x18f85c);return _0x441731??resolve(_0x18f85c,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a279_0x5a5500=a279_0x48b0;(function(_0x1ea5ef,_0x32236a){const _0x53b733=a279_0x48b0,_0x20f61b=_0x1ea5ef();while(!![]){try{const _0x36a7e3=parseInt(_0x53b733(0x200))/0x1+parseInt(_0x53b733(0x1f4))/0x2+parseInt(_0x53b733(0x1f0))/0x3+-parseInt(_0x53b733(0x1ca))/0x4+parseInt(_0x53b733(0x1ec))/0x5*(parseInt(_0x53b733(0x20c))/0x6)+-parseInt(_0x53b733(0x1fa))/0x7*(-parseInt(_0x53b733(0x207))/0x8)+parseInt(_0x53b733(0x1ef))/0x9*(-parseInt(_0x53b733(0x204))/0xa);if(_0x36a7e3===_0x32236a)break;else _0x20f61b['push'](_0x20f61b['shift']());}catch(_0x22db79){_0x20f61b['push'](_0x20f61b['shift']());}}}(a279_0x13dd,0x4f91c));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{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x84677b){return process.env[`RABETBASE_${_0x84677b}`]||process.env[`LOVRABET_${_0x84677b}`]||undefined;}function optionalString(_0xff83c){const _0x4e05e3=a279_0x48b0;return typeof _0xff83c===_0x4e05e3(0x1d7)&&_0xff83c[_0x4e05e3(0x1d0)]()?_0xff83c['trim']():undefined;}function a279_0x48b0(_0x3a8f05,_0x30f2a6){_0x3a8f05=_0x3a8f05-0x1c6;const _0x13dd1b=a279_0x13dd();let _0x48b0db=_0x13dd1b[_0x3a8f05];return _0x48b0db;}export function isRoutingRecoveryService(_0x11f4a9){const _0x2ed859=a279_0x48b0;return _0x11f4a9===_0x2ed859(0x1d8)||_0x11f4a9===_0x2ed859(0x1dd);}export async function createContext(_0x32a464){const _0x35bf7c=a279_0x48b0,{config:_0x3c29e9,layers:_0x32159a}=readRawConfigWithLayers(),_0x4990d4=buildConfig(_0x3c29e9,_0x32a464,_0x32159a);await initGlobalEnvironment(_0x4990d4);const {getUserDomain:_0x1ade4a,getApiDomain:_0x3f63de}=await import(_0x35bf7c(0x1d4)),_0x2b62bb={'apiDomain':_0x3f63de(),'userDomain':_0x1ade4a()},_0x50111d=await buildAuth(_0x4990d4);logger['setLogPath'](process[_0x35bf7c(0x209)]());const _0x1c5ed5=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)[_0x35bf7c(0x1f9)]('\x20'))[_0x35bf7c(0x1d0)]();logger['setRawCommand'](_0x1c5ed5);const {isNonInteractive:_0x3b4541}=await import(_0x35bf7c(0x1ed)),_0x15dbd7=_0x3b4541(_0x32a464);return{'config':_0x4990d4,'auth':_0x50111d,'logger':logger,'env':_0x2b62bb,'nonInteractive':_0x15dbd7};}export function buildConfigFromFlags(_0x207a56){const {config:_0x45b6fd,layers:_0x1d0784}=readRawConfigWithLayers();return buildConfig(_0x45b6fd,_0x207a56,_0x1d0784);}export async function initGlobalEnvironment(_0x3ae266){const _0x5f02fe=a279_0x48b0,_0x6e918=_0x3ae266[_0x5f02fe(0x1d6)]===_0x5f02fe(0x1d2)&&_0x3ae266[_0x5f02fe(0x1e8)]?'app\x20profile\x20\x22'+_0x3ae266['currentApp']+'\x22':_0x3ae266[_0x5f02fe(0x1d6)]===_0x5f02fe(0x1e9)?_0x5f02fe(0x20e):_0x3ae266[_0x5f02fe(0x1d6)]===_0x5f02fe(0x1f7)?_0x5f02fe(0x1e7):_0x5f02fe(0x1f8);await initConfiguredEnvironment({'raw':_0x3ae266[_0x5f02fe(0x1e3)],'configuredRegion':_0x3ae266['regionConfiguredValue']??_0x3ae266[_0x5f02fe(0x1e3)]?.[_0x5f02fe(0x1fd)]??_0x3ae266[_0x5f02fe(0x1fd)],'regionLocation':_0x6e918,'targetEnv':_0x3ae266[_0x5f02fe(0x20a)]});}async function initConfiguredEnvironment(_0x1e3421){const _0x13fdc5=a279_0x48b0,_0x3a9696=resolveConfiguredRegion(_0x1e3421['configuredRegion'],_0x1e3421[_0x13fdc5(0x1e1)]),_0x16debb=resolveEnterpriseRoutingManifest(_0x1e3421[_0x13fdc5(0x1e3)]?.['routing']),_0x47ea22={'region':_0x3a9696,'apiDomain':_0x16debb?_0x16debb['domains'][_0x13fdc5(0x1cd)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['apiDomain']),'userDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)]['userDomain']:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['userDomain']),'runtimeDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)][_0x13fdc5(0x1e6)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.[_0x13fdc5(0x1e6)]),'skillDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)][_0x13fdc5(0x1d9)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['skillDomain'])||optionalString(_0x1e3421['raw']?.[_0x13fdc5(0x1d1)])||optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.[_0x13fdc5(0x1c7)])||optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.[_0x13fdc5(0x1c8)]),'kbDomain':_0x16debb?_0x16debb['domains'][_0x13fdc5(0x1de)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['kbDomain'])||optionalString(_0x1e3421['raw']?.['agentDomain'])||optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['platformDomain']),'kbServiceDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)][_0x13fdc5(0x1f5)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['kbServiceDomain']),'appDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)]['appDomain']:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['appDomain']),'localDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)][_0x13fdc5(0x205)]:optionalString(_0x1e3421['raw']?.[_0x13fdc5(0x205)]),'certificateDomain':_0x16debb?_0x16debb['domains']['certificateDomain']:optionalString(_0x1e3421['raw']?.[_0x13fdc5(0x1d3)]),'cdn':_0x16debb?.[_0x13fdc5(0x1dc)],'allowOfficialKbServiceDefault':!(_0x16debb!==undefined||[_0x13fdc5(0x1cd),_0x13fdc5(0x1eb),_0x13fdc5(0x1e6),_0x13fdc5(0x1d9),'skillHubDomain',_0x13fdc5(0x1de),_0x13fdc5(0x1f5),_0x13fdc5(0x1c7),_0x13fdc5(0x1c8),_0x13fdc5(0x1ee),_0x13fdc5(0x205),_0x13fdc5(0x1d3)][_0x13fdc5(0x1fe)](_0x37cbb4=>Object[_0x13fdc5(0x1c6)][_0x13fdc5(0x203)]['call'](_0x1e3421[_0x13fdc5(0x1e3)]??{},_0x37cbb4)))},{initEnv:_0x1db586}=await import(_0x13fdc5(0x1cb)),{initDomains:_0x5c5cf8}=await import('./constant/domain.js');_0x1db586(_0x1e3421['targetEnv']),_0x5c5cf8(_0x47ea22);}export async function initMultiAppEnvironment(_0x3b3bd6){const _0x3084f1=a279_0x48b0;await initConfiguredEnvironment({'raw':_0x3b3bd6[_0x3084f1(0x1ff)],'configuredRegion':_0x3b3bd6[_0x3084f1(0x1fd)],'regionLocation':_0x3084f1(0x1db)+_0x3b3bd6[_0x3084f1(0x1e4)]+'\x22','targetEnv':_0x3b3bd6[_0x3084f1(0x20a)]==='daily'?_0x3084f1(0x1f1):_0x3084f1(0x202)});}export function getConfigAppCode(_0x39b3a5){const _0x4292e6=a279_0x48b0,_0x1c6e7f=readRawConfig(_0x39b3a5);if(_0x1c6e7f[_0x4292e6(0x1e0)]&&typeof _0x1c6e7f['apps']==='object'){const _0x3fcc91=_0x1c6e7f[_0x4292e6(0x1cc)];if(_0x3fcc91)return _0x1c6e7f[_0x4292e6(0x1e0)][_0x3fcc91]?.['appcode']?String(_0x1c6e7f[_0x4292e6(0x1e0)][_0x3fcc91][_0x4292e6(0x1e5)])[_0x4292e6(0x1d0)]():undefined;const _0x521914=Object[_0x4292e6(0x1f3)](_0x1c6e7f[_0x4292e6(0x1e0)]);if(_0x521914['length']===0x1&&_0x521914[0x0]?.['appcode'])return String(_0x521914[0x0]['appcode'])[_0x4292e6(0x1d0)]();}const _0x40ba11=_0x1c6e7f[_0x4292e6(0x1e5)]||_0x1c6e7f['app'];if(typeof _0x40ba11!=='string'||_0x40ba11[_0x4292e6(0x1d0)]()==='')return undefined;return _0x40ba11[_0x4292e6(0x1d0)]();}function a279_0x13dd(){const _0x9e21cf=['routing','keys','trim','skillHubDomain','app','certificateDomain','./constant/domain.js','apiGroup','regionSource','string','config','skillDomain','length','app\x20profile\x20\x22','cdn','doctor','kbDomain','call','apps','regionLocation','globalConfig','raw','name','appcode','runtimeDomain','global\x20Rabetbase\x20configuration','currentApp','project','template_base_url','userDomain','4790XagGVs','./utils/is-non-interactive.js','appDomain','1062OSWiwe','526998aOAZSz','daily','https://g.lovrabet.com/dist/lovrabet-skill','values','301916uZVsUu','kbServiceDomain','projectConfig','global','Rabetbase\x20configuration','join','48426Kcqedm','entries','object','region','some','routingConfig','613474qbtFxw','apiDir','production','hasOwnProperty','58280UuFTUa','localDomain','source','328kBwTGu','domains','cwd','env','filePath','1614YhHBcY','cookie','project\x20Rabetbase\x20configuration','prototype','agentDomain','platformDomain','filter','1871272GOriqt','./constant/env.js','defaultApp','apiDomain'];a279_0x13dd=function(){return _0x9e21cf;};return a279_0x13dd();}const CONNECTION_ROUTING_KEYS=[a279_0x5a5500(0x1ce),a279_0x5a5500(0x1cd),a279_0x5a5500(0x1eb),a279_0x5a5500(0x1e6),a279_0x5a5500(0x1d9),a279_0x5a5500(0x1d1),'kbDomain',a279_0x5a5500(0x1f5),a279_0x5a5500(0x1c7),a279_0x5a5500(0x1c8),'appDomain',a279_0x5a5500(0x205),a279_0x5a5500(0x1d3)];function withAppProfileRouting(_0xdf34aa,_0x2c706f){const _0x5c1199=a279_0x5a5500;if(!_0x2c706f||_0x2c706f[_0x5c1199(0x1f5)]===undefined)return _0xdf34aa;return{..._0xdf34aa,'kbServiceDomain':_0x2c706f[_0x5c1199(0x1f5)]};}function pickConnectionRoutingConfig(_0x4440ca,_0x5f41b7){const _0xa86ba7={'region':_0x5f41b7};for(const _0x15a0db of CONNECTION_ROUTING_KEYS){if(_0x4440ca[_0x15a0db]!==undefined)_0xa86ba7[_0x15a0db]=_0x4440ca[_0x15a0db];}return _0xa86ba7;}export function getMultiAppConfigs(_0x4faf5d=a279_0x5a5500(0x1e9),_0x4d6505){const _0x459181=a279_0x5a5500,_0x352b65=loadRawConfigLayers(_0x4d6505);let _0xd0c7f6,_0xf959cb;const _0x51d436=mergeRawConfigLayers(_0x352b65),_0x2722ff=_0x352b65[_0x459181(0x1e2)][_0x459181(0x1e0)]&&typeof _0x352b65['globalConfig'][_0x459181(0x1e0)]===_0x459181(0x1fc)?_0x352b65[_0x459181(0x1e2)][_0x459181(0x1e0)]:{},_0x35ab04=_0x352b65[_0x459181(0x1f6)][_0x459181(0x1e0)]&&typeof _0x352b65[_0x459181(0x1f6)][_0x459181(0x1e0)]==='object'?_0x352b65['projectConfig'][_0x459181(0x1e0)]:{};_0x4faf5d==='merged'?(_0xd0c7f6={..._0x2722ff,..._0x35ab04},_0xf959cb=_0x51d436['defaultApp']):(_0xd0c7f6=_0x352b65['projectConfig']['apps'],_0xf959cb=_0x352b65[_0x459181(0x1f6)]['defaultApp']);!_0xf959cb&&_0xd0c7f6&&typeof _0xd0c7f6==='object'&&Object['keys'](_0xd0c7f6)[_0x459181(0x1da)]===0x1&&(_0xf959cb=Object[_0x459181(0x1cf)](_0xd0c7f6)[0x0]);if(!_0xd0c7f6||typeof _0xd0c7f6!=='object'||Object['keys'](_0xd0c7f6)[_0x459181(0x1da)]===0x0)return null;return Object[_0x459181(0x1fb)](_0xd0c7f6)['map'](([_0x56a6fa,_0x2b9faf])=>{const _0x1f92a8=_0x459181,_0x5a096b=_0x4faf5d===_0x1f92a8(0x1e9)||Object[_0x1f92a8(0x1c6)][_0x1f92a8(0x203)][_0x1f92a8(0x1df)](_0x35ab04,_0x56a6fa),_0x1ae6d6=withAppProfileRouting(_0x5a096b?_0x51d436:_0x352b65[_0x1f92a8(0x1e2)],_0x2b9faf),_0x1a52f5=resolveEffectiveRegion({'appRegion':_0x2b9faf?.[_0x1f92a8(0x1fd)],'projectRegion':_0x5a096b?_0x352b65[_0x1f92a8(0x1f6)][_0x1f92a8(0x1fd)]:undefined,'globalRegion':_0x352b65[_0x1f92a8(0x1e2)][_0x1f92a8(0x1fd)],'mergedRegion':_0x1ae6d6['region'],'appName':_0x56a6fa});return{'name':_0x56a6fa,'appcode':_0x2b9faf?.[_0x1f92a8(0x1e5)]||'','apiGroup':optionalString(_0x2b9faf?.[_0x1f92a8(0x1d5)]),'isDefault':_0x56a6fa===_0xf959cb,'region':_0x1a52f5[_0x1f92a8(0x1fd)],'regionSource':_0x1a52f5[_0x1f92a8(0x206)],'env':_0x2b9faf?.[_0x1f92a8(0x20a)],'apiDir':optionalString(_0x2b9faf?.[_0x1f92a8(0x201)])||optionalString(_0x1ae6d6['apiDir']),'cookie':_0x2b9faf?.[_0x1f92a8(0x20d)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x1ae6d6,_0x1a52f5[_0x1f92a8(0x1fd)])};})[_0x459181(0x1c9)](_0xf942c3=>_0xf942c3[_0x459181(0x1e5)]);}export function getTemplateBaseUrl(_0x6f97b3){const _0x4b52cc=a279_0x5a5500,_0x36c3fd=readRawConfig(_0x6f97b3);if(_0x36c3fd[_0x4b52cc(0x1ea)]&&typeof _0x36c3fd['template_base_url']===_0x4b52cc(0x1d7))return _0x36c3fd['template_base_url']['replace'](/\/$/,'');return _0x4b52cc(0x1f2);}function buildConfig(_0x31e8c2,_0xf8898,_0x256b9c){const _0x2bf79d=a279_0x5a5500,_0x3e0d80=resolveAppConfig({'raw':_0x31e8c2,'flags':_0xf8898,'layers':_0x256b9c,'readEnv':env}),_0x33f154=_0x3e0d80[_0x2bf79d(0x1e8)]?_0x3e0d80[_0x2bf79d(0x1e0)][_0x3e0d80[_0x2bf79d(0x1e8)]]:undefined;return{..._0x3e0d80,'raw':withAppProfileRouting(_0x31e8c2,_0x33f154)};}export function resolveApiFilePath(_0x1993f7,_0x45106c,_0x489c26){const _0x618578=a279_0x5a5500;return resolveApiModelSource(_0x1993f7,_0x45106c,_0x489c26)[_0x618578(0x20b)];}
|
|
1
|
+
const a285_0x1bd4f0=a285_0x3b8b;(function(_0x5540e9,_0x3ece0e){const _0x86eef1=a285_0x3b8b,_0x2563f1=_0x5540e9();while(!![]){try{const _0x108c21=-parseInt(_0x86eef1(0x1f6))/0x1*(parseInt(_0x86eef1(0x1fe))/0x2)+parseInt(_0x86eef1(0x1d1))/0x3+-parseInt(_0x86eef1(0x1ee))/0x4+-parseInt(_0x86eef1(0x1e6))/0x5+parseInt(_0x86eef1(0x1d0))/0x6*(-parseInt(_0x86eef1(0x1ec))/0x7)+parseInt(_0x86eef1(0x20f))/0x8*(-parseInt(_0x86eef1(0x1fc))/0x9)+parseInt(_0x86eef1(0x203))/0xa;if(_0x108c21===_0x3ece0e)break;else _0x2563f1['push'](_0x2563f1['shift']());}catch(_0x339719){_0x2563f1['push'](_0x2563f1['shift']());}}}(a285_0x12b8,0x814a8));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';function a285_0x12b8(){const _0x55e830=['app\x20profile\x20\x22','skillDomain','5618454OShEkZ','1049181bpmugJ','join','setLogPath','routingConfig','setRawCommand','projectConfig','userDomain','config','agentDomain','some','regionSource','apiDomain','cwd','entries','skillHubDomain','./utils/is-non-interactive.js','kbServiceDomain','daily','routing','region','runtimeDomain','1621840RgJExY','replace','project','values','template_base_url','kbDomain','7ROYuHL','trim','2691260tdYvyc','currentApp','global\x20Rabetbase\x20configuration','certificateDomain','project\x20Rabetbase\x20configuration','apiGroup','argv','production','24147SFMKqJ','string','keys','targetEnv','cdn','hasOwnProperty','9LjlaAS','globalConfig','50spzIHp','global','appDomain','env','merged','36493970pWczkj','length','name','platformDomain','object','prototype','map','./constant/domain.js','slice','appcode','Rabetbase\x20configuration','https://g.lovrabet.com/dist/lovrabet-skill','7458248naPnQG','apps','apiDir','raw','call','app','domains','filePath','localDomain','defaultApp'];a285_0x12b8=function(){return _0x55e830;};return a285_0x12b8();}function a285_0x3b8b(_0x9a06d9,_0x477bab){_0x9a06d9=_0x9a06d9-0x1cd;const _0x12b8e4=a285_0x12b8();let _0x3b8bf5=_0x12b8e4[_0x9a06d9];return _0x3b8bf5;}import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x5e9685){return process.env[`RABETBASE_${_0x5e9685}`]||process.env[`LOVRABET_${_0x5e9685}`]||undefined;}function optionalString(_0x5b4a6f){const _0x19519a=a285_0x3b8b;return typeof _0x5b4a6f===_0x19519a(0x1f7)&&_0x5b4a6f[_0x19519a(0x1ed)]()?_0x5b4a6f[_0x19519a(0x1ed)]():undefined;}export function isRoutingRecoveryService(_0x1cc21b){const _0x4f333c=a285_0x3b8b;return _0x1cc21b===_0x4f333c(0x1d8)||_0x1cc21b==='doctor';}export async function createContext(_0x4a542f){const _0x4c920b=a285_0x3b8b,{config:_0x3b13a1,layers:_0x301b73}=readRawConfigWithLayers(),_0x4e9811=buildConfig(_0x3b13a1,_0x4a542f,_0x301b73);await initGlobalEnvironment(_0x4e9811);const {getUserDomain:_0x13ea15,getApiDomain:_0x1a7e22}=await import(_0x4c920b(0x20a)),_0x491b07={'apiDomain':_0x1a7e22(),'userDomain':_0x13ea15()},_0x111789=await buildAuth(_0x4e9811);logger[_0x4c920b(0x1d3)](process[_0x4c920b(0x1dd)]());const _0x8fdb79=(CLI_BIN_NAME+'\x20'+process[_0x4c920b(0x1f4)][_0x4c920b(0x20b)](0x2)[_0x4c920b(0x1d2)]('\x20'))[_0x4c920b(0x1ed)]();logger[_0x4c920b(0x1d5)](_0x8fdb79);const {isNonInteractive:_0x3a24ad}=await import(_0x4c920b(0x1e0)),_0xe5442b=_0x3a24ad(_0x4a542f);return{'config':_0x4e9811,'auth':_0x111789,'logger':logger,'env':_0x491b07,'nonInteractive':_0xe5442b};}export function buildConfigFromFlags(_0x47c527){const {config:_0x54db97,layers:_0x19c84e}=readRawConfigWithLayers();return buildConfig(_0x54db97,_0x47c527,_0x19c84e);}export async function initGlobalEnvironment(_0x123198){const _0x15e78f=a285_0x3b8b,_0x320a43=_0x123198[_0x15e78f(0x1db)]===_0x15e78f(0x214)&&_0x123198[_0x15e78f(0x1ef)]?'app\x20profile\x20\x22'+_0x123198[_0x15e78f(0x1ef)]+'\x22':_0x123198['regionSource']==='project'?_0x15e78f(0x1f2):_0x123198[_0x15e78f(0x1db)]===_0x15e78f(0x1ff)?_0x15e78f(0x1f0):_0x15e78f(0x20d);await initConfiguredEnvironment({'raw':_0x123198[_0x15e78f(0x212)],'configuredRegion':_0x123198['regionConfiguredValue']??_0x123198[_0x15e78f(0x212)]?.[_0x15e78f(0x1e4)]??_0x123198['region'],'regionLocation':_0x320a43,'targetEnv':_0x123198[_0x15e78f(0x201)]});}async function initConfiguredEnvironment(_0x1ad266){const _0xf868ad=a285_0x3b8b,_0x32d127=resolveConfiguredRegion(_0x1ad266['configuredRegion'],_0x1ad266['regionLocation']),_0x3ef506=resolveEnterpriseRoutingManifest(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1e3)]),_0x17edab={'region':_0x32d127,'apiDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)][_0xf868ad(0x1dc)]:optionalString(_0x1ad266['raw']?.['apiDomain']),'userDomain':_0x3ef506?_0x3ef506['domains'][_0xf868ad(0x1d7)]:optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1d7)]),'runtimeDomain':_0x3ef506?_0x3ef506['domains'][_0xf868ad(0x1e5)]:optionalString(_0x1ad266['raw']?.[_0xf868ad(0x1e5)]),'skillDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)][_0xf868ad(0x1cf)]:optionalString(_0x1ad266['raw']?.['skillDomain'])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1df)])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1d9)])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x206)]),'kbDomain':_0x3ef506?_0x3ef506['domains'][_0xf868ad(0x1eb)]:optionalString(_0x1ad266['raw']?.[_0xf868ad(0x1eb)])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1d9)])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x206)]),'kbServiceDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)]['kbServiceDomain']:optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1e1)]),'appDomain':_0x3ef506?_0x3ef506['domains'][_0xf868ad(0x200)]:optionalString(_0x1ad266[_0xf868ad(0x212)]?.['appDomain']),'localDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)][_0xf868ad(0x217)]:optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x217)]),'certificateDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)]['certificateDomain']:optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1f1)]),'cdn':_0x3ef506?.[_0xf868ad(0x1fa)],'allowOfficialKbServiceDefault':!(_0x3ef506!==undefined||[_0xf868ad(0x1dc),_0xf868ad(0x1d7),'runtimeDomain',_0xf868ad(0x1cf),_0xf868ad(0x1df),_0xf868ad(0x1eb),_0xf868ad(0x1e1),_0xf868ad(0x1d9),_0xf868ad(0x206),_0xf868ad(0x200),_0xf868ad(0x217),_0xf868ad(0x1f1)][_0xf868ad(0x1da)](_0x55d486=>Object[_0xf868ad(0x208)]['hasOwnProperty'][_0xf868ad(0x213)](_0x1ad266[_0xf868ad(0x212)]??{},_0x55d486)))},{initEnv:_0xb9f998}=await import('./constant/env.js'),{initDomains:_0x44bc52}=await import(_0xf868ad(0x20a));_0xb9f998(_0x1ad266[_0xf868ad(0x1f9)]),_0x44bc52(_0x17edab);}export async function initMultiAppEnvironment(_0x5894e8){const _0x376287=a285_0x3b8b;await initConfiguredEnvironment({'raw':_0x5894e8[_0x376287(0x1d4)],'configuredRegion':_0x5894e8[_0x376287(0x1e4)],'regionLocation':_0x376287(0x1ce)+_0x5894e8[_0x376287(0x205)]+'\x22','targetEnv':_0x5894e8['env']==='daily'?_0x376287(0x1e2):_0x376287(0x1f5)});}export function getConfigAppCode(_0x559972){const _0x53f8a0=a285_0x3b8b,_0x57448e=readRawConfig(_0x559972);if(_0x57448e['apps']&&typeof _0x57448e[_0x53f8a0(0x210)]==='object'){const _0x573739=_0x57448e[_0x53f8a0(0x1cd)];if(_0x573739)return _0x57448e[_0x53f8a0(0x210)][_0x573739]?.[_0x53f8a0(0x20c)]?String(_0x57448e['apps'][_0x573739][_0x53f8a0(0x20c)])[_0x53f8a0(0x1ed)]():undefined;const _0x3c4be1=Object[_0x53f8a0(0x1e9)](_0x57448e[_0x53f8a0(0x210)]);if(_0x3c4be1[_0x53f8a0(0x204)]===0x1&&_0x3c4be1[0x0]?.[_0x53f8a0(0x20c)])return String(_0x3c4be1[0x0][_0x53f8a0(0x20c)])[_0x53f8a0(0x1ed)]();}const _0x4a46b7=_0x57448e[_0x53f8a0(0x20c)]||_0x57448e[_0x53f8a0(0x214)];if(typeof _0x4a46b7!=='string'||_0x4a46b7[_0x53f8a0(0x1ed)]()==='')return undefined;return _0x4a46b7['trim']();}const CONNECTION_ROUTING_KEYS=[a285_0x1bd4f0(0x1e3),a285_0x1bd4f0(0x1dc),a285_0x1bd4f0(0x1d7),a285_0x1bd4f0(0x1e5),'skillDomain',a285_0x1bd4f0(0x1df),a285_0x1bd4f0(0x1eb),a285_0x1bd4f0(0x1e1),a285_0x1bd4f0(0x1d9),a285_0x1bd4f0(0x206),a285_0x1bd4f0(0x200),a285_0x1bd4f0(0x217),a285_0x1bd4f0(0x1f1)];function withAppProfileRouting(_0x5be3f4,_0x771660){const _0x5da480=a285_0x1bd4f0;if(!_0x771660||_0x771660[_0x5da480(0x1e1)]===undefined)return _0x5be3f4;return{..._0x5be3f4,'kbServiceDomain':_0x771660[_0x5da480(0x1e1)]};}function pickConnectionRoutingConfig(_0x430639,_0x390a30){const _0x2a9f65={'region':_0x390a30};for(const _0x58797e of CONNECTION_ROUTING_KEYS){if(_0x430639[_0x58797e]!==undefined)_0x2a9f65[_0x58797e]=_0x430639[_0x58797e];}return _0x2a9f65;}export function getMultiAppConfigs(_0x415c8a=a285_0x1bd4f0(0x1e8),_0x31f99e){const _0x1ca196=a285_0x1bd4f0,_0x2302b8=loadRawConfigLayers(_0x31f99e);let _0x248685,_0x2547e3;const _0x167abb=mergeRawConfigLayers(_0x2302b8),_0x44a27f=_0x2302b8[_0x1ca196(0x1fd)]['apps']&&typeof _0x2302b8['globalConfig'][_0x1ca196(0x210)]==='object'?_0x2302b8[_0x1ca196(0x1fd)]['apps']:{},_0xdbbdea=_0x2302b8['projectConfig'][_0x1ca196(0x210)]&&typeof _0x2302b8[_0x1ca196(0x1d6)][_0x1ca196(0x210)]==='object'?_0x2302b8['projectConfig'][_0x1ca196(0x210)]:{};_0x415c8a===_0x1ca196(0x202)?(_0x248685={..._0x44a27f,..._0xdbbdea},_0x2547e3=_0x167abb[_0x1ca196(0x1cd)]):(_0x248685=_0x2302b8[_0x1ca196(0x1d6)][_0x1ca196(0x210)],_0x2547e3=_0x2302b8[_0x1ca196(0x1d6)]['defaultApp']);!_0x2547e3&&_0x248685&&typeof _0x248685===_0x1ca196(0x207)&&Object[_0x1ca196(0x1f8)](_0x248685)[_0x1ca196(0x204)]===0x1&&(_0x2547e3=Object[_0x1ca196(0x1f8)](_0x248685)[0x0]);if(!_0x248685||typeof _0x248685!==_0x1ca196(0x207)||Object['keys'](_0x248685)['length']===0x0)return null;return Object[_0x1ca196(0x1de)](_0x248685)[_0x1ca196(0x209)](([_0x491b02,_0x2495f8])=>{const _0x47f2cf=_0x1ca196,_0xbbc10a=_0x415c8a===_0x47f2cf(0x1e8)||Object[_0x47f2cf(0x208)][_0x47f2cf(0x1fb)][_0x47f2cf(0x213)](_0xdbbdea,_0x491b02),_0xc7a1f3=withAppProfileRouting(_0xbbc10a?_0x167abb:_0x2302b8[_0x47f2cf(0x1fd)],_0x2495f8),_0x32921f=resolveEffectiveRegion({'appRegion':_0x2495f8?.[_0x47f2cf(0x1e4)],'projectRegion':_0xbbc10a?_0x2302b8[_0x47f2cf(0x1d6)]['region']:undefined,'globalRegion':_0x2302b8[_0x47f2cf(0x1fd)][_0x47f2cf(0x1e4)],'mergedRegion':_0xc7a1f3[_0x47f2cf(0x1e4)],'appName':_0x491b02});return{'name':_0x491b02,'appcode':_0x2495f8?.[_0x47f2cf(0x20c)]||'','apiGroup':optionalString(_0x2495f8?.[_0x47f2cf(0x1f3)]),'isDefault':_0x491b02===_0x2547e3,'region':_0x32921f['region'],'regionSource':_0x32921f['source'],'env':_0x2495f8?.[_0x47f2cf(0x201)],'apiDir':optionalString(_0x2495f8?.[_0x47f2cf(0x211)])||optionalString(_0xc7a1f3[_0x47f2cf(0x211)]),'cookie':_0x2495f8?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0xc7a1f3,_0x32921f[_0x47f2cf(0x1e4)])};})['filter'](_0x3230ef=>_0x3230ef[_0x1ca196(0x20c)]);}export function getTemplateBaseUrl(_0x4a1342){const _0x38ac82=a285_0x1bd4f0,_0x28cc2d=readRawConfig(_0x4a1342);if(_0x28cc2d[_0x38ac82(0x1ea)]&&typeof _0x28cc2d['template_base_url']===_0x38ac82(0x1f7))return _0x28cc2d[_0x38ac82(0x1ea)][_0x38ac82(0x1e7)](/\/$/,'');return _0x38ac82(0x20e);}function buildConfig(_0x4c00cd,_0x23abfb,_0x235b68){const _0x55468c=a285_0x1bd4f0,_0x3c357d=resolveAppConfig({'raw':_0x4c00cd,'flags':_0x23abfb,'layers':_0x235b68,'readEnv':env}),_0x2a36e8=_0x3c357d[_0x55468c(0x1ef)]?_0x3c357d['apps'][_0x3c357d['currentApp']]:undefined;return{..._0x3c357d,'raw':withAppProfileRouting(_0x4c00cd,_0x2a36e8)};}export function resolveApiFilePath(_0x5a6543,_0x1e3817,_0x9d38ec){const _0x246a33=a285_0x1bd4f0;return resolveApiModelSource(_0x5a6543,_0x1e3817,_0x9d38ec)[_0x246a33(0x216)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a286_0x18ff98=a286_0x5c2f;(function(_0x1281cc,_0x39a5df){const _0x51e955=a286_0x5c2f,_0x2bda4a=_0x1281cc();while(!![]){try{const _0x470a68=-parseInt(_0x51e955(0x175))/0x1*(-parseInt(_0x51e955(0x16c))/0x2)+-parseInt(_0x51e955(0x16b))/0x3*(parseInt(_0x51e955(0x173))/0x4)+-parseInt(_0x51e955(0x162))/0x5*(-parseInt(_0x51e955(0x163))/0x6)+parseInt(_0x51e955(0x174))/0x7+-parseInt(_0x51e955(0x15e))/0x8*(-parseInt(_0x51e955(0x169))/0x9)+-parseInt(_0x51e955(0x177))/0xa+parseInt(_0x51e955(0x16a))/0xb*(parseInt(_0x51e955(0x164))/0xc);if(_0x470a68===_0x39a5df)break;else _0x2bda4a['push'](_0x2bda4a['shift']());}catch(_0x56ca74){_0x2bda4a['push'](_0x2bda4a['shift']());}}}(a286_0x2b8a,0xdc775));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';function a286_0x5c2f(_0x2532e1,_0x56d8d7){_0x2532e1=_0x2532e1-0x15a;const _0x2b8ad=a286_0x2b8a();let _0x5c2fba=_0x2b8ad[_0x2532e1];return _0x5c2fba;}import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a286_0x18ff98(0x165),'.tsx',a286_0x18ff98(0x176),a286_0x18ff98(0x160),'.js',a286_0x18ff98(0x17b),'.mjs',a286_0x18ff98(0x178)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a286_0x18ff98(0x165),a286_0x18ff98(0x170)],'.jsx':[a286_0x18ff98(0x170)],'.mjs':[a286_0x18ff98(0x176)],'.cjs':[a286_0x18ff98(0x160)]};function parseApiFile(_0x296c21){const _0x1099a9=a286_0x18ff98;return parseLegacyApiModels(_0x296c21)[_0x1099a9(0x15f)](_0xee1be8=>_0xee1be8[_0x1099a9(0x179)]?[{'alias':_0xee1be8[_0x1099a9(0x179)],'datasetCode':_0xee1be8[_0x1099a9(0x15b)],'tableName':_0xee1be8[_0x1099a9(0x182)],'name':_0xee1be8['name']}]:[]);}function isWithinRoot(_0x6b7021,_0x2ac2eb){const _0x37e3e5=relative(_0x6b7021,_0x2ac2eb);return _0x37e3e5===''||!_0x37e3e5['startsWith']('..')&&!isAbsolute(_0x37e3e5);}function resolveExistingFile(_0x2b08e6){const _0x286acd=a286_0x18ff98;if(!existsSync(_0x2b08e6))return undefined;try{return statSync(_0x2b08e6)[_0x286acd(0x16f)]()?realpathSync(_0x2b08e6):undefined;}catch{return undefined;}}function a286_0x2b8a(){const _0x2109d6=['11780870XCTiqw','.cjs','alias','flags','.jsx','name','set','endsWith','stringify','filter','length','tableName','has','datasetCode','map','utf-8','2656PEysfj','flatMap','.cts','exec','3635xqwtpY','7818hHGPmU','6780AoHyWn','.ts','get','push','source','24669NqRbsb','8525XjqYtw','9dqRoWv','114QKHpeD','cwd','size','isFile','.tsx','index','add','1326140kONhXj','3465280iNvyqj','5009PgkYbR','.mts'];a286_0x2b8a=function(){return _0x2109d6;};return a286_0x2b8a();}function reexportCandidatePaths(_0x465a77){const _0xd8e51e=a286_0x18ff98,_0x28aa85=extname(_0x465a77);if(!_0x28aa85)return[...SOURCE_FILE_EXTENSIONS[_0xd8e51e(0x15c)](_0x567d5f=>''+_0x465a77+_0x567d5f),...SOURCE_FILE_EXTENSIONS[_0xd8e51e(0x15c)](_0x2f29fe=>resolve(_0x465a77,_0xd8e51e(0x171)+_0x2f29fe))];const _0x59c922=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x28aa85];if(!_0x59c922)return[_0x465a77];const _0x27ee0b=_0x465a77['slice'](0x0,-_0x28aa85[_0xd8e51e(0x181)]);return[..._0x59c922[_0xd8e51e(0x15c)](_0xe30f98=>''+_0x27ee0b+_0xe30f98),_0x465a77];}function resolveLocalReexport(_0x234e1d,_0x50d3e9,_0x357ba0){if(!_0x50d3e9['startsWith']('./')&&!_0x50d3e9['startsWith']('../'))return undefined;const _0x57d145=resolve(dirname(_0x234e1d),_0x50d3e9);if(!isWithinRoot(_0x357ba0,_0x57d145))return undefined;for(const _0x314245 of reexportCandidatePaths(_0x57d145)){const _0x42c554=resolveExistingFile(_0x314245);if(_0x42c554&&isWithinRoot(_0x357ba0,_0x42c554))return _0x42c554;}return undefined;}function parseApiFileTree(_0x4e1185,_0x5e2179,_0x541d60,_0x22a88e){const _0x1732e1=a286_0x18ff98,_0x43cf44=resolveExistingFile(_0x4e1185);if(!_0x43cf44)return[];const _0x35858f=_0x541d60[_0x1732e1(0x166)](_0x43cf44);if(_0x35858f!==undefined&&_0x35858f<=_0x22a88e)return[];_0x541d60[_0x1732e1(0x17d)](_0x43cf44,_0x22a88e);const _0x7e5f5b=readFileSync(_0x43cf44,_0x1732e1(0x15d)),_0x7d2184=parseApiFile(_0x7e5f5b);if(_0x22a88e>=MAX_LOCAL_REEXPORT_DEPTH)return _0x7d2184;const _0x49f2fa=new RegExp(LOCAL_REEXPORT_RE[_0x1732e1(0x168)],LOCAL_REEXPORT_RE[_0x1732e1(0x17a)]);let _0x29ee2c;while((_0x29ee2c=_0x49f2fa[_0x1732e1(0x161)](_0x7e5f5b))!==null){const _0x524413=resolveLocalReexport(_0x43cf44,_0x29ee2c[0x1],_0x5e2179);_0x524413&&_0x7d2184[_0x1732e1(0x167)](...parseApiFileTree(_0x524413,_0x5e2179,_0x541d60,_0x22a88e+0x1));}return _0x7d2184;}function aliasProjectRoot(_0x4e8030){const _0x260af0=findProjectRootDirectory(dirname(_0x4e8030));try{return realpathSync(_0x260af0);}catch{return _0x260af0;}}function uniqueAliasEntries(_0x2e796a){const _0x4e3d27=a286_0x18ff98,_0xac12ed=new Set();return _0x2e796a[_0x4e3d27(0x180)](_0x541622=>{const _0x4efabd=_0x4e3d27,_0x2b56cb=JSON[_0x4efabd(0x17f)](_0x541622);if(_0xac12ed[_0x4efabd(0x15a)](_0x2b56cb))return![];return _0xac12ed[_0x4efabd(0x172)](_0x2b56cb),!![];});}export function loadAliasMap(_0xcf41eb,_0x5f21b8,_0x4a8d92,_0x38a8e5){const _0xa2a34d=a286_0x18ff98,_0x15f1b4=resolve(_0x4a8d92??resolve(process[_0xa2a34d(0x16d)](),_0xcf41eb,'api.ts')),_0x2e14ab=_0x38a8e5?_0x15f1b4+'#'+_0x38a8e5:_0x15f1b4;if(cache['has'](_0x2e14ab))return cache[_0xa2a34d(0x166)](_0x2e14ab);if(!existsSync(_0x15f1b4))return cache[_0xa2a34d(0x17d)](_0x2e14ab,[]),[];try{if(_0x15f1b4[_0xa2a34d(0x17e)](MODEL_REGISTRY_FILE_NAME)){const _0x24e98a=readModelRegistry(_0x15f1b4),_0x5e16b5=_0x38a8e5??_0x24e98a?.['defaultProfile'],_0x375b92=_0x5e16b5&&_0x24e98a?getProfileModels(_0x24e98a,_0x5e16b5):[],_0x43ef91=uniqueAliasEntries(_0x375b92[_0xa2a34d(0x15f)](_0x5dba57=>_0x5dba57[_0xa2a34d(0x179)]?[{'alias':_0x5dba57['alias'],'datasetCode':_0x5dba57[_0xa2a34d(0x15b)],'tableName':_0x5dba57[_0xa2a34d(0x182)],'name':_0x5dba57[_0xa2a34d(0x17c)]}]:[]));return cache[_0xa2a34d(0x17d)](_0x2e14ab,_0x43ef91),_0x43ef91;}const _0x33c9c0=uniqueAliasEntries(parseApiFileTree(_0x15f1b4,aliasProjectRoot(_0x15f1b4),new Map(),0x0));return cache['set'](_0x2e14ab,_0x33c9c0),_0x33c9c0;}catch{return cache[_0xa2a34d(0x17d)](_0x2e14ab,[]),[];}}export function resolveAlias(_0x379292,_0x203c6e,_0x2e9d97,_0x1d9a9c,_0x5b02dd){const _0x47ced0=a286_0x18ff98;if(!_0x203c6e)return undefined;const _0x560486=loadAliasMap(_0x379292,_0x2e9d97,_0x1d9a9c,_0x5b02dd),_0x1a42d6=new Set(_0x560486[_0x47ced0(0x180)](_0x3ef581=>_0x3ef581[_0x47ced0(0x179)]===_0x203c6e)['map'](_0x2e6e9c=>_0x2e6e9c[_0x47ced0(0x15b)]));return _0x1a42d6[_0x47ced0(0x16e)]===0x1?[..._0x1a42d6][0x0]:undefined;}export function listAliases(_0x392fcc,_0x32a982,_0x13141a,_0x572ffb){return loadAliasMap(_0x392fcc,_0x32a982,_0x13141a,_0x572ffb);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare function setActiveCookie(cookie: string): void;
|
|
|
12
12
|
export declare function clearActiveCookie(): void;
|
|
13
13
|
export declare function isPlatformTransportFailure(error: unknown): boolean;
|
|
14
14
|
export declare function getPlatformErrorCode(error: unknown): string | undefined;
|
|
15
|
+
export declare function getPlatformHttpStatus(error: unknown): number | undefined;
|
|
15
16
|
export interface DevelopmentFileUploadResponse {
|
|
16
17
|
fileName?: string | null;
|
|
17
18
|
filePath?: string | null;
|
|
@@ -580,6 +581,16 @@ export interface TextGeneratedDatasetJobStatus {
|
|
|
580
581
|
result?: any;
|
|
581
582
|
[key: string]: any;
|
|
582
583
|
}
|
|
584
|
+
/** Deterministic dataset creation; the caller's Agent supplies the manifest. */
|
|
585
|
+
export declare function getDatasetDesignContext(appCode: string): Promise<Record<string, any>>;
|
|
586
|
+
export declare function validateDatasetDesign(appCode: string, manifest: Record<string, unknown>): Promise<Record<string, any>>;
|
|
587
|
+
export declare function startDatasetDesign(appCode: string, manifest: Record<string, unknown>, expectedHash: string, clientOperationId: string): Promise<Record<string, any>>;
|
|
588
|
+
export declare function getDatasetDesignStatus(appCode: string, identity: {
|
|
589
|
+
operationId?: string;
|
|
590
|
+
clientOperationId?: string;
|
|
591
|
+
}): Promise<Record<string, any>>;
|
|
592
|
+
export declare function getDatasetDesignSyncStatus(appCode: string, datasetCode: string): Promise<Record<string, any>>;
|
|
593
|
+
export declare function retryDatasetDesignSync(appCode: string, datasetCode: string): Promise<Record<string, any>>;
|
|
583
594
|
export declare function startTextGeneratedDataset(appCode: string, design: Record<string, any>, options?: {
|
|
584
595
|
clientOperationId?: string;
|
|
585
596
|
mode?: "batch";
|