@lovrabet/rabetbase-cli 2.5.8-beta.2 → 2.5.9-beta.1
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 +6 -6
- 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.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.d.ts +8 -5
- 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.d.ts +5 -3
- 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 +14 -11
- 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-management-client.d.ts +2 -2
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.d.ts +3 -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.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 +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/references/rabetbase-kb.md +17 -15
- package/skills/rabetbase/references/rabetbase-rule.md +8 -6
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a287_0x1c0436=a287_0x1d93;(function(_0x1a5e41,_0x4b1277){const _0x32ded7=a287_0x1d93,_0x2a1d85=_0x1a5e41();while(!![]){try{const _0x2bd196=-parseInt(_0x32ded7(0x210))/0x1*(-parseInt(_0x32ded7(0x1f0))/0x2)+-parseInt(_0x32ded7(0x1ec))/0x3*(-parseInt(_0x32ded7(0x201))/0x4)+parseInt(_0x32ded7(0x1ea))/0x5*(parseInt(_0x32ded7(0x202))/0x6)+parseInt(_0x32ded7(0x1fd))/0x7+parseInt(_0x32ded7(0x1f4))/0x8+-parseInt(_0x32ded7(0x1ee))/0x9*(parseInt(_0x32ded7(0x1fa))/0xa)+-parseInt(_0x32ded7(0x1f9))/0xb*(parseInt(_0x32ded7(0x205))/0xc);if(_0x2bd196===_0x4b1277)break;else _0x2a1d85['push'](_0x2a1d85['shift']());}catch(_0x8d2a95){_0x2a1d85['push'](_0x2a1d85['shift']());}}}(a287_0x5af6,0xbc551));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_0x1c0436(0x1f8),a287_0x1c0436(0x1fb),a287_0x1c0436(0x1e9),a287_0x1c0436(0x1fe),a287_0x1c0436(0x206),a287_0x1c0436(0x1ef),'.mjs',a287_0x1c0436(0x1fc)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0x1c0436(0x1f8),a287_0x1c0436(0x1fb)],'.jsx':['.tsx'],'.mjs':['.mts'],'.cjs':['.cts']};function a287_0x1d93(_0x5806db,_0x18c36e){_0x5806db=_0x5806db-0x1e8;const _0x5af64e=a287_0x5af6();let _0x1d93f3=_0x5af64e[_0x5806db];return _0x1d93f3;}function parseApiFile(_0x479a45){const _0xf0eed1=a287_0x1c0436;return parseLegacyApiModels(_0x479a45)[_0xf0eed1(0x203)](_0x530113=>_0x530113[_0xf0eed1(0x20d)]?[{'alias':_0x530113[_0xf0eed1(0x20d)],'datasetCode':_0x530113[_0xf0eed1(0x1eb)],'tableName':_0x530113[_0xf0eed1(0x1f6)],'name':_0x530113[_0xf0eed1(0x1f3)]}]:[]);}function isWithinRoot(_0x285a2c,_0xa5b96c){const _0x5d16c5=relative(_0x285a2c,_0xa5b96c);return _0x5d16c5===''||!_0x5d16c5['startsWith']('..')&&!isAbsolute(_0x5d16c5);}function resolveExistingFile(_0x4a2e44){const _0x2d3eff=a287_0x1c0436;if(!existsSync(_0x4a2e44))return undefined;try{return statSync(_0x4a2e44)[_0x2d3eff(0x1e8)]()?realpathSync(_0x4a2e44):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x58dd36){const _0x4b32f0=a287_0x1c0436,_0x54b9d2=extname(_0x58dd36);if(!_0x54b9d2)return[...SOURCE_FILE_EXTENSIONS[_0x4b32f0(0x20b)](_0x5e834d=>''+_0x58dd36+_0x5e834d),...SOURCE_FILE_EXTENSIONS[_0x4b32f0(0x20b)](_0x23d6ff=>resolve(_0x58dd36,_0x4b32f0(0x20c)+_0x23d6ff))];const _0x38f913=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x54b9d2];if(!_0x38f913)return[_0x58dd36];const _0xdd2bf3=_0x58dd36[_0x4b32f0(0x200)](0x0,-_0x54b9d2[_0x4b32f0(0x1f2)]);return[..._0x38f913['map'](_0x3e031a=>''+_0xdd2bf3+_0x3e031a),_0x58dd36];}function resolveLocalReexport(_0x311061,_0x1183fe,_0x200af6){const _0x5407c5=a287_0x1c0436;if(!_0x1183fe[_0x5407c5(0x1ff)]('./')&&!_0x1183fe[_0x5407c5(0x1ff)]('../'))return undefined;const _0x5c54bb=resolve(dirname(_0x311061),_0x1183fe);if(!isWithinRoot(_0x200af6,_0x5c54bb))return undefined;for(const _0x2f5f84 of reexportCandidatePaths(_0x5c54bb)){const _0x410ba3=resolveExistingFile(_0x2f5f84);if(_0x410ba3&&isWithinRoot(_0x200af6,_0x410ba3))return _0x410ba3;}return undefined;}function parseApiFileTree(_0x3fa9bc,_0x6f210c,_0x535d0c,_0x4a530a){const _0x3c8931=a287_0x1c0436,_0x5da89e=resolveExistingFile(_0x3fa9bc);if(!_0x5da89e)return[];const _0x295c1a=_0x535d0c[_0x3c8931(0x207)](_0x5da89e);if(_0x295c1a!==undefined&&_0x295c1a<=_0x4a530a)return[];_0x535d0c[_0x3c8931(0x20f)](_0x5da89e,_0x4a530a);const _0x160144=readFileSync(_0x5da89e,'utf-8'),_0x128c3c=parseApiFile(_0x160144);if(_0x4a530a>=MAX_LOCAL_REEXPORT_DEPTH)return _0x128c3c;const _0x58a9ab=new RegExp(LOCAL_REEXPORT_RE[_0x3c8931(0x208)],LOCAL_REEXPORT_RE['flags']);let _0xb1b6bd;while((_0xb1b6bd=_0x58a9ab['exec'](_0x160144))!==null){const _0x275dd9=resolveLocalReexport(_0x5da89e,_0xb1b6bd[0x1],_0x6f210c);_0x275dd9&&_0x128c3c[_0x3c8931(0x1ed)](...parseApiFileTree(_0x275dd9,_0x6f210c,_0x535d0c,_0x4a530a+0x1));}return _0x128c3c;}function aliasProjectRoot(_0x4022f7){const _0x50f60b=findProjectRootDirectory(dirname(_0x4022f7));try{return realpathSync(_0x50f60b);}catch{return _0x50f60b;}}function uniqueAliasEntries(_0x6eaba0){const _0x307e4d=new Set();return _0x6eaba0['filter'](_0x588e8c=>{const _0x3f9d5f=a287_0x1d93,_0x368f22=JSON[_0x3f9d5f(0x209)](_0x588e8c);if(_0x307e4d[_0x3f9d5f(0x20a)](_0x368f22))return![];return _0x307e4d[_0x3f9d5f(0x20e)](_0x368f22),!![];});}export function loadAliasMap(_0x4d8ab6,_0x349a9a,_0x5866c5,_0x593f28){const _0x51edf7=a287_0x1c0436,_0x59e8c1=resolve(_0x5866c5??resolve(process[_0x51edf7(0x1f7)](),_0x4d8ab6,_0x51edf7(0x1f1))),_0x520bca=_0x593f28?_0x59e8c1+'#'+_0x593f28:_0x59e8c1;if(cache[_0x51edf7(0x20a)](_0x520bca))return cache[_0x51edf7(0x207)](_0x520bca);if(!existsSync(_0x59e8c1))return cache[_0x51edf7(0x20f)](_0x520bca,[]),[];try{if(_0x59e8c1['endsWith'](MODEL_REGISTRY_FILE_NAME)){const _0x2f3d43=readModelRegistry(_0x59e8c1),_0x3195d2=_0x593f28??_0x2f3d43?.[_0x51edf7(0x204)],_0x5a6326=_0x3195d2&&_0x2f3d43?getProfileModels(_0x2f3d43,_0x3195d2):[],_0x23e32c=uniqueAliasEntries(_0x5a6326[_0x51edf7(0x203)](_0x4d96b6=>_0x4d96b6[_0x51edf7(0x20d)]?[{'alias':_0x4d96b6[_0x51edf7(0x20d)],'datasetCode':_0x4d96b6[_0x51edf7(0x1eb)],'tableName':_0x4d96b6[_0x51edf7(0x1f6)],'name':_0x4d96b6[_0x51edf7(0x1f3)]}]:[]));return cache['set'](_0x520bca,_0x23e32c),_0x23e32c;}const _0x324d05=uniqueAliasEntries(parseApiFileTree(_0x59e8c1,aliasProjectRoot(_0x59e8c1),new Map(),0x0));return cache[_0x51edf7(0x20f)](_0x520bca,_0x324d05),_0x324d05;}catch{return cache[_0x51edf7(0x20f)](_0x520bca,[]),[];}}export function resolveAlias(_0x1cdc8b,_0x110e40,_0x2e8a15,_0x1126d2,_0x238527){const _0x17b3b2=a287_0x1c0436;if(!_0x110e40)return undefined;const _0x1cd9a0=loadAliasMap(_0x1cdc8b,_0x2e8a15,_0x1126d2,_0x238527),_0x469e41=new Set(_0x1cd9a0['filter'](_0x1cff12=>_0x1cff12[_0x17b3b2(0x20d)]===_0x110e40)[_0x17b3b2(0x20b)](_0x47a4ba=>_0x47a4ba[_0x17b3b2(0x1eb)]));return _0x469e41[_0x17b3b2(0x1f5)]===0x1?[..._0x469e41][0x0]:undefined;}function a287_0x5af6(){const _0x4f6455=['5309316UTKijm','.jsx','8eDESFe','api.ts','length','name','7618352zphfRP','size','tableName','cwd','.ts','46893xtVZyk','10KTWZZm','.tsx','.cjs','512883EyrpIE','.cts','startsWith','slice','8SnZtQT','695346fyvCvA','flatMap','defaultProfile','5556EnWQfS','.js','get','source','stringify','has','map','index','alias','add','set','299510DBWCAV','isFile','.mts','15fvtlzO','datasetCode','1145739goGAxX','push'];a287_0x5af6=function(){return _0x4f6455;};return a287_0x5af6();}export function listAliases(_0x3cc678,_0x583033,_0x30765b,_0x32edf2){return loadAliasMap(_0x3cc678,_0x583033,_0x30765b,_0x32edf2);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -83,27 +83,25 @@ export declare function platformFetch<T = any>(url: string, opts: PlatformFetchO
|
|
|
83
83
|
export declare function platformRequest<T = any>(path: string, opts: PlatformFetchOptions): Promise<T>;
|
|
84
84
|
/** Requests the legacy rules backend; company management uses KB Service. */
|
|
85
85
|
export declare function kbRequest<T = any>(path: string, opts: PlatformFetchOptions): Promise<T>;
|
|
86
|
+
export type KnowledgeIndexStatus = "READY" | "PENDING" | "UNKNOWN" | "DELETING" | "DELETED" | "DISABLED";
|
|
86
87
|
export interface KnowledgeBaseRecord {
|
|
87
|
-
id:
|
|
88
|
+
id: string;
|
|
88
89
|
scope: "company" | "personal";
|
|
89
90
|
appCode: string;
|
|
90
91
|
title: string;
|
|
91
92
|
version: number;
|
|
92
93
|
content: string;
|
|
94
|
+
sourceVersion?: number;
|
|
95
|
+
indexStatus?: KnowledgeIndexStatus;
|
|
96
|
+
indexedVersion?: number | null;
|
|
93
97
|
createTime?: string | number | null;
|
|
94
98
|
updateTime?: string | number | null;
|
|
95
99
|
}
|
|
96
100
|
export type AppRuleType = "rules" | "database";
|
|
97
101
|
export type AppRuleTitle = "RULES" | "DATABASE";
|
|
98
|
-
export interface AppRuleRecord {
|
|
99
|
-
id: number;
|
|
102
|
+
export interface AppRuleRecord extends Omit<KnowledgeBaseRecord, "scope" | "title"> {
|
|
100
103
|
scope: "rules";
|
|
101
|
-
appCode: string;
|
|
102
104
|
title: AppRuleTitle;
|
|
103
|
-
version: number;
|
|
104
|
-
content: string;
|
|
105
|
-
createTime?: string | number | null;
|
|
106
|
-
updateTime?: string | number | null;
|
|
107
105
|
}
|
|
108
106
|
export interface KnowledgeBaseListFilters {
|
|
109
107
|
currentPage?: number;
|
|
@@ -111,6 +109,7 @@ export interface KnowledgeBaseListFilters {
|
|
|
111
109
|
appCode?: string;
|
|
112
110
|
title?: string;
|
|
113
111
|
}
|
|
112
|
+
export declare function knowledgeDocumentsPath(resource: "company" | "rules", operation: "page" | "get-one" | "get-by-title" | "create" | "update" | "delete" | "status" | "list"): string;
|
|
114
113
|
export declare function getAppRule(cookie: string, input: {
|
|
115
114
|
appCode: string;
|
|
116
115
|
type: AppRuleType;
|
|
@@ -119,23 +118,27 @@ export declare function saveAppRule(cookie: string, input: {
|
|
|
119
118
|
appCode: string;
|
|
120
119
|
type: AppRuleType;
|
|
121
120
|
content: string;
|
|
121
|
+
expectedVersion: number;
|
|
122
|
+
id?: string;
|
|
122
123
|
}): Promise<AppRuleRecord>;
|
|
123
124
|
export declare function listEnterpriseKnowledgeBases(cookie: string, filters?: KnowledgeBaseListFilters): Promise<{
|
|
124
125
|
items: KnowledgeBaseRecord[];
|
|
125
126
|
paging?: Paging;
|
|
126
127
|
}>;
|
|
127
|
-
export declare function getEnterpriseKnowledgeBase(cookie: string, id:
|
|
128
|
+
export declare function getEnterpriseKnowledgeBase(cookie: string, id: string, appCode: string): Promise<KnowledgeBaseRecord>;
|
|
128
129
|
export declare function createEnterpriseKnowledgeBase(cookie: string, input: {
|
|
129
130
|
appCode: string;
|
|
130
131
|
title: string;
|
|
131
132
|
content: string;
|
|
132
133
|
}): Promise<KnowledgeBaseRecord>;
|
|
133
134
|
export declare function updateEnterpriseKnowledgeBase(cookie: string, input: {
|
|
134
|
-
id:
|
|
135
|
+
id: string;
|
|
136
|
+
appCode: string;
|
|
137
|
+
expectedVersion: number;
|
|
135
138
|
title?: string;
|
|
136
139
|
content?: string;
|
|
137
140
|
}): Promise<KnowledgeBaseRecord>;
|
|
138
|
-
export declare function deleteEnterpriseKnowledgeBase(cookie: string, id: number): Promise<void>;
|
|
141
|
+
export declare function deleteEnterpriseKnowledgeBase(cookie: string, id: string, appCode: string, expectedVersion: number): Promise<void>;
|
|
139
142
|
/**
|
|
140
143
|
* 获取研发态数据集模型列表。
|
|
141
144
|
*/
|