@xpert-ai/plugin-sdk 3.28.0 → 3.29.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.
Files changed (32) hide show
  1. package/data-workbench.cjs.js +0 -679
  2. package/data-workbench.esm.js +1 -676
  3. package/docs/artifact-presentations.md +2 -0
  4. package/docs/artifact-types.md +97 -0
  5. package/docs/data-workbench.md +37 -0
  6. package/index.cjs.js +171 -4
  7. package/index.esm.js +168 -4
  8. package/model-provider.cjs.js +5 -0
  9. package/model-provider.esm.js +5 -1
  10. package/package.json +2 -2
  11. package/src/data-workbench.d.ts +0 -2
  12. package/src/index.d.ts +1 -0
  13. package/src/lib/agent/handoff/agent-chat.contract.d.ts +0 -1
  14. package/src/lib/agent/handoff/types.d.ts +2 -1
  15. package/src/lib/agent/middleware/capabilities/execution-observability.d.ts +26 -0
  16. package/src/lib/agent/middleware/capabilities/index.d.ts +1 -0
  17. package/src/lib/artifact-type/definition.schema.d.ts +119 -0
  18. package/src/lib/artifact-type/index.d.ts +91 -0
  19. package/src/lib/artifact-type/registry.d.ts +25 -0
  20. package/src/lib/data/datasource/adapter.strategy.d.ts +3 -0
  21. package/src/lib/data/datasource/index.d.ts +0 -2
  22. package/src/lib/data/datasource/strategy.interface.d.ts +5 -1
  23. package/src/lib/data/datasource/types.d.ts +2 -2
  24. package/src/lib/data/datasource/workbench.d.ts +4 -3
  25. package/src/lib/runtime/capabilities/artifact-library.d.ts +52 -0
  26. package/src/lib/runtime/capabilities/artifacts.d.ts +15 -0
  27. package/src/lib/runtime/capabilities/index.d.ts +1 -0
  28. package/src/lib/data/datasource/workbench-adapter.d.ts +0 -51
  29. package/src/lib/data/datasource/workbench-pagination.d.ts +0 -6
  30. package/src/lib/data/datasource/workbench-sql-lexer.d.ts +0 -11
  31. package/src/lib/data/datasource/workbench-sql-syntax.d.ts +0 -3
  32. package/src/lib/data/datasource/workbench-sql.d.ts +0 -20
@@ -7,6 +7,8 @@ Artifact presentations separate authenticated display from owner-only management
7
7
 
8
8
  ## Provider contract
9
9
 
10
+ Register an `ArtifactTypeProvider` with `presentation: {mode: 'authenticated'}` and create Artifacts with its explicit `type` reference. The type and presentation providers must belong to the same plugin installation. See [Artifact type plugins](./artifact-types.md). Anonymous snapshots use the separate snapshot mode and have no query operations.
11
+
10
12
  Register a Nest provider with `@ArtifactPresentationProvider({pluginName, resourceType})`, implement `IArtifactPresentationProvider`, and include it in the plugin module. Registry discovery uses the explicit source pair and plugin provenance in the authorized organization.
11
13
 
12
14
  - `getEntry()` returns `{html}` with its packaged frontend assets.
@@ -0,0 +1,97 @@
1
+ # Artifact type plugins
2
+
3
+ The host owns Artifact containers, immutable versions, links, audience authorization, expiry, revocation, integrity checks and audit. A type contribution owns its content schema and additional business restrictions. Type approval never overrides platform authorization.
4
+
5
+ ## Register a type
6
+
7
+ Include a decorated provider in the native plugin's Nest module:
8
+
9
+ ```ts
10
+ import { Injectable } from '@nestjs/common'
11
+ import {
12
+ ArtifactTypeProvider,
13
+ type ArtifactTypeDefinition,
14
+ type IArtifactTypeProvider,
15
+ type ArtifactTypeSource,
16
+ type ArtifactTypeActor,
17
+ type ContentOperation
18
+ } from '@xpert-ai/plugin-sdk'
19
+ import { z } from 'zod/v3'
20
+
21
+ const report = z.object({ schemaVersion: z.literal(1), title: z.string(), body: z.string() }).strict()
22
+
23
+ @Injectable()
24
+ @ArtifactTypeProvider('inspection-report')
25
+ export class InspectionReportArtifactType implements IArtifactTypeProvider {
26
+ readonly definition: ArtifactTypeDefinition = {
27
+ kinds: ['file'],
28
+ content: { mimeTypes: ['application/json'], maxBytes: 1024 * 1024 },
29
+ sharing: {
30
+ accessModes: ['organization_all'],
31
+ versionModes: ['version'],
32
+ maxTtlSeconds: 7 * 86400,
33
+ allowDownload: false,
34
+ mutableLinks: false,
35
+ descriptor: false,
36
+ shareKey: 'published-report'
37
+ },
38
+ presentation: { mode: 'file' }
39
+ }
40
+
41
+ constructor(private readonly reports: InspectionReportsService) {}
42
+
43
+ async authorize(source: ArtifactTypeSource, actor: ArtifactTypeActor, operation: ContentOperation) {
44
+ // Reuse the application's governed resource API. A share is not source access.
45
+ if (operation === 'read') await this.reports.assertExportAvailable(source)
46
+ else await this.reports.authorizeExport(source, actor, operation)
47
+ }
48
+
49
+ validateContent(content: Buffer) {
50
+ report.parse(JSON.parse(content.toString('utf8')))
51
+ }
52
+ }
53
+ ```
54
+
55
+ `InspectionReportsService` represents the plugin's business authorization service. Both synchronous and asynchronous validators are supported and awaited. Optional `assertPublication(source, access)` and `assertLink(source, link)` impose further dynamic restrictions, such as a deployment setting.
56
+
57
+ The decorator declares only `resourceType`. The plugin loader supplies `pluginName` and installation scope. Plugins cannot claim the platform namespace or a different plugin's type. The same provider instance cannot be reused across installations.
58
+
59
+ Create with an explicit type using the existing runtime capability:
60
+
61
+ ```ts
62
+ const type = { pluginName: '@company/inspection', resourceType: 'inspection-report' }
63
+ const artifact = await artifacts.createArtifact({
64
+ type,
65
+ source: { ...type, resourceId: reportId },
66
+ kind: 'file',
67
+ title: reportTitle
68
+ })
69
+ ```
70
+
71
+ `type` is the business type; `kind` is the platform format family and version `mimeType` describes the bytes. A custom type must match the source's plugin and resource type. Omitting `type` explicitly selects the built-in file behavior for ordinary generated files; a registered custom source cannot bypass its type by selecting file behavior. Use existing `ensureArtifactVersion`, `ensureArtifactShare`, `getArtifactShare` and revoke methods. Scope and resource IDs come from trusted execution or authenticated application context, never Agent-supplied identity fields.
72
+
73
+ The host persists `typeBinding` including the installation scope. Existing bindings cannot be retargeted. Uninstalling a required type denies reads, even if another installation provides a same-named type. Owners can still revoke links. Untyped rows are denied; this new protocol does not infer legacy types. The schema adds a nullable JSON column; new creation always writes a binding.
74
+
75
+ ## Display modes
76
+
77
+ - `file`: serve the authorized immutable file through the ordinary Artifact content pipeline.
78
+ - `snapshot`: provide `snapshot: {kind: 'plugin', read(context), getEntry()}`. `read` returns presentation data from the already-authorized version; `getEntry` returns packaged HTML using the existing remote-component protocol. Use `requestData` to consume the data. There are no query operations. Viewer identity is an explicit anonymous/authenticated union; rendering has no ambient authenticated request identity. Public links use `/artifacts/snapshot/:slug`, including login handling for restricted links. The iframe remains opaque, no-network and script-sandboxed. The host checks access/type availability again after rendering, and the client clears expired content and periodically rechecks access.
79
+ - `authenticated`: register the existing `ArtifactPresentationProvider` for the same source and installation. Queries run as the current viewer. Public links do not grant access to this query surface. Declared operations, target versions and both providers are revalidated. See [Artifact presentations](./artifact-presentations.md).
80
+
81
+ All URLs are returned by the platform; plugins do not choose origins or construct share URLs. A snapshot's `data` must contain only deliberately published content. Native server plugins are trusted code; these contracts are not a process sandbox.
82
+
83
+ ## Built-in conversation plugin
84
+
85
+ The host registers `ConversationArtifactPlugin` at `@xpert-ai/platform / conversation_snapshot` using this same registry. Its snapshot has `kind: 'host'`, reserved for built-ins. Application composition binds its `/s/:slug` UI, which continues to use ChatKit's read-only MessageList. Conversation entity queries, snapshot schema and public-sharing settings stay in `conversation-sharing`.
86
+
87
+ No host-internal policy interface or compatibility adapter is retained. Deploy contracts, SDK, server schema and Cloud viewer together. Previously untyped experimental rows require an authorized republish; the server does not silently reinterpret them.
88
+
89
+ ## Project library integration
90
+
91
+ `ArtifactLibraryRuntimeCapability` (`platform.artifact-library`) manages a Project's pinned references independently of publishing and link creation. Its `add`, `open`, `selectVersion`, `share`, and `revoke` operations accept the authenticated actor and Project (plus Assistant when applicable). A reference is registered in Content Catalog with `presentation.kind: 'artifact'`; collections such as Spaces own only its folder placement. Opening requires both Project membership and the source Artifact's current authorization. Moving, renaming or trashing a reference never mutates the original Artifact.
92
+
93
+ Declare `definition.title` as an `I18nObject` (for example, `{ en_US: 'Shared conversation', zh_Hans: '分享会话' }`) to name the semantic type. Library responses expose the bound type identity and title through `type`; catalog snapshots include it in `presentation.type`. Collections localize this metadata for list, card and management views independently of the reference relationship and rendering kind. Older providers without a title use the generic Artifact label; consumers must not infer types from filenames or user-authored titles.
94
+
95
+ Use `ArtifactsApi.readArtifactVersion({ artifactId, artifactVersionId, purpose })` to read published bytes with source authorization, active-version checks, content validation and checksum verification. `purpose: 'copy'` additionally requires `definition.collection.allowCopy: true`. Custom types default to denying copies; the built-in file type permits them. Copying creates an independent lifecycle under the destination Project's ACL, so the collecting UI must explain and confirm this boundary. Conversation snapshots remain reference-only.
96
+
97
+ The authenticated library viewer reuses the type's file, snapshot or authenticated presentation without minting a share. Existing shares are resolved by the type's `sharing.shareKey` (or `artifact-library`) and their stored URLs can be copied repeatedly. Selecting another reference version does not update the published link. Public sharing remains an explicit, separately authorized operation.
@@ -0,0 +1,37 @@
1
+ # Plugin-owned database workbench
2
+
3
+ The SDK defines `DatabaseWorkbenchAdapter`, its wire types and the existing
4
+ `platform.datasource.workbench` capability. Database implementations belong to
5
+ plugins. Adding an engine does not require a platform engine enum or dispatch branch.
6
+
7
+ A registered `IDataSourceStrategy` opts in with `workbench: { engine: '<stable-id>' }`.
8
+ The host lists that declaration without opening connections, selects the strategy
9
+ using the saved datasource type, then calls `create(savedOptions)` to obtain an
10
+ independent runner. `runner.getWorkbenchAdapter(location?)` creates the adapter.
11
+ Its engine identifier must match the strategy declaration.
12
+
13
+ The plugin interprets and validates `DatabaseLocation`, implements SQL syntax,
14
+ metadata discovery, parameter binding, database/schema selection and driver cleanup.
15
+ It must not treat location fields as credentials, identity or arbitrary driver options.
16
+ The host retains actor/tenant/organization checks, source authorization and revision
17
+ checks, write permission checks and session cleanup. Every invocation revalidates
18
+ host scope. The adapter and runner are closed when the saved connection changes.
19
+
20
+ Consumers resolve the existing capability by its stable string ID. Do not dispatch
21
+ plugin-side CQRS commands or import platform services. No new factory capability or
22
+ parallel plugin registry is introduced.
23
+
24
+ ## Breaking migration
25
+
26
+ The SDK no longer exports its mixed-engine `SqlDatabaseWorkbenchAdapter`,
27
+ `WorkbenchTransport`, `splitWorkbenchSql`, `requireReadStatement`,
28
+ `quoteDatabaseIdentifier`, or SQL pagination/lexer implementations. Use the
29
+ corresponding database plugin implementation and the plugin repository's
30
+ `@xpert-ai/sql-workbench` helpers. MySQL/Doris, PostgreSQL and DB Studio are migrated
31
+ in the companion plugin change; HANA implements the same contract independently.
32
+
33
+ Strategies without an explicit workbench declaration are not exposed by this
34
+ runtime. Coordinate the host/SDK patch release with the migrated plugins; do not
35
+ upgrade a host that still relies on the removed SDK implementation exports.
36
+ After the SDK is published, update the plugin SDK dependency floors and lockfile
37
+ and validate a clean install against that actual version before release.
package/index.cjs.js CHANGED
@@ -4304,6 +4304,14 @@ const FileRuntimeCapability = modelProvider.createRuntimeCapability('platform.fi
4304
4304
  description: 'Resolve platform file handles into previewable file URLs.'
4305
4305
  });
4306
4306
 
4307
+ /** Credential audience check only; the host must still revalidate the human's live admin role and grant. */ function isExecutionObservationSession(principal, xpertId) {
4308
+ var _principal_resourceScope;
4309
+ return !principal || Boolean(xpertId && principal.principalType === 'client_secret' && principal.clientSecretBindingType === contracts.SecretTokenBindingType.USER_XPERT && principal.clientSecretId && ((_principal_resourceScope = principal.resourceScope) == null ? void 0 : _principal_resourceScope.kind) === 'assistant' && principal.resourceScope.xpertId === xpertId);
4310
+ }
4311
+ const ExecutionObservabilityRuntimeCapability = modelProvider.createRuntimeCapability('platform.execution_observability', {
4312
+ description: 'Administrator-only execution analytics within the host-bound tenant and organization.'
4313
+ });
4314
+
4307
4315
  const XPERT_AGENT_MIDDLEWARE_RUNTIME_TOKEN = 'XPERT_AGENT_MIDDLEWARE_RUNTIME';
4308
4316
 
4309
4317
  const MODEL_OUTPUT_VALIDATION_ERROR_CODE = 'MODEL_OUTPUT_VALIDATION_ERROR';
@@ -6803,6 +6811,162 @@ exports.ArtifactPresentationRegistry = __decorate([
6803
6811
  ])
6804
6812
  ], exports.ArtifactPresentationRegistry);
6805
6813
 
6814
+ /** Package exports are a runtime boundary; reject malformed declarations before registration. */ const artifactTypeDefinitionSchema = v3.z.object({
6815
+ title: v3.z.object({
6816
+ en_US: v3.z.string().trim().min(1).max(200),
6817
+ zh_Hans: v3.z.string().trim().min(1).max(200).optional(),
6818
+ zh_Hant: v3.z.string().trim().min(1).max(200).optional()
6819
+ }).strict().optional(),
6820
+ kinds: v3.z.array(v3.z.enum([
6821
+ 'html',
6822
+ 'markdown',
6823
+ 'pdf',
6824
+ 'pptx',
6825
+ 'image',
6826
+ 'file',
6827
+ 'site',
6828
+ 'presentation'
6829
+ ])).min(1),
6830
+ collection: v3.z.object({
6831
+ allowCopy: v3.z.boolean()
6832
+ }).strict().optional(),
6833
+ content: v3.z.object({
6834
+ mimeTypes: v3.z.array(v3.z.string().min(1)).min(1),
6835
+ maxBytes: v3.z.number().int().positive()
6836
+ }).strict().optional(),
6837
+ sharing: v3.z.object({
6838
+ accessModes: v3.z.array(v3.z.enum([
6839
+ 'owner_only',
6840
+ 'workspace_all',
6841
+ 'organization_all',
6842
+ 'custom_principals',
6843
+ 'public_link',
6844
+ 'signed_preview'
6845
+ ])).min(1),
6846
+ versionModes: v3.z.array(v3.z.enum([
6847
+ 'latest',
6848
+ 'version'
6849
+ ])).min(1),
6850
+ maxTtlSeconds: v3.z.number().int().positive().optional(),
6851
+ allowDownload: v3.z.boolean(),
6852
+ mutableLinks: v3.z.boolean(),
6853
+ descriptor: v3.z.boolean(),
6854
+ shareKey: v3.z.string().min(1).optional()
6855
+ }).strict().optional(),
6856
+ presentation: v3.z.object({
6857
+ mode: v3.z.enum([
6858
+ 'file',
6859
+ 'snapshot',
6860
+ 'authenticated'
6861
+ ])
6862
+ }).strict()
6863
+ }).strict();
6864
+
6865
+ const artifactTypeKey = (type)=>JSON.stringify([
6866
+ type.pluginName,
6867
+ type.resourceType
6868
+ ]);
6869
+ const FILE_ARTIFACT_TYPE = {
6870
+ pluginName: '@xpert-ai/platform',
6871
+ resourceType: 'file'
6872
+ };
6873
+ /** Bindings pin registration scope. Removal never falls back to a different installation or plain file. */ exports.ArtifactTypeRegistry = class ArtifactTypeRegistry extends BaseStrategyRegistry {
6874
+ upsert(instance) {
6875
+ const target = resolveStrategyMetadataTarget(instance);
6876
+ const resourceType = target ? this.reflector.get(ARTIFACT_TYPE_PROVIDER, target) : undefined;
6877
+ if (!resourceType) return;
6878
+ const provider = instance;
6879
+ const source = this.getSource(provider);
6880
+ // Built-ins are explicitly composed by the host, never inferred from missing loader metadata.
6881
+ if (source.kind !== 'plugin') return;
6882
+ this.register(artifactTypeKey({
6883
+ pluginName: source.pluginName,
6884
+ resourceType
6885
+ }), provider, source);
6886
+ }
6887
+ registerBuiltin(type, provider) {
6888
+ this.register(artifactTypeKey(type), provider, {
6889
+ kind: 'builtin',
6890
+ scopeKey: BUILTIN_GLOBAL_SCOPE
6891
+ });
6892
+ }
6893
+ assertCanRegister(key, provider, source) {
6894
+ var _provider_snapshot, _this_strategies_get;
6895
+ if (!(provider == null ? void 0 : provider.definition) || typeof provider.authorize !== 'function' || typeof provider.validateContent !== 'function') throw new Error('ARTIFACT_TYPE_INVALID');
6896
+ artifactTypeDefinitionSchema.parse(provider.definition);
6897
+ const identity = JSON.parse(key);
6898
+ if (!Array.isArray(identity) || identity.length !== 2 || identity.some((value)=>typeof value !== 'string' || !value.trim())) throw new Error('ARTIFACT_TYPE_INVALID');
6899
+ if (source.kind === 'plugin' && (identity[0] !== source.pluginName || source.pluginName === '@xpert-ai/platform')) throw new Error('ARTIFACT_TYPE_NAMESPACE_DENIED');
6900
+ if (source.kind === 'plugin' && ((_provider_snapshot = provider.snapshot) == null ? void 0 : _provider_snapshot.kind) === 'host') throw new Error('ARTIFACT_TYPE_HOST_VIEW_DENIED');
6901
+ if (provider.definition.presentation.mode === 'snapshot' && !provider.snapshot) throw new Error('ARTIFACT_TYPE_SNAPSHOT_REQUIRED');
6902
+ if (provider.snapshot && (provider.definition.presentation.mode !== 'snapshot' || typeof provider.snapshot.read !== 'function' || provider.snapshot.kind === 'plugin' && typeof provider.snapshot.getEntry !== 'function')) throw new Error('ARTIFACT_TYPE_INVALID');
6903
+ const existing = (_this_strategies_get = this.strategies.get(source.scopeKey)) == null ? void 0 : _this_strategies_get.get(key);
6904
+ if (existing && existing !== provider) {
6905
+ const owner = this.getSource(existing);
6906
+ if (owner.kind !== source.kind || source.kind === 'builtin' || owner.kind === 'plugin' && source.kind === 'plugin' && owner.pluginName !== source.pluginName) throw new Error('ARTIFACT_TYPE_CONFLICT');
6907
+ }
6908
+ for (const [scope, entries] of this.strategies){
6909
+ if ([
6910
+ ...entries.values()
6911
+ ].includes(provider) && scope !== source.scopeKey) throw new Error('ARTIFACT_TYPE_SCOPE_CONFLICT');
6912
+ }
6913
+ super.assertCanRegister(key, provider, source);
6914
+ }
6915
+ bind(type, scope) {
6916
+ var _this_strategies_get;
6917
+ if (!scope.tenantId) throw new Error('ARTIFACT_TYPE_SCOPE_REQUIRED');
6918
+ const tenantScope = scope.tenantId === getDefaultTenantId() ? GLOBAL_ORGANIZATION_SCOPE : getTenantGlobalScopeKey(scope.tenantId);
6919
+ const scopes = [
6920
+ ...new Set([
6921
+ scope.organizationId,
6922
+ tenantScope,
6923
+ SYSTEM_GLOBAL_SCOPE,
6924
+ BUILTIN_GLOBAL_SCOPE
6925
+ ].filter(Boolean))
6926
+ ];
6927
+ const key = artifactTypeKey(type);
6928
+ for (const scopeKey of scopes)if ((_this_strategies_get = this.strategies.get(scopeKey)) == null ? void 0 : _this_strategies_get.has(key)) return _extends._extends({}, type, {
6929
+ scopeKey
6930
+ });
6931
+ throw new Error('ARTIFACT_TYPE_UNAVAILABLE');
6932
+ }
6933
+ hasType(type, scope) {
6934
+ try {
6935
+ this.bind(type, scope);
6936
+ return true;
6937
+ } catch (e) {
6938
+ return false;
6939
+ }
6940
+ }
6941
+ requireBinding(binding, scope) {
6942
+ var _this_strategies_get;
6943
+ if (!binding || !scope.tenantId) throw new Error('ARTIFACT_TYPE_UNAVAILABLE');
6944
+ const tenantScope = scope.tenantId === getDefaultTenantId() ? GLOBAL_ORGANIZATION_SCOPE : getTenantGlobalScopeKey(scope.tenantId);
6945
+ if (![
6946
+ scope.organizationId,
6947
+ tenantScope,
6948
+ SYSTEM_GLOBAL_SCOPE,
6949
+ BUILTIN_GLOBAL_SCOPE
6950
+ ].includes(binding.scopeKey)) throw new Error('ARTIFACT_TYPE_SCOPE_DENIED');
6951
+ const provider = (_this_strategies_get = this.strategies.get(binding.scopeKey)) == null ? void 0 : _this_strategies_get.get(artifactTypeKey(binding));
6952
+ if (!provider) throw new Error('ARTIFACT_TYPE_UNAVAILABLE');
6953
+ return provider;
6954
+ }
6955
+ constructor(discovery, reflector){
6956
+ super(ARTIFACT_TYPE_PROVIDER, discovery, reflector);
6957
+ }
6958
+ };
6959
+ exports.ArtifactTypeRegistry = __decorate([
6960
+ common.Injectable(),
6961
+ __metadata("design:paramtypes", [
6962
+ core.DiscoveryService,
6963
+ core.Reflector
6964
+ ])
6965
+ ], exports.ArtifactTypeRegistry);
6966
+
6967
+ const ARTIFACT_TYPE_PROVIDER = 'XPERT_ARTIFACT_TYPE_PROVIDER';
6968
+ /** The loader supplies plugin identity. A contribution cannot select another plugin's namespace. */ const ArtifactTypeProvider = (resourceType)=>common.applyDecorators(common.SetMetadata(ARTIFACT_TYPE_PROVIDER, resourceType), common.SetMetadata(STRATEGY_META_KEY, ARTIFACT_TYPE_PROVIDER));
6969
+
6806
6970
  /** Platform-owned real-time collaboration capability available to scoped plugin runtimes. */ const CollaborationRuntimeCapability = modelProvider.createRuntimeCapability('platform.collaboration', {
6807
6971
  description: 'Create, synchronize, persist, authorize, and observe platform-managed real-time collaboration documents.'
6808
6972
  });
@@ -11141,6 +11305,7 @@ Object.defineProperty(exports, "resourceCardId", {
11141
11305
  exports.ActorTokenRuntimeCapability = modelProvider.ActorTokenRuntimeCapability;
11142
11306
  exports.ActorTokenRuntimeFactoryCapability = modelProvider.ActorTokenRuntimeFactoryCapability;
11143
11307
  exports.ArtifactDraftsRuntimeCapability = modelProvider.ArtifactDraftsRuntimeCapability;
11308
+ exports.ArtifactLibraryRuntimeCapability = modelProvider.ArtifactLibraryRuntimeCapability;
11144
11309
  exports.ArtifactsRuntimeCapability = modelProvider.ArtifactsRuntimeCapability;
11145
11310
  exports.AssistantMiddlewareAccessRuntimeCapability = modelProvider.AssistantMiddlewareAccessRuntimeCapability;
11146
11311
  exports.BaseTool = modelProvider.BaseTool;
@@ -11172,10 +11337,6 @@ exports.workspaceFileMutationMetadata = modelProvider.workspaceFileMutationMetad
11172
11337
  exports.workspaceFileMutationPath = modelProvider.workspaceFileMutationPath;
11173
11338
  exports.workspaceRelativeFilePathSchema = modelProvider.workspaceRelativeFilePathSchema;
11174
11339
  exports.DataSourceRuntimeCapability = dataWorkbench.DataSourceRuntimeCapability;
11175
- exports.SqlDatabaseWorkbenchAdapter = dataWorkbench.SqlDatabaseWorkbenchAdapter;
11176
- exports.quoteDatabaseIdentifier = dataWorkbench.quoteDatabaseIdentifier;
11177
- exports.requireReadStatement = dataWorkbench.requireReadStatement;
11178
- exports.splitWorkbenchSql = dataWorkbench.splitWorkbenchSql;
11179
11340
  exports.analyticsBindingObjectSchema = analyticsResult.analyticsBindingObjectSchema;
11180
11341
  exports.analyticsBindingSchema = analyticsResult.analyticsBindingSchema;
11181
11342
  exports.analyticsControlsSchema = analyticsResult.analyticsControlsSchema;
@@ -11219,6 +11380,7 @@ exports.AIModelProviderStrategy = AIModelProviderStrategy;
11219
11380
  exports.AI_MODEL_PROVIDER = AI_MODEL_PROVIDER;
11220
11381
  exports.ANALYTICS_PROVIDER = ANALYTICS_PROVIDER;
11221
11382
  exports.ARTIFACT_PRESENTATION_PROVIDER = ARTIFACT_PRESENTATION_PROVIDER;
11383
+ exports.ARTIFACT_TYPE_PROVIDER = ARTIFACT_TYPE_PROVIDER;
11222
11384
  exports.ASSISTANT_CAPABILITY_PROVIDER = ASSISTANT_CAPABILITY_PROVIDER;
11223
11385
  exports.AdapterDataSourceStrategy = AdapterDataSourceStrategy;
11224
11386
  exports.AgentExecutionRunnerCapability = AgentExecutionRunnerCapability;
@@ -11233,6 +11395,7 @@ exports.AnalyticsDefinitionAuthoringCapability = AnalyticsDefinitionAuthoringCap
11233
11395
  exports.AnalyticsProvider = AnalyticsProvider;
11234
11396
  exports.AnalyticsRuntimeCapability = AnalyticsRuntimeCapability;
11235
11397
  exports.ArtifactPresentationProvider = ArtifactPresentationProvider;
11398
+ exports.ArtifactTypeProvider = ArtifactTypeProvider;
11236
11399
  exports.AssistantCapabilityProvider = AssistantCapabilityProvider;
11237
11400
  exports.AssistantTaskRuntimeCapability = AssistantTaskRuntimeCapability;
11238
11401
  exports.BOUND_IDENTITY_LOGIN_PERMISSION_SERVICE_TOKEN = BOUND_IDENTITY_LOGIN_PERMISSION_SERVICE_TOKEN;
@@ -11293,6 +11456,8 @@ exports.EvolutionBaselineRuntimeCapability = EvolutionBaselineRuntimeCapability;
11293
11456
  exports.EvolutionChangeRuntimeCapability = EvolutionChangeRuntimeCapability;
11294
11457
  exports.EvolutionRuntimeCapability = EvolutionRuntimeCapability;
11295
11458
  exports.EvolutionTargetProviderStrategy = EvolutionTargetProviderStrategy;
11459
+ exports.ExecutionObservabilityRuntimeCapability = ExecutionObservabilityRuntimeCapability;
11460
+ exports.FILE_ARTIFACT_TYPE = FILE_ARTIFACT_TYPE;
11296
11461
  exports.FILE_STORAGE_PROVIDER = FILE_STORAGE_PROVIDER;
11297
11462
  exports.FILE_UPLOAD_TARGET_STRATEGY = FILE_UPLOAD_TARGET_STRATEGY;
11298
11463
  exports.FileRuntimeCapability = FileRuntimeCapability;
@@ -11449,6 +11614,7 @@ exports.applyAssistantMiddleware = applyAssistantMiddleware;
11449
11614
  exports.applyModelConfiguration = applyModelConfiguration;
11450
11615
  exports.applyModelContextSize = applyModelContextSize;
11451
11616
  exports.artifactPresentationKey = artifactPresentationKey;
11617
+ exports.artifactTypeKey = artifactTypeKey;
11452
11618
  exports.buildSandboxTimeoutMessage = buildSandboxTimeoutMessage;
11453
11619
  exports.calcTokenUsage = calcTokenUsage;
11454
11620
  exports.calculateLLMUsagePrice = calculateLLMUsagePrice;
@@ -11487,6 +11653,7 @@ exports.getXpertToolMethod = getXpertToolMethod;
11487
11653
  exports.hasAssistantMiddleware = hasAssistantMiddleware;
11488
11654
  exports.isAgentInvocationTerminal = isAgentInvocationTerminal;
11489
11655
  exports.isDevelopmentSandboxRuntimeEnvironment = isDevelopmentSandboxRuntimeEnvironment;
11656
+ exports.isExecutionObservationSession = isExecutionObservationSession;
11490
11657
  exports.isFileContentEditor = isFileContentEditor;
11491
11658
  exports.isModelOutputValidationError = isModelOutputValidationError;
11492
11659
  exports.isModelUsagePricingConfig = isModelUsagePricingConfig;
package/index.esm.js CHANGED
@@ -2,7 +2,7 @@ import { Module, applyDecorators, SetMetadata, HttpException, HttpStatus, BadReq
2
2
  import { MODULE_METADATA } from '@nestjs/common/constants.js';
3
3
  import { pick } from 'lodash-es';
4
4
  import { dispatchCustomEvent } from '@langchain/core/callbacks/dispatch';
5
- import { ChatMessageEventTypeEnum, createResourceCardContent, LanguagesEnum, ParameterType, AiModelTypeEnum, PriceType, FetchFrom, ModelPropertyKey, readModelConfiguration, ModelFeature, isDiscoverableModelType, configurationFromModel, projectTaskExecutionContextSchema, projectTaskExecutionReferenceSchema, agentRuntimeProgressSchema, agentInvocationTerminalStatusSchema, projectPipelineWorkContextSchema, WorkflowNodeTypeEnum, MCP_REQUIRED_CONTEXTS, MCP_CAPABILITY_APPROVAL_MODES, MCP_TOOL_RISKS, MCP_TOOL_SIDE_EFFECTS, MCP_TOOL_IDEMPOTENCY, MCP_CAPABILITY_VISIBILITIES, PLUGIN_COMPONENT_TYPE, projectPipelineContributionSchema, projectPipelineRefSchema } from '@xpert-ai/contracts';
5
+ import { ChatMessageEventTypeEnum, createResourceCardContent, LanguagesEnum, ParameterType, AiModelTypeEnum, PriceType, FetchFrom, ModelPropertyKey, readModelConfiguration, ModelFeature, isDiscoverableModelType, configurationFromModel, SecretTokenBindingType, projectTaskExecutionContextSchema, projectTaskExecutionReferenceSchema, agentRuntimeProgressSchema, agentInvocationTerminalStatusSchema, projectPipelineWorkContextSchema, WorkflowNodeTypeEnum, MCP_REQUIRED_CONTEXTS, MCP_CAPABILITY_APPROVAL_MODES, MCP_TOOL_RISKS, MCP_TOOL_SIDE_EFFECTS, MCP_TOOL_IDEMPOTENCY, MCP_CAPABILITY_VISIBILITIES, PLUGIN_COMPONENT_TYPE, projectPipelineContributionSchema, projectPipelineRefSchema } from '@xpert-ai/contracts';
6
6
  export { ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, agentOutputDeliverySchema, agentResultPathSchema, configurationFromModel, createResourceCardContent, parseResourceCard, projectPipelineContributionSchema, resourceCardId } from '@xpert-ai/contracts';
7
7
  import { DiscoveryService, Reflector } from '@nestjs/core';
8
8
  import { Subject, filter } from 'rxjs';
@@ -16,7 +16,7 @@ import fs__default from 'fs';
16
16
  import http from 'http';
17
17
  import https from 'https';
18
18
  import { c as createRuntimeCapability, B as BuiltinToolset, W as WorkspaceFilesRuntimeCapability } from './model-provider.esm.js';
19
- export { A as ActorTokenRuntimeCapability, a as ActorTokenRuntimeFactoryCapability, b as ArtifactDraftsRuntimeCapability, d as ArtifactsRuntimeCapability, e as AssistantMiddlewareAccessRuntimeCapability, f as BaseTool, g as BaseToolset, D as DefaultAgentMiddlewareRuntimeCapabilityRegistry, D as DefaultRuntimeCapabilityRegistry, h as McpClientRuntimeCapability, M as ModelProviderBuiltinToolset, P as ProjectAccessRuntimeCapability, i as ProjectFilesRuntimeCapability, j as ProjectKnowledgeRuntimeCapability, k as ProjectProvisioningRuntimeCapability, R as RUNTIME_CAPABILITY_PROVIDER, l as RestClientRuntimeCapability, m as RuntimeCapabilityProvider, S as SANDBOX_JOB_ERROR_CODES, n as SANDBOX_JOB_INVOCATION_PREFIX, o as SANDBOX_JOB_PROGRESS_PREFIX, p as SandboxJobRuntimeError, q as SandboxJobsRuntimeCapability, T as ToolImagesRuntimeCapability, r as WORKSPACE_FILES_SOURCE, X as XPERT_RUNTIME_CAPABILITIES_TOKEN, s as isSandboxJobRuntimeError, w as workspaceFileMutationMetadata, t as workspaceFileMutationPath, u as workspaceRelativeFilePathSchema } from './model-provider.esm.js';
19
+ export { A as ActorTokenRuntimeCapability, a as ActorTokenRuntimeFactoryCapability, b as ArtifactDraftsRuntimeCapability, d as ArtifactLibraryRuntimeCapability, e as ArtifactsRuntimeCapability, f as AssistantMiddlewareAccessRuntimeCapability, g as BaseTool, h as BaseToolset, D as DefaultAgentMiddlewareRuntimeCapabilityRegistry, D as DefaultRuntimeCapabilityRegistry, i as McpClientRuntimeCapability, M as ModelProviderBuiltinToolset, P as ProjectAccessRuntimeCapability, j as ProjectFilesRuntimeCapability, k as ProjectKnowledgeRuntimeCapability, l as ProjectProvisioningRuntimeCapability, R as RUNTIME_CAPABILITY_PROVIDER, m as RestClientRuntimeCapability, n as RuntimeCapabilityProvider, S as SANDBOX_JOB_ERROR_CODES, o as SANDBOX_JOB_INVOCATION_PREFIX, p as SANDBOX_JOB_PROGRESS_PREFIX, q as SandboxJobRuntimeError, r as SandboxJobsRuntimeCapability, T as ToolImagesRuntimeCapability, s as WORKSPACE_FILES_SOURCE, X as XPERT_RUNTIME_CAPABILITIES_TOKEN, t as isSandboxJobRuntimeError, w as workspaceFileMutationMetadata, u as workspaceFileMutationPath, v as workspaceRelativeFilePathSchema } from './model-provider.esm.js';
20
20
  import fsPromises from 'fs/promises';
21
21
  import * as path from 'path';
22
22
  import path__default, { join } from 'path';
@@ -28,7 +28,7 @@ import yaml__default from 'yaml';
28
28
  import Ajv from 'ajv';
29
29
  import schemaDraft04 from 'ajv/dist/refs/json-schema-draft-06.json';
30
30
  import * as _axios from 'axios';
31
- export { DataSourceRuntimeCapability, SqlDatabaseWorkbenchAdapter, quoteDatabaseIdentifier, requireReadStatement, splitWorkbenchSql } from './data-workbench.esm.js';
31
+ export { DataSourceRuntimeCapability } from './data-workbench.esm.js';
32
32
  export { a as analyticsBindingObjectSchema, b as analyticsBindingSchema, c as analyticsControlsSchema, d as analyticsDiscoveryRequestObjectSchema, e as analyticsDiscoveryRequestSchema, f as analyticsDiscoveryResultSchema, g as analyticsFieldSchema, h as analyticsOptionsSchema, i as analyticsParameterSchema, j as analyticsQueryRequestSchema, k as analyticsSourceKey, l as analyticsSourceRefSchema, n as normalizeAnalyticsResult, r as resolveAnalyticsParameters, v as validateAnalyticsBinding } from './analytics-result.esm.js';
33
33
  import { BaseCallbackHandler } from '@langchain/core/callbacks/base';
34
34
  import { ChatGenerationChunk } from '@langchain/core/outputs';
@@ -4286,6 +4286,14 @@ const FileRuntimeCapability = createRuntimeCapability('platform.file', {
4286
4286
  description: 'Resolve platform file handles into previewable file URLs.'
4287
4287
  });
4288
4288
 
4289
+ /** Credential audience check only; the host must still revalidate the human's live admin role and grant. */ function isExecutionObservationSession(principal, xpertId) {
4290
+ var _principal_resourceScope;
4291
+ return !principal || Boolean(xpertId && principal.principalType === 'client_secret' && principal.clientSecretBindingType === SecretTokenBindingType.USER_XPERT && principal.clientSecretId && ((_principal_resourceScope = principal.resourceScope) == null ? void 0 : _principal_resourceScope.kind) === 'assistant' && principal.resourceScope.xpertId === xpertId);
4292
+ }
4293
+ const ExecutionObservabilityRuntimeCapability = createRuntimeCapability('platform.execution_observability', {
4294
+ description: 'Administrator-only execution analytics within the host-bound tenant and organization.'
4295
+ });
4296
+
4289
4297
  const XPERT_AGENT_MIDDLEWARE_RUNTIME_TOKEN = 'XPERT_AGENT_MIDDLEWARE_RUNTIME';
4290
4298
 
4291
4299
  const MODEL_OUTPUT_VALIDATION_ERROR_CODE = 'MODEL_OUTPUT_VALIDATION_ERROR';
@@ -6785,6 +6793,162 @@ ArtifactPresentationRegistry = __decorate([
6785
6793
  ])
6786
6794
  ], ArtifactPresentationRegistry);
6787
6795
 
6796
+ /** Package exports are a runtime boundary; reject malformed declarations before registration. */ const artifactTypeDefinitionSchema = z.object({
6797
+ title: z.object({
6798
+ en_US: z.string().trim().min(1).max(200),
6799
+ zh_Hans: z.string().trim().min(1).max(200).optional(),
6800
+ zh_Hant: z.string().trim().min(1).max(200).optional()
6801
+ }).strict().optional(),
6802
+ kinds: z.array(z.enum([
6803
+ 'html',
6804
+ 'markdown',
6805
+ 'pdf',
6806
+ 'pptx',
6807
+ 'image',
6808
+ 'file',
6809
+ 'site',
6810
+ 'presentation'
6811
+ ])).min(1),
6812
+ collection: z.object({
6813
+ allowCopy: z.boolean()
6814
+ }).strict().optional(),
6815
+ content: z.object({
6816
+ mimeTypes: z.array(z.string().min(1)).min(1),
6817
+ maxBytes: z.number().int().positive()
6818
+ }).strict().optional(),
6819
+ sharing: z.object({
6820
+ accessModes: z.array(z.enum([
6821
+ 'owner_only',
6822
+ 'workspace_all',
6823
+ 'organization_all',
6824
+ 'custom_principals',
6825
+ 'public_link',
6826
+ 'signed_preview'
6827
+ ])).min(1),
6828
+ versionModes: z.array(z.enum([
6829
+ 'latest',
6830
+ 'version'
6831
+ ])).min(1),
6832
+ maxTtlSeconds: z.number().int().positive().optional(),
6833
+ allowDownload: z.boolean(),
6834
+ mutableLinks: z.boolean(),
6835
+ descriptor: z.boolean(),
6836
+ shareKey: z.string().min(1).optional()
6837
+ }).strict().optional(),
6838
+ presentation: z.object({
6839
+ mode: z.enum([
6840
+ 'file',
6841
+ 'snapshot',
6842
+ 'authenticated'
6843
+ ])
6844
+ }).strict()
6845
+ }).strict();
6846
+
6847
+ const artifactTypeKey = (type)=>JSON.stringify([
6848
+ type.pluginName,
6849
+ type.resourceType
6850
+ ]);
6851
+ const FILE_ARTIFACT_TYPE = {
6852
+ pluginName: '@xpert-ai/platform',
6853
+ resourceType: 'file'
6854
+ };
6855
+ /** Bindings pin registration scope. Removal never falls back to a different installation or plain file. */ let ArtifactTypeRegistry = class ArtifactTypeRegistry extends BaseStrategyRegistry {
6856
+ upsert(instance) {
6857
+ const target = resolveStrategyMetadataTarget(instance);
6858
+ const resourceType = target ? this.reflector.get(ARTIFACT_TYPE_PROVIDER, target) : undefined;
6859
+ if (!resourceType) return;
6860
+ const provider = instance;
6861
+ const source = this.getSource(provider);
6862
+ // Built-ins are explicitly composed by the host, never inferred from missing loader metadata.
6863
+ if (source.kind !== 'plugin') return;
6864
+ this.register(artifactTypeKey({
6865
+ pluginName: source.pluginName,
6866
+ resourceType
6867
+ }), provider, source);
6868
+ }
6869
+ registerBuiltin(type, provider) {
6870
+ this.register(artifactTypeKey(type), provider, {
6871
+ kind: 'builtin',
6872
+ scopeKey: BUILTIN_GLOBAL_SCOPE
6873
+ });
6874
+ }
6875
+ assertCanRegister(key, provider, source) {
6876
+ var _provider_snapshot, _this_strategies_get;
6877
+ if (!(provider == null ? void 0 : provider.definition) || typeof provider.authorize !== 'function' || typeof provider.validateContent !== 'function') throw new Error('ARTIFACT_TYPE_INVALID');
6878
+ artifactTypeDefinitionSchema.parse(provider.definition);
6879
+ const identity = JSON.parse(key);
6880
+ if (!Array.isArray(identity) || identity.length !== 2 || identity.some((value)=>typeof value !== 'string' || !value.trim())) throw new Error('ARTIFACT_TYPE_INVALID');
6881
+ if (source.kind === 'plugin' && (identity[0] !== source.pluginName || source.pluginName === '@xpert-ai/platform')) throw new Error('ARTIFACT_TYPE_NAMESPACE_DENIED');
6882
+ if (source.kind === 'plugin' && ((_provider_snapshot = provider.snapshot) == null ? void 0 : _provider_snapshot.kind) === 'host') throw new Error('ARTIFACT_TYPE_HOST_VIEW_DENIED');
6883
+ if (provider.definition.presentation.mode === 'snapshot' && !provider.snapshot) throw new Error('ARTIFACT_TYPE_SNAPSHOT_REQUIRED');
6884
+ if (provider.snapshot && (provider.definition.presentation.mode !== 'snapshot' || typeof provider.snapshot.read !== 'function' || provider.snapshot.kind === 'plugin' && typeof provider.snapshot.getEntry !== 'function')) throw new Error('ARTIFACT_TYPE_INVALID');
6885
+ const existing = (_this_strategies_get = this.strategies.get(source.scopeKey)) == null ? void 0 : _this_strategies_get.get(key);
6886
+ if (existing && existing !== provider) {
6887
+ const owner = this.getSource(existing);
6888
+ if (owner.kind !== source.kind || source.kind === 'builtin' || owner.kind === 'plugin' && source.kind === 'plugin' && owner.pluginName !== source.pluginName) throw new Error('ARTIFACT_TYPE_CONFLICT');
6889
+ }
6890
+ for (const [scope, entries] of this.strategies){
6891
+ if ([
6892
+ ...entries.values()
6893
+ ].includes(provider) && scope !== source.scopeKey) throw new Error('ARTIFACT_TYPE_SCOPE_CONFLICT');
6894
+ }
6895
+ super.assertCanRegister(key, provider, source);
6896
+ }
6897
+ bind(type, scope) {
6898
+ var _this_strategies_get;
6899
+ if (!scope.tenantId) throw new Error('ARTIFACT_TYPE_SCOPE_REQUIRED');
6900
+ const tenantScope = scope.tenantId === getDefaultTenantId() ? GLOBAL_ORGANIZATION_SCOPE : getTenantGlobalScopeKey(scope.tenantId);
6901
+ const scopes = [
6902
+ ...new Set([
6903
+ scope.organizationId,
6904
+ tenantScope,
6905
+ SYSTEM_GLOBAL_SCOPE,
6906
+ BUILTIN_GLOBAL_SCOPE
6907
+ ].filter(Boolean))
6908
+ ];
6909
+ const key = artifactTypeKey(type);
6910
+ for (const scopeKey of scopes)if ((_this_strategies_get = this.strategies.get(scopeKey)) == null ? void 0 : _this_strategies_get.has(key)) return _extends({}, type, {
6911
+ scopeKey
6912
+ });
6913
+ throw new Error('ARTIFACT_TYPE_UNAVAILABLE');
6914
+ }
6915
+ hasType(type, scope) {
6916
+ try {
6917
+ this.bind(type, scope);
6918
+ return true;
6919
+ } catch (e) {
6920
+ return false;
6921
+ }
6922
+ }
6923
+ requireBinding(binding, scope) {
6924
+ var _this_strategies_get;
6925
+ if (!binding || !scope.tenantId) throw new Error('ARTIFACT_TYPE_UNAVAILABLE');
6926
+ const tenantScope = scope.tenantId === getDefaultTenantId() ? GLOBAL_ORGANIZATION_SCOPE : getTenantGlobalScopeKey(scope.tenantId);
6927
+ if (![
6928
+ scope.organizationId,
6929
+ tenantScope,
6930
+ SYSTEM_GLOBAL_SCOPE,
6931
+ BUILTIN_GLOBAL_SCOPE
6932
+ ].includes(binding.scopeKey)) throw new Error('ARTIFACT_TYPE_SCOPE_DENIED');
6933
+ const provider = (_this_strategies_get = this.strategies.get(binding.scopeKey)) == null ? void 0 : _this_strategies_get.get(artifactTypeKey(binding));
6934
+ if (!provider) throw new Error('ARTIFACT_TYPE_UNAVAILABLE');
6935
+ return provider;
6936
+ }
6937
+ constructor(discovery, reflector){
6938
+ super(ARTIFACT_TYPE_PROVIDER, discovery, reflector);
6939
+ }
6940
+ };
6941
+ ArtifactTypeRegistry = __decorate([
6942
+ Injectable(),
6943
+ __metadata("design:paramtypes", [
6944
+ DiscoveryService,
6945
+ Reflector
6946
+ ])
6947
+ ], ArtifactTypeRegistry);
6948
+
6949
+ const ARTIFACT_TYPE_PROVIDER = 'XPERT_ARTIFACT_TYPE_PROVIDER';
6950
+ /** The loader supplies plugin identity. A contribution cannot select another plugin's namespace. */ const ArtifactTypeProvider = (resourceType)=>applyDecorators(SetMetadata(ARTIFACT_TYPE_PROVIDER, resourceType), SetMetadata(STRATEGY_META_KEY, ARTIFACT_TYPE_PROVIDER));
6951
+
6788
6952
  /** Platform-owned real-time collaboration capability available to scoped plugin runtimes. */ const CollaborationRuntimeCapability = createRuntimeCapability('platform.collaboration', {
6789
6953
  description: 'Create, synchronize, persist, authorize, and observe platform-managed real-time collaboration documents.'
6790
6954
  });
@@ -11084,4 +11248,4 @@ Reflect.defineMetadata('__command__', {
11084
11248
  id: ImportDefaultAgentPluginsCommand.type
11085
11249
  }, ImportDefaultAgentPluginsCommand);
11086
11250
 
11087
- export { ACCOUNT_BINDING_PERMISSION_SERVICE_TOKEN, AGENT_CHAT_DISPATCH_ERROR_STEER_TARGET_NOT_RUNNING, AGENT_CHAT_DISPATCH_MESSAGE_TYPE, AGENT_MIDDLEWARE_STRATEGY, AGENT_PROCESS_SUPERVISOR, AGENT_RUNTIME_EVENT_MESSAGE_TYPE, AGENT_RUNTIME_STRATEGY, AIModel, AIModelProviderNotFoundException, AIModelProviderRegistry, AIModelProviderStrategy, AI_MODEL_PROVIDER, ANALYTICS_PROVIDER, ARTIFACT_PRESENTATION_PROVIDER, ASSISTANT_CAPABILITY_PROVIDER, AdapterDataSourceStrategy, AgentExecutionRunnerCapability, AgentExecutionRunnerFactoryCapability, AgentInvocationRuntimeCapability, AgentMiddlewareRegistry, AgentMiddlewareStrategy, AgentRuntimeDeploymentCapability, AgentRuntimeFactoryCapability, AgentRuntimeRegistry, AgentRuntimeStrategy, AiModelNotFoundException, AnalyticsDefinitionAuthoringCapability, AnalyticsProvider, AnalyticsProviderRegistry, AnalyticsRuntimeCapability, ArtifactPresentationProvider, ArtifactPresentationRegistry, AssistantCapabilityProvider, AssistantCapabilityProviderRegistry, AssistantTaskRuntimeCapability, BOUND_IDENTITY_LOGIN_PERMISSION_SERVICE_TOKEN, BUILTIN_GLOBAL_SCOPE, BaseHTTPQueryRunner, BaseQueryRunner, BaseSQLQueryRunner, BaseSandbox, BaseStrategyRegistry, BuiltinToolset, CHAT_CHANNEL, CHAT_CHANNEL_TEXT_LIMITS, CLI_MODEL_TOKEN_REFERENCE, COLLABORATION_DOCUMENT_PROVIDER, CONNECTION_COMMAND_ROUTER_TOKEN, CONNECTOR_STRATEGY, CONTENT_RESOURCE_PROVIDER, CancelConversationCommand, ChatChannel, ChatChannelRegistry, ChatOAICompatReasoningModel, CliModelProfilesCapability, CollaborationDocumentProvider, CollaborationDocumentProviderRegistry, CollaborationRuntimeCapability, CommonParameterRules, ConnectorDocumentsRuntimeCapability, ConnectorRuntimeCapability, ConnectorRuntimeFactoryCapability, ConnectorStrategyKey, ConnectorStrategyRegistry, ContentDocumentsRuntimeCapability, ContentEditorProvider, ContentEditorRegistry, ContentEditorsRuntimeCapability, ContentReferencesRuntimeCapability, ContentResourceProvider, ContentResourceProviderRegistry, ContentResourcesRuntimeCapability, CreateModelClientCommand, CredentialsValidateFailedError, DATASOURCE_STRATEGY, DBCreateTableMode, DBProtocolEnum, DBSyntaxEnum, DBTableAction, DBTableDataAction, DEFAULT_EXECUTION_CONFIG, DEFAULT_SANDBOX_EXECUTION_MAX_OUTPUT_BYTES, DEFAULT_SANDBOX_FILE_OPERATION_EXECUTION_OPTIONS, DEFAULT_SANDBOX_FILE_OPERATION_TIMEOUT_MS, DEFAULT_SANDBOX_FILE_OPERATION_TIMEOUT_SEC, DEFAULT_SANDBOX_FILE_SEARCH_EXECUTION_OPTIONS, DEFAULT_SANDBOX_FILE_SEARCH_TIMEOUT_MS, DEFAULT_SANDBOX_FILE_SEARCH_TIMEOUT_SEC, DEFAULT_SANDBOX_SHELL_EXECUTION_OPTIONS, DEFAULT_SANDBOX_SHELL_TIMEOUT_MS, DEFAULT_SANDBOX_SHELL_TIMEOUT_SEC, DOCUMENT_SOURCE_STRATEGY, DOCUMENT_TRANSFORMER_STRATEGY, DataSourceStrategy, DataSourceStrategyRegistry, DecoratedAgentMiddlewareStrategy, DecoratedToolsetStrategy, DocumentSourceRegistry, DocumentSourceStrategy, DocumentTransformerRegistry, DocumentTransformerStrategy, EVOLUTION_RUNTIME_SERVICE_TOKEN, EVOLUTION_TARGET_PROVIDER, EvolutionBaselineRuntimeCapability, EvolutionChangeRuntimeCapability, EvolutionRuntimeCapability, EvolutionTargetProviderRegistry, EvolutionTargetProviderStrategy, FILE_STORAGE_PROVIDER, FILE_UPLOAD_TARGET_STRATEGY, FileRuntimeCapability, FileStorageProvider, FileStorageProviderRegistry, FileUploadTargetRegistry, FileUploadTargetStrategy, GLOBAL_ORGANIZATION_SCOPE, HANDOFF_PERMISSION_SERVICE_TOKEN, HANDOFF_PROCESSOR_STRATEGY, HANDOFF_QUEUE_SERVICE_TOKEN, HandoffProcessorRegistry, HandoffProcessorStrategy, IMAGE_UNDERSTANDING_STRATEGY, INTEGRATION_PERMISSION_SERVICE_TOKEN, INTEGRATION_STRATEGY, ImageGenerationModel, ImageUnderstandingRegistry, ImageUnderstandingStrategy, ImportDefaultAgentPluginsCommand, IntegrationStrategyKey, IntegrationStrategyRegistry, JUMP_TO_TARGETS, JsonSchemaValidator, KEYWORD_ANALYZER_STRATEGY, KNOWLEDGE_STRATEGY, KeywordAnalyzerRegistry, KeywordAnalyzerStrategy, KnowledgeDocumentVisualAssetsRuntimeCapability, KnowledgeDocumentVisualAssetsRuntimeFactoryCapability, KnowledgeGraphRuntimeCapability, KnowledgeStrategyKey, KnowledgeStrategyRegistry, KnowledgebaseDocumentsRuntimeCapability, KnowledgebaseProvisioningRuntimeCapability, KnowledgebaseRuntimeCapability, LLMUsage, LargeLanguageModel, ListAnalyticsSourcesCommand, MANAGED_CONNECTION_REGISTRY_TOKEN, MANAGED_QUEUE_HANDLER_REGISTRY_TOKEN, MANAGED_QUEUE_SERVICE_TOKEN, MCP_CAPABILITY_CHANGE_EVENT_TYPES, MODEL_OUTPUT_VALIDATION_ERROR_CODE, ModelExecutionEnvironmentCapability, ModelOutputValidationError, ModelProvider, ORGANIZATION_METADATA_KEY, OpenAICompatibleReranker, PERMISSION_OPERATION_METADATA_KEY, PLUGIN_CONFIG_RESOLVER_TOKEN, PLUGIN_JOB_PROCESSOR_METADATA, PLUGIN_METADATA, PLUGIN_METADATA_KEY, PLUGIN_VERSION_METADATA_KEY, PLUGIN_WEBHOOK_AUTH_METADATA_KEY, PLUGIN_WEBHOOK_AUTH_SERVICE_TOKEN, PROJECT_PIPELINE_CONTRIBUTION, PROJECT_PIPELINE_PROJECTION_PROVIDER, PROJECT_PIPELINE_RUNTIME_ADAPTER, PROJECT_TASK_PROVIDER, PROJECT_TYPE_PROVIDER, PROVIDE_AI_MODEL_LLM, PROVIDE_AI_MODEL_MODERATION, PROVIDE_AI_MODEL_RERANK, PROVIDE_AI_MODEL_SPEECH2TEXT, PROVIDE_AI_MODEL_TEXT_EMBEDDING, PROVIDE_AI_MODEL_TTS, PluginJobProcessor, PluginWebhookAuth, PluginWebhookAuthGuard, ProjectPipelineAnalyticsRuntimeCapability, ProjectPipelineCatalogRuntimeCapability, ProjectPipelineCommandsRuntimeCapability, ProjectPipelineConfigurationRuntimeCapability, ProjectPipelineContributionRegistry, ProjectPipelineContributor, ProjectPipelineEvidenceRuntimeCapability, ProjectPipelinePortfolioRuntimeCapability, ProjectPipelineProjectionProvider, ProjectPipelineProjectionProviderRegistry, ProjectPipelineProviderActionsRuntimeCapability, ProjectPipelineRuntimeAdapterProvider, ProjectPipelineRuntimeAdapterRegistry, ProjectPipelinesRuntimeCapability, ProjectTaskProvider, ProjectTaskProviderRegistry, ProjectTasksRuntimeCapability, ProjectTypeProvider, ProjectTypeProviderRegistry, RESOURCE_CARD_EVENT, RESOURCE_CARD_PROVIDER, RETRIEVER_STRATEGY, RequestContext, RequestContextMiddleware, RequirePermissionOperation, RerankModel, ResolveAnalyticsSourceCommand, ResolveConnectorIntegrationQuery, ResourceCardProvider, ResourceCardProviderRegistry, RetrieverRegistry, RetrieverStrategy, SANDBOX_PROVIDER, SANDBOX_RUNTIME_PROVIDER, SANDBOX_SHELL_TIMEOUT_LIMITS_SEC, SANDBOX_WORKSPACE_MAPPER, SKILL_SOURCE_PROVIDER, SPEECH_TO_TEXT_PERMISSION_SERVICE_TOKEN, SPEECH_TO_TEXT_SERVICE_TOKEN, SSOProviderRegistry, SSOProviderStrategyKey, SSO_BINDING_PERMISSION_SERVICE_TOKEN, SSO_PROVIDER, STRATEGY_META_KEY, SYSTEM_GLOBAL_SCOPE, SandboxProviderRegistry, SandboxProviderStrategy, SandboxRuntimeProviderRegistry, SandboxRuntimeProviderStrategy, SandboxWorkspaceMapperRegistry, SandboxWorkspaceMapperStrategy, ShellModelExecutionSourceCapability, SkillSourceProviderRegistry, SkillSourceProviderStrategy, Speech2TextChatModel, SpeechToTextModel, StrategyBus, TENANT_GLOBAL_SCOPE_PREFIX, TENANT_GLOBAL_SCOPE_SUFFIX, TEXT_SPLITTER_STRATEGY, TOOLSET_STRATEGY, TextEmbeddingModelManager, TextSplitterRegistry, TextSplitterStrategy, TextToSpeechModel, ToolsetRegistry, ToolsetStrategy, USER_PERMISSION_SERVICE_TOKEN, VECTOR_STORE_STRATEGY, VIDEO_GENERATION_PERMISSION_SERVICE_TOKEN, VIDEO_GENERATION_SERVICE_TOKEN, VIDEO_GENERATOR_FAMILIES, VIEW_EXTENSION_CACHE_SERVICE_TOKEN, VIEW_EXTENSION_PROVIDER, VectorStoreRegistry, VectorStoreStrategy, VideoGenerationModel, ViewExtensionProvider, ViewExtensionProviderRegistry, ViewMiddlewareRuntimeCapability, WORKFLOW_NODE_STRATEGY, WORKFLOW_TRIGGER_STRATEGY, WorkflowNodeRegistry, WorkflowNodeStrategy, WorkflowTriggerRegistry, WorkflowTriggerStrategy, WorkspaceFilesRuntimeCapability, WrapWorkflowNodeExecutionCommand, XPERT_AGENT_MIDDLEWARE_RUNTIME_TOKEN, XPERT_TOOL_METHOD_METADATA, XPERT_TOOL_PROVIDER, XPERT_TOOL_PROVIDER_METADATA, XPERT_TOOL_RESULT_FORMAT_VERSION, XpFileSystem, XpertPrompt, XpertResource, XpertResourceTemplate, XpertServerPlugin, XpertTool, XpertToolProvider, XpertToolProviderCoordinator, XpertToolProviderRegistry, agentInvocationDispatchContextSchema, agentRuntimeConsumptionStateSchema, agentRuntimeDeliveryStateSchema, agentRuntimeDeploymentSpecSchema, agentRuntimeEventMessageId, agentRuntimeEventSchema, agentRuntimeReplyTargetSchema, agentRuntimeResultClaimSchema, agentRuntimeResultConsumptionKey, als, appendSandboxMessage, applyAssistantMiddleware, applyModelConfiguration, applyModelContextSize, artifactPresentationKey, assertConnectorDefinition, buildSandboxTimeoutMessage, calcTokenUsage, calculateLLMUsagePrice, calculateModelPrice, calculateModelUsageCharge, chunkText, countTextTokens, countTokensSafe, createI18nInstance, createMutationEvidence, createPluginLogger, createRuntimeCapability, defineAgentMessageType, defineChannelMessageType, defineMcpApp, defineMcpCapabilities, defineMcpPrompt, defineMcpResource, defineMcpResourceTemplate, defineXpertTool, derivePluginArtifactNamespace, describeXpertToolProvider, discoverOpenAIModels, downloadRemoteFile, emitResourceCard, formatSandboxTimeout, getDefaultTenantId, getErrorMessage, getModelContextSize, getPermissionOperationMetadata, getPositionList, getPositionMap, getRequestContext, getRequiredPermissionOperation, getTenantGlobalScopeKey, getXpertToolMethod, hasAssistantMiddleware, isAgentInvocationTerminal, isDevelopmentSandboxRuntimeEnvironment, isFileContentEditor, isModelOutputValidationError, isModelUsagePricingConfig, isPluginArtifactNamespace, isRemoteFile, isResourceContentEditor, isSandboxBackend, isSandboxManagedServiceAdapter, isSandboxServiceProxyAdapter, isSandboxTerminalAdapter, isStrategyInstance, isStructuredMessageType, isTenantGlobalScopeKey, isTextContentEditor, jsonEncodedSchema, knowledgebaseActions, loadYamlFile, managedAgentRuntimeSchema, mergeCredentials, mergeModelRequirements, mergeParentChildChunks, nativeModelTransport, normalizeContextSize, normalizeTokenUsage, pluginArtifactTableName, prepareToolResult, processAsyncAIGCManagedJob, projectPipelineInvocationScopeSchema, renderRemoteModuleIframeHtml, renderRemoteReactIframeHtml, renderRemoteVueIframeHtml, resolveModelUsagePricingSnapshot, resolveSandboxBackend, resolveSandboxExecutionOptions, resolveSandboxManagedServiceAdapter, resolveSandboxServiceProxyAdapter, resolveSandboxTerminalAdapter, resolveStrategyMetadataTarget, resolveTenantGlobalScopeKey, resolveTokenUsage, resolveTokenUsageCandidates, resolveXpertMcpExtensions, runWithRequestContext, runtimeToolProviderComponent, secondsToMilliseconds, setDefaultTenantId, sumTokenUsage, supportsContentModel, taskWaitReason, textTokenBoundaries, validateAnalyticsPayload };
11251
+ export { ACCOUNT_BINDING_PERMISSION_SERVICE_TOKEN, AGENT_CHAT_DISPATCH_ERROR_STEER_TARGET_NOT_RUNNING, AGENT_CHAT_DISPATCH_MESSAGE_TYPE, AGENT_MIDDLEWARE_STRATEGY, AGENT_PROCESS_SUPERVISOR, AGENT_RUNTIME_EVENT_MESSAGE_TYPE, AGENT_RUNTIME_STRATEGY, AIModel, AIModelProviderNotFoundException, AIModelProviderRegistry, AIModelProviderStrategy, AI_MODEL_PROVIDER, ANALYTICS_PROVIDER, ARTIFACT_PRESENTATION_PROVIDER, ARTIFACT_TYPE_PROVIDER, ASSISTANT_CAPABILITY_PROVIDER, AdapterDataSourceStrategy, AgentExecutionRunnerCapability, AgentExecutionRunnerFactoryCapability, AgentInvocationRuntimeCapability, AgentMiddlewareRegistry, AgentMiddlewareStrategy, AgentRuntimeDeploymentCapability, AgentRuntimeFactoryCapability, AgentRuntimeRegistry, AgentRuntimeStrategy, AiModelNotFoundException, AnalyticsDefinitionAuthoringCapability, AnalyticsProvider, AnalyticsProviderRegistry, AnalyticsRuntimeCapability, ArtifactPresentationProvider, ArtifactPresentationRegistry, ArtifactTypeProvider, ArtifactTypeRegistry, AssistantCapabilityProvider, AssistantCapabilityProviderRegistry, AssistantTaskRuntimeCapability, BOUND_IDENTITY_LOGIN_PERMISSION_SERVICE_TOKEN, BUILTIN_GLOBAL_SCOPE, BaseHTTPQueryRunner, BaseQueryRunner, BaseSQLQueryRunner, BaseSandbox, BaseStrategyRegistry, BuiltinToolset, CHAT_CHANNEL, CHAT_CHANNEL_TEXT_LIMITS, CLI_MODEL_TOKEN_REFERENCE, COLLABORATION_DOCUMENT_PROVIDER, CONNECTION_COMMAND_ROUTER_TOKEN, CONNECTOR_STRATEGY, CONTENT_RESOURCE_PROVIDER, CancelConversationCommand, ChatChannel, ChatChannelRegistry, ChatOAICompatReasoningModel, CliModelProfilesCapability, CollaborationDocumentProvider, CollaborationDocumentProviderRegistry, CollaborationRuntimeCapability, CommonParameterRules, ConnectorDocumentsRuntimeCapability, ConnectorRuntimeCapability, ConnectorRuntimeFactoryCapability, ConnectorStrategyKey, ConnectorStrategyRegistry, ContentDocumentsRuntimeCapability, ContentEditorProvider, ContentEditorRegistry, ContentEditorsRuntimeCapability, ContentReferencesRuntimeCapability, ContentResourceProvider, ContentResourceProviderRegistry, ContentResourcesRuntimeCapability, CreateModelClientCommand, CredentialsValidateFailedError, DATASOURCE_STRATEGY, DBCreateTableMode, DBProtocolEnum, DBSyntaxEnum, DBTableAction, DBTableDataAction, DEFAULT_EXECUTION_CONFIG, DEFAULT_SANDBOX_EXECUTION_MAX_OUTPUT_BYTES, DEFAULT_SANDBOX_FILE_OPERATION_EXECUTION_OPTIONS, DEFAULT_SANDBOX_FILE_OPERATION_TIMEOUT_MS, DEFAULT_SANDBOX_FILE_OPERATION_TIMEOUT_SEC, DEFAULT_SANDBOX_FILE_SEARCH_EXECUTION_OPTIONS, DEFAULT_SANDBOX_FILE_SEARCH_TIMEOUT_MS, DEFAULT_SANDBOX_FILE_SEARCH_TIMEOUT_SEC, DEFAULT_SANDBOX_SHELL_EXECUTION_OPTIONS, DEFAULT_SANDBOX_SHELL_TIMEOUT_MS, DEFAULT_SANDBOX_SHELL_TIMEOUT_SEC, DOCUMENT_SOURCE_STRATEGY, DOCUMENT_TRANSFORMER_STRATEGY, DataSourceStrategy, DataSourceStrategyRegistry, DecoratedAgentMiddlewareStrategy, DecoratedToolsetStrategy, DocumentSourceRegistry, DocumentSourceStrategy, DocumentTransformerRegistry, DocumentTransformerStrategy, EVOLUTION_RUNTIME_SERVICE_TOKEN, EVOLUTION_TARGET_PROVIDER, EvolutionBaselineRuntimeCapability, EvolutionChangeRuntimeCapability, EvolutionRuntimeCapability, EvolutionTargetProviderRegistry, EvolutionTargetProviderStrategy, ExecutionObservabilityRuntimeCapability, FILE_ARTIFACT_TYPE, FILE_STORAGE_PROVIDER, FILE_UPLOAD_TARGET_STRATEGY, FileRuntimeCapability, FileStorageProvider, FileStorageProviderRegistry, FileUploadTargetRegistry, FileUploadTargetStrategy, GLOBAL_ORGANIZATION_SCOPE, HANDOFF_PERMISSION_SERVICE_TOKEN, HANDOFF_PROCESSOR_STRATEGY, HANDOFF_QUEUE_SERVICE_TOKEN, HandoffProcessorRegistry, HandoffProcessorStrategy, IMAGE_UNDERSTANDING_STRATEGY, INTEGRATION_PERMISSION_SERVICE_TOKEN, INTEGRATION_STRATEGY, ImageGenerationModel, ImageUnderstandingRegistry, ImageUnderstandingStrategy, ImportDefaultAgentPluginsCommand, IntegrationStrategyKey, IntegrationStrategyRegistry, JUMP_TO_TARGETS, JsonSchemaValidator, KEYWORD_ANALYZER_STRATEGY, KNOWLEDGE_STRATEGY, KeywordAnalyzerRegistry, KeywordAnalyzerStrategy, KnowledgeDocumentVisualAssetsRuntimeCapability, KnowledgeDocumentVisualAssetsRuntimeFactoryCapability, KnowledgeGraphRuntimeCapability, KnowledgeStrategyKey, KnowledgeStrategyRegistry, KnowledgebaseDocumentsRuntimeCapability, KnowledgebaseProvisioningRuntimeCapability, KnowledgebaseRuntimeCapability, LLMUsage, LargeLanguageModel, ListAnalyticsSourcesCommand, MANAGED_CONNECTION_REGISTRY_TOKEN, MANAGED_QUEUE_HANDLER_REGISTRY_TOKEN, MANAGED_QUEUE_SERVICE_TOKEN, MCP_CAPABILITY_CHANGE_EVENT_TYPES, MODEL_OUTPUT_VALIDATION_ERROR_CODE, ModelExecutionEnvironmentCapability, ModelOutputValidationError, ModelProvider, ORGANIZATION_METADATA_KEY, OpenAICompatibleReranker, PERMISSION_OPERATION_METADATA_KEY, PLUGIN_CONFIG_RESOLVER_TOKEN, PLUGIN_JOB_PROCESSOR_METADATA, PLUGIN_METADATA, PLUGIN_METADATA_KEY, PLUGIN_VERSION_METADATA_KEY, PLUGIN_WEBHOOK_AUTH_METADATA_KEY, PLUGIN_WEBHOOK_AUTH_SERVICE_TOKEN, PROJECT_PIPELINE_CONTRIBUTION, PROJECT_PIPELINE_PROJECTION_PROVIDER, PROJECT_PIPELINE_RUNTIME_ADAPTER, PROJECT_TASK_PROVIDER, PROJECT_TYPE_PROVIDER, PROVIDE_AI_MODEL_LLM, PROVIDE_AI_MODEL_MODERATION, PROVIDE_AI_MODEL_RERANK, PROVIDE_AI_MODEL_SPEECH2TEXT, PROVIDE_AI_MODEL_TEXT_EMBEDDING, PROVIDE_AI_MODEL_TTS, PluginJobProcessor, PluginWebhookAuth, PluginWebhookAuthGuard, ProjectPipelineAnalyticsRuntimeCapability, ProjectPipelineCatalogRuntimeCapability, ProjectPipelineCommandsRuntimeCapability, ProjectPipelineConfigurationRuntimeCapability, ProjectPipelineContributionRegistry, ProjectPipelineContributor, ProjectPipelineEvidenceRuntimeCapability, ProjectPipelinePortfolioRuntimeCapability, ProjectPipelineProjectionProvider, ProjectPipelineProjectionProviderRegistry, ProjectPipelineProviderActionsRuntimeCapability, ProjectPipelineRuntimeAdapterProvider, ProjectPipelineRuntimeAdapterRegistry, ProjectPipelinesRuntimeCapability, ProjectTaskProvider, ProjectTaskProviderRegistry, ProjectTasksRuntimeCapability, ProjectTypeProvider, ProjectTypeProviderRegistry, RESOURCE_CARD_EVENT, RESOURCE_CARD_PROVIDER, RETRIEVER_STRATEGY, RequestContext, RequestContextMiddleware, RequirePermissionOperation, RerankModel, ResolveAnalyticsSourceCommand, ResolveConnectorIntegrationQuery, ResourceCardProvider, ResourceCardProviderRegistry, RetrieverRegistry, RetrieverStrategy, SANDBOX_PROVIDER, SANDBOX_RUNTIME_PROVIDER, SANDBOX_SHELL_TIMEOUT_LIMITS_SEC, SANDBOX_WORKSPACE_MAPPER, SKILL_SOURCE_PROVIDER, SPEECH_TO_TEXT_PERMISSION_SERVICE_TOKEN, SPEECH_TO_TEXT_SERVICE_TOKEN, SSOProviderRegistry, SSOProviderStrategyKey, SSO_BINDING_PERMISSION_SERVICE_TOKEN, SSO_PROVIDER, STRATEGY_META_KEY, SYSTEM_GLOBAL_SCOPE, SandboxProviderRegistry, SandboxProviderStrategy, SandboxRuntimeProviderRegistry, SandboxRuntimeProviderStrategy, SandboxWorkspaceMapperRegistry, SandboxWorkspaceMapperStrategy, ShellModelExecutionSourceCapability, SkillSourceProviderRegistry, SkillSourceProviderStrategy, Speech2TextChatModel, SpeechToTextModel, StrategyBus, TENANT_GLOBAL_SCOPE_PREFIX, TENANT_GLOBAL_SCOPE_SUFFIX, TEXT_SPLITTER_STRATEGY, TOOLSET_STRATEGY, TextEmbeddingModelManager, TextSplitterRegistry, TextSplitterStrategy, TextToSpeechModel, ToolsetRegistry, ToolsetStrategy, USER_PERMISSION_SERVICE_TOKEN, VECTOR_STORE_STRATEGY, VIDEO_GENERATION_PERMISSION_SERVICE_TOKEN, VIDEO_GENERATION_SERVICE_TOKEN, VIDEO_GENERATOR_FAMILIES, VIEW_EXTENSION_CACHE_SERVICE_TOKEN, VIEW_EXTENSION_PROVIDER, VectorStoreRegistry, VectorStoreStrategy, VideoGenerationModel, ViewExtensionProvider, ViewExtensionProviderRegistry, ViewMiddlewareRuntimeCapability, WORKFLOW_NODE_STRATEGY, WORKFLOW_TRIGGER_STRATEGY, WorkflowNodeRegistry, WorkflowNodeStrategy, WorkflowTriggerRegistry, WorkflowTriggerStrategy, WorkspaceFilesRuntimeCapability, WrapWorkflowNodeExecutionCommand, XPERT_AGENT_MIDDLEWARE_RUNTIME_TOKEN, XPERT_TOOL_METHOD_METADATA, XPERT_TOOL_PROVIDER, XPERT_TOOL_PROVIDER_METADATA, XPERT_TOOL_RESULT_FORMAT_VERSION, XpFileSystem, XpertPrompt, XpertResource, XpertResourceTemplate, XpertServerPlugin, XpertTool, XpertToolProvider, XpertToolProviderCoordinator, XpertToolProviderRegistry, agentInvocationDispatchContextSchema, agentRuntimeConsumptionStateSchema, agentRuntimeDeliveryStateSchema, agentRuntimeDeploymentSpecSchema, agentRuntimeEventMessageId, agentRuntimeEventSchema, agentRuntimeReplyTargetSchema, agentRuntimeResultClaimSchema, agentRuntimeResultConsumptionKey, als, appendSandboxMessage, applyAssistantMiddleware, applyModelConfiguration, applyModelContextSize, artifactPresentationKey, artifactTypeKey, assertConnectorDefinition, buildSandboxTimeoutMessage, calcTokenUsage, calculateLLMUsagePrice, calculateModelPrice, calculateModelUsageCharge, chunkText, countTextTokens, countTokensSafe, createI18nInstance, createMutationEvidence, createPluginLogger, createRuntimeCapability, defineAgentMessageType, defineChannelMessageType, defineMcpApp, defineMcpCapabilities, defineMcpPrompt, defineMcpResource, defineMcpResourceTemplate, defineXpertTool, derivePluginArtifactNamespace, describeXpertToolProvider, discoverOpenAIModels, downloadRemoteFile, emitResourceCard, formatSandboxTimeout, getDefaultTenantId, getErrorMessage, getModelContextSize, getPermissionOperationMetadata, getPositionList, getPositionMap, getRequestContext, getRequiredPermissionOperation, getTenantGlobalScopeKey, getXpertToolMethod, hasAssistantMiddleware, isAgentInvocationTerminal, isDevelopmentSandboxRuntimeEnvironment, isExecutionObservationSession, isFileContentEditor, isModelOutputValidationError, isModelUsagePricingConfig, isPluginArtifactNamespace, isRemoteFile, isResourceContentEditor, isSandboxBackend, isSandboxManagedServiceAdapter, isSandboxServiceProxyAdapter, isSandboxTerminalAdapter, isStrategyInstance, isStructuredMessageType, isTenantGlobalScopeKey, isTextContentEditor, jsonEncodedSchema, knowledgebaseActions, loadYamlFile, managedAgentRuntimeSchema, mergeCredentials, mergeModelRequirements, mergeParentChildChunks, nativeModelTransport, normalizeContextSize, normalizeTokenUsage, pluginArtifactTableName, prepareToolResult, processAsyncAIGCManagedJob, projectPipelineInvocationScopeSchema, renderRemoteModuleIframeHtml, renderRemoteReactIframeHtml, renderRemoteVueIframeHtml, resolveModelUsagePricingSnapshot, resolveSandboxBackend, resolveSandboxExecutionOptions, resolveSandboxManagedServiceAdapter, resolveSandboxServiceProxyAdapter, resolveSandboxTerminalAdapter, resolveStrategyMetadataTarget, resolveTenantGlobalScopeKey, resolveTokenUsage, resolveTokenUsageCandidates, resolveXpertMcpExtensions, runWithRequestContext, runtimeToolProviderComponent, secondsToMilliseconds, setDefaultTenantId, sumTokenUsage, supportsContentModel, taskWaitReason, textTokenBoundaries, validateAnalyticsPayload };