@lovrabet/rabetbase-cli 2.5.9 → 2.5.10-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -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.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.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-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/page-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.d.ts +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 +0 -28
- 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/instant-api-policy/endpoints.d.ts +8 -0
- package/lib/core/instant-api-policy/endpoints.js +1 -0
- package/lib/core/kb-management-client.d.ts +3 -9
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.d.ts +1 -4
- 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.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.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 +3 -2
- package/skills/rabetbase/SKILL.md +2 -2
- package/skills/rabetbase-dataset-generation/SKILL.md +2 -2
- package/skills/rabetbase-page-generation/SKILL.md +2 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a287_0x2dc0f3=a287_0x2aa9;function a287_0x3db0(){const _0x51586c=['14QnNeiR','1104340tkhBBj','set','1csENJg','alias','slice','.mjs','size','name','../','3374380xudnwE','defaultProfile','10649529IBRltU','.ts','utf-8','1672074nEqXCx','index','exec','.tsx','datasetCode','flatMap','map','.cts','startsWith','9917104crscHR','461726gVOCNO','push','endsWith','.mts','4MTLoOo','source','stringify','flags','filter','1865166HAxggL','.js','.jsx','isFile','22HzDWOp','.cjs','get','tableName','add'];a287_0x3db0=function(){return _0x51586c;};return a287_0x3db0();}(function(_0x205d0c,_0x1458d7){const _0x12eb47=a287_0x2aa9,_0x3a0b24=_0x205d0c();while(!![]){try{const _0x2a3a94=-parseInt(_0x12eb47(0xf9))/0x1*(parseInt(_0x12eb47(0xe4))/0x2)+parseInt(_0x12eb47(0xed))/0x3+parseInt(_0x12eb47(0xe8))/0x4*(parseInt(_0x12eb47(0xf7))/0x5)+-parseInt(_0x12eb47(0x105))/0x6*(parseInt(_0x12eb47(0xf6))/0x7)+-parseInt(_0x12eb47(0xe3))/0x8+parseInt(_0x12eb47(0x102))/0x9+-parseInt(_0x12eb47(0x100))/0xa*(-parseInt(_0x12eb47(0xf1))/0xb);if(_0x2a3a94===_0x1458d7)break;else _0x3a0b24['push'](_0x3a0b24['shift']());}catch(_0x7e0ad1){_0x3a0b24['push'](_0x3a0b24['shift']());}}}(a287_0x3db0,0xa4478));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';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=[a287_0x2dc0f3(0x103),'.tsx','.mts',a287_0x2dc0f3(0xe1),a287_0x2dc0f3(0xee),a287_0x2dc0f3(0xef),a287_0x2dc0f3(0xfc),a287_0x2dc0f3(0xf2)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':['.ts','.tsx'],'.jsx':[a287_0x2dc0f3(0xdd)],'.mjs':[a287_0x2dc0f3(0xe7)],'.cjs':[a287_0x2dc0f3(0xe1)]};function parseApiFile(_0x4d86a8){const _0x62d774=a287_0x2dc0f3;return parseLegacyApiModels(_0x4d86a8)[_0x62d774(0xdf)](_0x5a65c8=>_0x5a65c8[_0x62d774(0xfa)]?[{'alias':_0x5a65c8[_0x62d774(0xfa)],'datasetCode':_0x5a65c8[_0x62d774(0xde)],'tableName':_0x5a65c8[_0x62d774(0xf4)],'name':_0x5a65c8[_0x62d774(0xfe)]}]:[]);}function isWithinRoot(_0x249345,_0x585451){const _0x419913=a287_0x2dc0f3,_0x479d17=relative(_0x249345,_0x585451);return _0x479d17===''||!_0x479d17[_0x419913(0xe2)]('..')&&!isAbsolute(_0x479d17);}function resolveExistingFile(_0x3e5e71){const _0x109a9a=a287_0x2dc0f3;if(!existsSync(_0x3e5e71))return undefined;try{return statSync(_0x3e5e71)[_0x109a9a(0xf0)]()?realpathSync(_0x3e5e71):undefined;}catch{return undefined;}}function a287_0x2aa9(_0x33178c,_0x173662){_0x33178c=_0x33178c-0xdb;const _0x3db096=a287_0x3db0();let _0x2aa991=_0x3db096[_0x33178c];return _0x2aa991;}function reexportCandidatePaths(_0x4e8ff1){const _0x73feb3=a287_0x2dc0f3,_0x311176=extname(_0x4e8ff1);if(!_0x311176)return[...SOURCE_FILE_EXTENSIONS[_0x73feb3(0xe0)](_0x3ae2da=>''+_0x4e8ff1+_0x3ae2da),...SOURCE_FILE_EXTENSIONS['map'](_0x5bd9de=>resolve(_0x4e8ff1,_0x73feb3(0xdb)+_0x5bd9de))];const _0x1579f9=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x311176];if(!_0x1579f9)return[_0x4e8ff1];const _0x50fd41=_0x4e8ff1[_0x73feb3(0xfb)](0x0,-_0x311176['length']);return[..._0x1579f9['map'](_0x1ac8b7=>''+_0x50fd41+_0x1ac8b7),_0x4e8ff1];}function resolveLocalReexport(_0x502699,_0x451b06,_0x140e41){const _0xb8e632=a287_0x2dc0f3;if(!_0x451b06[_0xb8e632(0xe2)]('./')&&!_0x451b06[_0xb8e632(0xe2)](_0xb8e632(0xff)))return undefined;const _0x11febb=resolve(dirname(_0x502699),_0x451b06);if(!isWithinRoot(_0x140e41,_0x11febb))return undefined;for(const _0x52fc66 of reexportCandidatePaths(_0x11febb)){const _0x581a51=resolveExistingFile(_0x52fc66);if(_0x581a51&&isWithinRoot(_0x140e41,_0x581a51))return _0x581a51;}return undefined;}function parseApiFileTree(_0x535d36,_0x3e374d,_0x293363,_0x28a648){const _0x4e658f=a287_0x2dc0f3,_0xce28fa=resolveExistingFile(_0x535d36);if(!_0xce28fa)return[];const _0x1ecd14=_0x293363['get'](_0xce28fa);if(_0x1ecd14!==undefined&&_0x1ecd14<=_0x28a648)return[];_0x293363['set'](_0xce28fa,_0x28a648);const _0x57f9c4=readFileSync(_0xce28fa,_0x4e658f(0x104)),_0x237e94=parseApiFile(_0x57f9c4);if(_0x28a648>=MAX_LOCAL_REEXPORT_DEPTH)return _0x237e94;const _0x42e0ff=new RegExp(LOCAL_REEXPORT_RE[_0x4e658f(0xe9)],LOCAL_REEXPORT_RE[_0x4e658f(0xeb)]);let _0x308954;while((_0x308954=_0x42e0ff[_0x4e658f(0xdc)](_0x57f9c4))!==null){const _0x1b88f9=resolveLocalReexport(_0xce28fa,_0x308954[0x1],_0x3e374d);_0x1b88f9&&_0x237e94[_0x4e658f(0xe5)](...parseApiFileTree(_0x1b88f9,_0x3e374d,_0x293363,_0x28a648+0x1));}return _0x237e94;}function aliasProjectRoot(_0x177172){const _0x573ef8=findProjectRootDirectory(dirname(_0x177172));try{return realpathSync(_0x573ef8);}catch{return _0x573ef8;}}function uniqueAliasEntries(_0x1eadb1){const _0x9b4398=a287_0x2dc0f3,_0x79f1e6=new Set();return _0x1eadb1[_0x9b4398(0xec)](_0x1f76f9=>{const _0x3080f0=_0x9b4398,_0x3da8e0=JSON[_0x3080f0(0xea)](_0x1f76f9);if(_0x79f1e6['has'](_0x3da8e0))return![];return _0x79f1e6[_0x3080f0(0xf5)](_0x3da8e0),!![];});}export function loadAliasMap(_0x52d2bd,_0x116d9b,_0x2971cc,_0x2793d0){const _0x394951=a287_0x2dc0f3,_0x501270=resolve(_0x2971cc??resolve(process['cwd'](),_0x52d2bd,'api.ts')),_0x5329f7=_0x2793d0?_0x501270+'#'+_0x2793d0:_0x501270;if(cache['has'](_0x5329f7))return cache[_0x394951(0xf3)](_0x5329f7);if(!existsSync(_0x501270))return cache[_0x394951(0xf8)](_0x5329f7,[]),[];try{if(_0x501270[_0x394951(0xe6)](MODEL_REGISTRY_FILE_NAME)){const _0x1ee683=readModelRegistry(_0x501270),_0x2de1a8=_0x2793d0??_0x1ee683?.[_0x394951(0x101)],_0x46e749=_0x2de1a8&&_0x1ee683?getProfileModels(_0x1ee683,_0x2de1a8):[],_0x4205ca=uniqueAliasEntries(_0x46e749[_0x394951(0xdf)](_0x2601fc=>_0x2601fc[_0x394951(0xfa)]?[{'alias':_0x2601fc['alias'],'datasetCode':_0x2601fc[_0x394951(0xde)],'tableName':_0x2601fc[_0x394951(0xf4)],'name':_0x2601fc[_0x394951(0xfe)]}]:[]));return cache['set'](_0x5329f7,_0x4205ca),_0x4205ca;}const _0xf71b79=uniqueAliasEntries(parseApiFileTree(_0x501270,aliasProjectRoot(_0x501270),new Map(),0x0));return cache['set'](_0x5329f7,_0xf71b79),_0xf71b79;}catch{return cache['set'](_0x5329f7,[]),[];}}export function resolveAlias(_0x4d1138,_0x2df92f,_0xbf99a,_0x535942,_0x1bae91){const _0xeb8b85=a287_0x2dc0f3;if(!_0x2df92f)return undefined;const _0x383f29=loadAliasMap(_0x4d1138,_0xbf99a,_0x535942,_0x1bae91),_0x6de70=new Set(_0x383f29[_0xeb8b85(0xec)](_0x23b55b=>_0x23b55b['alias']===_0x2df92f)[_0xeb8b85(0xe0)](_0x286d3c=>_0x286d3c['datasetCode']));return _0x6de70[_0xeb8b85(0xfd)]===0x1?[..._0x6de70][0x0]:undefined;}export function listAliases(_0x2ef672,_0x2934b2,_0xcad86e,_0x35584b){return loadAliasMap(_0x2ef672,_0x2934b2,_0xcad86e,_0x35584b);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 分域 API 客户端
|
|
3
|
-
*
|
|
4
|
-
* 按业务域组织(bff / sql / dataset / dblink / db-analysis),与研发态 OpenAPI 路径前缀自然对齐。
|
|
5
|
-
* 统一认证、超时、错误处理;命令层通过导出函数调用。
|
|
6
|
-
*/
|
|
7
1
|
import type { Paging } from "../framework/response.js";
|
|
8
2
|
import { type CrossDbRelationDetail, type CrossDbRelationMutation, type CrossDbRelationQuery, type CrossDbRelationSource } from "../core/cross-db-relation.js";
|
|
9
3
|
import { type CrossDbAnalysisStatus } from "../core/cross-db-analysis.js";
|
|
@@ -404,28 +398,6 @@ export declare function saveSqlQuery(params: {
|
|
|
404
398
|
description?: string;
|
|
405
399
|
}): Promise<SqlSaveResult>;
|
|
406
400
|
export declare function executeSql(appCode: string, sqlCode: string, params?: Record<string, string | number>): Promise<any>;
|
|
407
|
-
/**
|
|
408
|
-
* Read-only runtime data operations supported by rabetbase-cli.
|
|
409
|
-
*
|
|
410
|
-
* The command surface intentionally stays narrow for now: users mainly need
|
|
411
|
-
* `filter` and `getOne` to inspect real records while designing pages.
|
|
412
|
-
*/
|
|
413
|
-
export type DatasetDataReadOperation = "filter" | "getOne";
|
|
414
|
-
/**
|
|
415
|
-
* Executes a read-only dataset data operation against the runtime WebAPI.
|
|
416
|
-
*
|
|
417
|
-
* The runtime dataset metadata already exposes concrete paths such as
|
|
418
|
-
* `/api/{appCode}/{datasetCode}/filter` and `/getOne`. Calling those paths
|
|
419
|
-
* directly keeps rabetbase aligned with the platform's cookie-authenticated
|
|
420
|
-
* runtime behavior without pulling in the runtime CLI's SDK stack.
|
|
421
|
-
*
|
|
422
|
-
* @param appCode - Resolved app code.
|
|
423
|
-
* @param datasetCode - Target dataset code.
|
|
424
|
-
* @param operation - Read-only operation name.
|
|
425
|
-
* @param params - Request body sent to the runtime API.
|
|
426
|
-
* @returns Raw runtime response payload.
|
|
427
|
-
*/
|
|
428
|
-
export declare function executeDatasetDataOperation(appCode: string, datasetCode: string, operation: DatasetDataReadOperation, params?: Record<string, any>): Promise<any>;
|
|
429
401
|
export interface DatasetItem {
|
|
430
402
|
id: number;
|
|
431
403
|
name: string;
|