@xpert-ai/plugin-sdk 3.36.0 → 3.37.0

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/index.cjs.js CHANGED
@@ -6904,6 +6904,13 @@ const ViewMiddlewareRuntimeCapability = modelProvider.createRuntimeCapability('p
6904
6904
  description: 'Resolve a View capability through its authorized Assistant middleware and scoped runtime.'
6905
6905
  });
6906
6906
 
6907
+ /**
6908
+ * Lets a plugin's server-side View provider submit a human decision during an authorized
6909
+ * assistant or project workbench action. The host takes the actor and plugin identity from
6910
+ * the current action and routes the submission to their active source binding.
6911
+ * The event source checks who can decide the business matter and records the choice.
6912
+ */ const WorkbenchDecisionCapability = modelProvider.createRuntimeCapability('platform.view.workbench-decision');
6913
+
6907
6914
  const ARTIFACT_PRESENTATION_PROVIDER = 'ARTIFACT_PRESENTATION_PROVIDER';
6908
6915
  const artifactPresentationKey = (source)=>`${source.pluginName}:${source.resourceType}`;
6909
6916
  /** Registers a read-only renderer for an explicit Artifact source, independently of Workbench actions. */ const ArtifactPresentationProvider = (source)=>common.applyDecorators(common.SetMetadata(ARTIFACT_PRESENTATION_PROVIDER, artifactPresentationKey(source)), common.SetMetadata(STRATEGY_META_KEY, ARTIFACT_PRESENTATION_PROVIDER));
@@ -11633,6 +11640,14 @@ Object.defineProperty(exports, "createResourceCardContent", {
11633
11640
  enumerable: true,
11634
11641
  get: function () { return contracts.createResourceCardContent; }
11635
11642
  });
11643
+ Object.defineProperty(exports, "humanDecisionInputSchema", {
11644
+ enumerable: true,
11645
+ get: function () { return contracts.humanDecisionInputSchema; }
11646
+ });
11647
+ Object.defineProperty(exports, "humanDecisionSchema", {
11648
+ enumerable: true,
11649
+ get: function () { return contracts.humanDecisionSchema; }
11650
+ });
11636
11651
  Object.defineProperty(exports, "parseResourceCard", {
11637
11652
  enumerable: true,
11638
11653
  get: function () { return contracts.parseResourceCard; }
@@ -11946,6 +11961,7 @@ exports.ViewExtensionProvider = ViewExtensionProvider;
11946
11961
  exports.ViewMiddlewareRuntimeCapability = ViewMiddlewareRuntimeCapability;
11947
11962
  exports.WORKFLOW_NODE_STRATEGY = WORKFLOW_NODE_STRATEGY;
11948
11963
  exports.WORKFLOW_TRIGGER_STRATEGY = WORKFLOW_TRIGGER_STRATEGY;
11964
+ exports.WorkbenchDecisionCapability = WorkbenchDecisionCapability;
11949
11965
  exports.WorkflowNodeStrategy = WorkflowNodeStrategy;
11950
11966
  exports.WorkflowTriggerStrategy = WorkflowTriggerStrategy;
11951
11967
  exports.WrapWorkflowNodeExecutionCommand = WrapWorkflowNodeExecutionCommand;
package/index.esm.js CHANGED
@@ -3,7 +3,7 @@ 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
5
  import { ChatMessageEventTypeEnum, createResourceCardContent, LanguagesEnum, parseAnalyticsDiagnostic, ParameterType, AiModelTypeEnum, PriceType, FetchFrom, ModelPropertyKey, readModelConfiguration, ModelFeature, isDiscoverableModelType, configurationFromModel, SecretTokenBindingType, projectTaskExecutionContextSchema, projectTaskExecutionReferenceSchema, agentRuntimeProgressSchema, agentInvocationTerminalStatusSchema, projectPipelineWorkContextSchema, WorkflowNodeTypeEnum, iconDefinitionSchema, 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, pluginAgentEventSchema, agentEventDecisionSchema } from '@xpert-ai/contracts';
6
- export { ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, agentDeliveryRecoverySchema, agentEventDecisionSchema, agentEventRefSchema, agentOutputDeliverySchema, agentResultPathSchema, configurationFromModel, createResourceCardContent, parseResourceCard, pluginAgentEventSchema, projectPipelineContributionSchema, resourceCardId } from '@xpert-ai/contracts';
6
+ export { ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, agentDeliveryRecoverySchema, agentEventDecisionSchema, agentEventRefSchema, agentOutputDeliverySchema, agentResultPathSchema, configurationFromModel, createResourceCardContent, humanDecisionInputSchema, humanDecisionSchema, parseResourceCard, pluginAgentEventSchema, projectPipelineContributionSchema, resourceCardId } from '@xpert-ai/contracts';
7
7
  import { DiscoveryService, Reflector } from '@nestjs/core';
8
8
  import { Subject, filter } from 'rxjs';
9
9
  import { _ as _extends } from './_extends.esm.js';
@@ -6886,6 +6886,13 @@ const ViewMiddlewareRuntimeCapability = createRuntimeCapability('platform.view.m
6886
6886
  description: 'Resolve a View capability through its authorized Assistant middleware and scoped runtime.'
6887
6887
  });
6888
6888
 
6889
+ /**
6890
+ * Lets a plugin's server-side View provider submit a human decision during an authorized
6891
+ * assistant or project workbench action. The host takes the actor and plugin identity from
6892
+ * the current action and routes the submission to their active source binding.
6893
+ * The event source checks who can decide the business matter and records the choice.
6894
+ */ const WorkbenchDecisionCapability = createRuntimeCapability('platform.view.workbench-decision');
6895
+
6889
6896
  const ARTIFACT_PRESENTATION_PROVIDER = 'ARTIFACT_PRESENTATION_PROVIDER';
6890
6897
  const artifactPresentationKey = (source)=>`${source.pluginName}:${source.resourceType}`;
6891
6898
  /** Registers a read-only renderer for an explicit Artifact source, independently of Workbench actions. */ const ArtifactPresentationProvider = (source)=>applyDecorators(SetMetadata(ARTIFACT_PRESENTATION_PROVIDER, artifactPresentationKey(source)), SetMetadata(STRATEGY_META_KEY, ARTIFACT_PRESENTATION_PROVIDER));
@@ -11579,4 +11586,4 @@ function agentEventDigest(value) {
11579
11586
  const AGENT_EVENT_SOURCE = 'XPERT_AGENT_EVENT_SOURCE_V1';
11580
11587
  const AgentEventSourceStrategy = (key)=>applyDecorators(SetMetadata(AGENT_EVENT_SOURCE, key), SetMetadata(STRATEGY_META_KEY, AGENT_EVENT_SOURCE));
11581
11588
 
11582
- export { ACCOUNT_BINDING_PERMISSION_SERVICE_TOKEN, AGENT_CHAT_DISPATCH_ERROR_STEER_TARGET_NOT_RUNNING, AGENT_CHAT_DISPATCH_MESSAGE_TYPE, AGENT_EVENT_SOURCE, 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, AgentEventSourceStrategy, AgentExecutionRunnerCapability, AgentExecutionRunnerFactoryCapability, AgentInvocationRuntimeCapability, AgentMiddlewareRegistry, AgentMiddlewareStrategy, AgentRuntimeDeploymentCapability, AgentRuntimeFactoryCapability, AgentRuntimeRegistry, AgentRuntimeStrategy, AiModelNotFoundException, AnalyticsDefinitionAuthoringCapability, AnalyticsProvider, AnalyticsProviderError, 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, ExecutionReviewRuntimeCapability, 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, OpenAICompatibleEmbeddings, 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, PluginEventJournal, 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, agentEventDigest, agentInvocationDispatchContextSchema, agentRuntimeConsumptionStateSchema, agentRuntimeDeliveryStateSchema, agentRuntimeDeploymentSpecSchema, agentRuntimeEventMessageId, agentRuntimeEventSchema, agentRuntimeReplyTargetSchema, agentRuntimeResultClaimSchema, agentRuntimeResultConsumptionKey, als, appendSandboxMessage, applyAssistantMiddleware, applyModelConfiguration, applyModelContextSize, artifactPresentationKey, artifactTypeKey, assertConnectorDefinition, assertXpertToolProviderClaims, buildSandboxTimeoutMessage, calcTokenUsage, calculateLLMUsagePrice, calculateModelPrice, calculateModelUsageCharge, canonicalEvolutionJson, 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, hashEvolutionValue, 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, readAnalyticsProviderDiagnostic, renderRemoteModuleIframeHtml, renderRemoteReactIframeHtml, renderRemoteVueIframeHtml, resolveModelUsagePricingSnapshot, resolveSandboxBackend, resolveSandboxExecutionOptions, resolveSandboxManagedServiceAdapter, resolveSandboxServiceProxyAdapter, resolveSandboxTerminalAdapter, resolveStrategyMetadataTarget, resolveTenantGlobalScopeKey, resolveTokenUsage, resolveTokenUsageCandidates, resolveXpertMcpExtensions, runWithRequestContext, runtimeToolProviderComponent, secondsToMilliseconds, setDefaultTenantId, sumTokenUsage, supportsContentModel, taskWaitReason, textTokenBoundaries, validateAnalyticsPayload };
11589
+ export { ACCOUNT_BINDING_PERMISSION_SERVICE_TOKEN, AGENT_CHAT_DISPATCH_ERROR_STEER_TARGET_NOT_RUNNING, AGENT_CHAT_DISPATCH_MESSAGE_TYPE, AGENT_EVENT_SOURCE, 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, AgentEventSourceStrategy, AgentExecutionRunnerCapability, AgentExecutionRunnerFactoryCapability, AgentInvocationRuntimeCapability, AgentMiddlewareRegistry, AgentMiddlewareStrategy, AgentRuntimeDeploymentCapability, AgentRuntimeFactoryCapability, AgentRuntimeRegistry, AgentRuntimeStrategy, AiModelNotFoundException, AnalyticsDefinitionAuthoringCapability, AnalyticsProvider, AnalyticsProviderError, 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, ExecutionReviewRuntimeCapability, 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, OpenAICompatibleEmbeddings, 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, PluginEventJournal, 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, WorkbenchDecisionCapability, 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, agentEventDigest, agentInvocationDispatchContextSchema, agentRuntimeConsumptionStateSchema, agentRuntimeDeliveryStateSchema, agentRuntimeDeploymentSpecSchema, agentRuntimeEventMessageId, agentRuntimeEventSchema, agentRuntimeReplyTargetSchema, agentRuntimeResultClaimSchema, agentRuntimeResultConsumptionKey, als, appendSandboxMessage, applyAssistantMiddleware, applyModelConfiguration, applyModelContextSize, artifactPresentationKey, artifactTypeKey, assertConnectorDefinition, assertXpertToolProviderClaims, buildSandboxTimeoutMessage, calcTokenUsage, calculateLLMUsagePrice, calculateModelPrice, calculateModelUsageCharge, canonicalEvolutionJson, 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, hashEvolutionValue, 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, readAnalyticsProviderDiagnostic, renderRemoteModuleIframeHtml, renderRemoteReactIframeHtml, renderRemoteVueIframeHtml, resolveModelUsagePricingSnapshot, resolveSandboxBackend, resolveSandboxExecutionOptions, resolveSandboxManagedServiceAdapter, resolveSandboxServiceProxyAdapter, resolveSandboxTerminalAdapter, resolveStrategyMetadataTarget, resolveTenantGlobalScopeKey, resolveTokenUsage, resolveTokenUsageCandidates, resolveXpertMcpExtensions, runWithRequestContext, runtimeToolProviderComponent, secondsToMilliseconds, setDefaultTenantId, sumTokenUsage, supportsContentModel, taskWaitReason, textTokenBoundaries, validateAnalyticsPayload };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/plugin-sdk",
3
- "version": "3.36.0",
3
+ "version": "3.37.0",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -80,7 +80,7 @@
80
80
  },
81
81
  "dependencies": {
82
82
  "@langchain/openai": "0.6.9",
83
- "@xpert-ai/contracts": "3.36.0",
83
+ "@xpert-ai/contracts": "3.37.0",
84
84
  "express": "^4.22.1",
85
85
  "js-tiktoken": "^1.0.21"
86
86
  },
@@ -29,23 +29,23 @@ export declare const agentRuntimeEventSchema: z.ZodDiscriminatedUnion<"kind", [z
29
29
  }, "strict", z.ZodTypeAny, {
30
30
  source: "executor" | "host";
31
31
  observedAt: string;
32
+ phase?: string | undefined;
32
33
  startedAt?: string | undefined;
33
34
  steps?: {
34
35
  completed: number;
35
36
  total: number;
36
37
  } | undefined;
37
38
  summary?: string | undefined;
38
- phase?: string | undefined;
39
39
  }, {
40
40
  source: "executor" | "host";
41
41
  observedAt: string;
42
+ phase?: string | undefined;
42
43
  startedAt?: string | undefined;
43
44
  steps?: {
44
45
  completed: number;
45
46
  total: number;
46
47
  } | undefined;
47
48
  summary?: string | undefined;
48
- phase?: string | undefined;
49
49
  }>;
50
50
  version: z.ZodLiteral<1>;
51
51
  invocationId: z.ZodString;
@@ -70,13 +70,13 @@ export declare const agentRuntimeEventSchema: z.ZodDiscriminatedUnion<"kind", [z
70
70
  progress?: {
71
71
  source: "executor" | "host";
72
72
  observedAt: string;
73
+ phase?: string | undefined;
73
74
  startedAt?: string | undefined;
74
75
  steps?: {
75
76
  completed: number;
76
77
  total: number;
77
78
  } | undefined;
78
79
  summary?: string | undefined;
79
- phase?: string | undefined;
80
80
  };
81
81
  revision?: number;
82
82
  projectTask?: {
@@ -91,13 +91,13 @@ export declare const agentRuntimeEventSchema: z.ZodDiscriminatedUnion<"kind", [z
91
91
  progress?: {
92
92
  source: "executor" | "host";
93
93
  observedAt: string;
94
+ phase?: string | undefined;
94
95
  startedAt?: string | undefined;
95
96
  steps?: {
96
97
  completed: number;
97
98
  total: number;
98
99
  } | undefined;
99
100
  summary?: string | undefined;
100
- phase?: string | undefined;
101
101
  };
102
102
  revision?: number;
103
103
  projectTask?: {
@@ -16,6 +16,8 @@ export interface IAgentMiddlewareContext {
16
16
  /** Persisted input message for this turn, when available. */
17
17
  inputMessageId?: string;
18
18
  executionId?: string;
19
+ /** Originating Event Inbox receipt of this authorized wake, including same-scope child agents. */
20
+ readonly eventReceiptId?: string;
19
21
  /** Omitted for legacy Assistant hosts. Project general agents must explicitly use project_agent. */
20
22
  callerType?: AgentInvocationScope['callerType'];
21
23
  threadId?: string;
@@ -382,6 +382,7 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
382
382
  candidatePaths?: string[] | undefined;
383
383
  }>;
384
384
  }, "strict", z.ZodTypeAny, {
385
+ projectId: string;
385
386
  purpose: {
386
387
  type: "implementation";
387
388
  reviewer?: {
@@ -418,7 +419,6 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
418
419
  implementationTaskId?: string | undefined;
419
420
  candidatePaths?: string[] | undefined;
420
421
  };
421
- projectId: string;
422
422
  specification: {
423
423
  digest: string;
424
424
  specification: {
@@ -435,6 +435,7 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
435
435
  projectTaskId: string;
436
436
  taskExecutionId: string;
437
437
  }, {
438
+ projectId: string;
438
439
  purpose: {
439
440
  type: "implementation";
440
441
  reviewer?: {
@@ -471,7 +472,6 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
471
472
  implementationTaskId?: string | undefined;
472
473
  candidatePaths?: string[] | undefined;
473
474
  };
474
- projectId: string;
475
475
  specification: {
476
476
  digest: string;
477
477
  specification: {
@@ -488,6 +488,7 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
488
488
  projectTaskId: string;
489
489
  taskExecutionId: string;
490
490
  }>, {
491
+ projectId: string;
491
492
  purpose: {
492
493
  type: "implementation";
493
494
  reviewer?: {
@@ -524,7 +525,6 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
524
525
  implementationTaskId?: string | undefined;
525
526
  candidatePaths?: string[] | undefined;
526
527
  };
527
- projectId: string;
528
528
  specification: {
529
529
  digest: string;
530
530
  specification: {
@@ -541,6 +541,7 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
541
541
  projectTaskId: string;
542
542
  taskExecutionId: string;
543
543
  }, {
544
+ projectId: string;
544
545
  purpose: {
545
546
  type: "implementation";
546
547
  reviewer?: {
@@ -577,7 +578,6 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
577
578
  implementationTaskId?: string | undefined;
578
579
  candidatePaths?: string[] | undefined;
579
580
  };
580
- projectId: string;
581
581
  specification: {
582
582
  digest: string;
583
583
  specification: {
@@ -612,6 +612,7 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
612
612
  agentKey?: "general_agent";
613
613
  };
614
614
  projectTask?: {
615
+ projectId: string;
615
616
  purpose: {
616
617
  type: "implementation";
617
618
  reviewer?: {
@@ -648,7 +649,6 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
648
649
  implementationTaskId?: string | undefined;
649
650
  candidatePaths?: string[] | undefined;
650
651
  };
651
- projectId: string;
652
652
  specification: {
653
653
  digest: string;
654
654
  specification: {
@@ -683,6 +683,7 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
683
683
  agentKey?: "general_agent";
684
684
  };
685
685
  projectTask?: {
686
+ projectId: string;
686
687
  purpose: {
687
688
  type: "implementation";
688
689
  reviewer?: {
@@ -719,7 +720,6 @@ export declare const agentInvocationDispatchContextSchema: z.ZodObject<{
719
720
  implementationTaskId?: string | undefined;
720
721
  candidatePaths?: string[] | undefined;
721
722
  };
722
- projectId: string;
723
723
  specification: {
724
724
  digest: string;
725
725
  specification: {
@@ -1,4 +1,4 @@
1
- import type { AgentEventPresentation, AgentEventTypeDefinition, EventDecision, PluginAgentEvent } from '@xpert-ai/contracts';
1
+ import type { HumanDecisionInput, HumanDecisionResult, PrivateDecisionReply, AgentOutputPresentation, AgentOutputReference, AgentEventPresentation, AgentEventTypeDefinition, EventDecision, PluginAgentEvent } from '@xpert-ai/contracts';
2
2
  export declare const AGENT_EVENT_SOURCE = "XPERT_AGENT_EVENT_SOURCE_V1";
3
3
  export declare const AgentEventSourceStrategy: (key: string) => <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
4
4
  export { agentEventRefSchema, pluginAgentEventSchema, agentEventDecisionSchema, type AgentEventPresentation, type AgentEventTypeDefinition, type AgentEventTypeDisplay, type AgentEventRef, type PluginAgentEvent, type EventDecision } from '@xpert-ai/contracts';
@@ -29,7 +29,40 @@ export interface AgentEventDelivery {
29
29
  fence: string;
30
30
  event: PluginAgentEvent;
31
31
  }
32
+ export interface AgentEventFollowUp {
33
+ submitPrivateDecision?(reply: PrivateDecisionReply): Promise<HumanDecisionResult | {
34
+ status: 'unrelated';
35
+ }>;
36
+ wake(input: {
37
+ conversationId: string;
38
+ prompt: string;
39
+ threadId?: string;
40
+ agentKey?: string;
41
+ }): Promise<void>;
42
+ }
43
+ /** A bound source hands off committed domain outputs and resolves them for the original recipient. */
44
+ export interface AgentOutputSource {
45
+ submitDecision?(context: AgentEventContext, input: HumanDecisionInput, origin: 'workbench' | 'lark'): Promise<HumanDecisionResult>;
46
+ readonly kinds: readonly {
47
+ key: string;
48
+ label: {
49
+ en_US: string;
50
+ zh_Hans: string;
51
+ };
52
+ }[];
53
+ /** Return due, unacknowledged references belonging to this binding and recipient, up to the requested limit. */
54
+ listPending(context: AgentEventContext, limit: number): Promise<AgentOutputReference[]>;
55
+ /** Confirm the host's committed message ID idempotently. A different ID for the same result is a conflict. */
56
+ acknowledge(context: AgentEventContext, ref: AgentOutputReference, messageId: string): Promise<void | 'conflict'>;
57
+ /** Keep the reference pending. A timestamp postpones this item; null isolates an immutable conflict. */
58
+ defer(context: AgentEventContext, ref: AgentOutputReference, retryAt: string | null): Promise<void>;
59
+ /** Recheck current domain access and relevance before returning any recipient-visible content. */
60
+ resolveForRecipient(context: AgentEventContext, ref: AgentOutputReference): Promise<AgentOutputPresentation>;
61
+ }
62
+ export { humanDecisionInputSchema, humanDecisionSchema, type HumanDecisionInput, type HumanDecisionResult, type HumanDecision, type PrivateDecisionCard, type PrivateDecisionReply } from '@xpert-ai/contracts';
63
+ export type { AgentOutputReference, AgentOutputPresentation } from '@xpert-ai/contracts';
32
64
  export interface PluginAgentEventSource {
65
+ readonly outputs?: AgentOutputSource;
33
66
  readonly key: string;
34
67
  readonly protocolVersion: 1;
35
68
  readonly eventTypes: readonly AgentEventTypeDefinition[];
@@ -50,6 +83,7 @@ export interface PluginAgentEventSource {
50
83
  drain(context: AgentEventContext, publisher: AgentEventPublisher, limit: number): Promise<{
51
84
  more: boolean;
52
85
  }>;
53
- handle(context: AgentEventContext, delivery: AgentEventDelivery): Promise<EventDecision>;
86
+ /** The host binds the wake to this receipt and actor. Call only for a committed, still applicable follow-up. */
87
+ handle(context: AgentEventContext, delivery: AgentEventDelivery, followUp?: AgentEventFollowUp): Promise<EventDecision>;
54
88
  }
55
89
  export * from './journal';
@@ -9,18 +9,11 @@ export declare const artifactTypeDefinitionSchema: z.ZodEffects<z.ZodEffects<z.Z
9
9
  size: z.ZodOptional<z.ZodNumber>;
10
10
  alt: z.ZodOptional<z.ZodString>;
11
11
  style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
12
- }, "strip", z.ZodTypeAny, {
13
- value?: string;
14
- type?: "image" | "svg" | "font" | "emoji" | "lottie";
12
+ }, "strip", z.ZodTypeAny, import("@xpert-ai/contracts").IconDefinition, {
15
13
  size?: number;
16
14
  color?: string;
17
- alt?: string;
18
- style?: Record<string, string>;
19
- }, {
20
- value?: string;
21
15
  type?: "image" | "svg" | "font" | "emoji" | "lottie";
22
- size?: number;
23
- color?: string;
16
+ value?: string;
24
17
  alt?: string;
25
18
  style?: Record<string, string>;
26
19
  }>>;
@@ -119,14 +112,7 @@ export declare const artifactTypeDefinitionSchema: z.ZodEffects<z.ZodEffects<z.Z
119
112
  collection?: {
120
113
  allowCopy?: boolean;
121
114
  };
122
- icon?: {
123
- value?: string;
124
- type?: "image" | "svg" | "font" | "emoji" | "lottie";
125
- size?: number;
126
- color?: string;
127
- alt?: string;
128
- style?: Record<string, string>;
129
- };
115
+ icon?: import("@xpert-ai/contracts").IconDefinition;
130
116
  content?: {
131
117
  mimeTypes?: string[];
132
118
  maxBytes?: number;
@@ -164,10 +150,10 @@ export declare const artifactTypeDefinitionSchema: z.ZodEffects<z.ZodEffects<z.Z
164
150
  allowCopy?: boolean;
165
151
  };
166
152
  icon?: {
167
- value?: string;
168
- type?: "image" | "svg" | "font" | "emoji" | "lottie";
169
153
  size?: number;
170
154
  color?: string;
155
+ type?: "image" | "svg" | "font" | "emoji" | "lottie";
156
+ value?: string;
171
157
  alt?: string;
172
158
  style?: Record<string, string>;
173
159
  };
@@ -207,14 +193,7 @@ export declare const artifactTypeDefinitionSchema: z.ZodEffects<z.ZodEffects<z.Z
207
193
  collection?: {
208
194
  allowCopy?: boolean;
209
195
  };
210
- icon?: {
211
- value?: string;
212
- type?: "image" | "svg" | "font" | "emoji" | "lottie";
213
- size?: number;
214
- color?: string;
215
- alt?: string;
216
- style?: Record<string, string>;
217
- };
196
+ icon?: import("@xpert-ai/contracts").IconDefinition;
218
197
  content?: {
219
198
  mimeTypes?: string[];
220
199
  maxBytes?: number;
@@ -252,10 +231,10 @@ export declare const artifactTypeDefinitionSchema: z.ZodEffects<z.ZodEffects<z.Z
252
231
  allowCopy?: boolean;
253
232
  };
254
233
  icon?: {
255
- value?: string;
256
- type?: "image" | "svg" | "font" | "emoji" | "lottie";
257
234
  size?: number;
258
235
  color?: string;
236
+ type?: "image" | "svg" | "font" | "emoji" | "lottie";
237
+ value?: string;
259
238
  alt?: string;
260
239
  style?: Record<string, string>;
261
240
  };
@@ -295,14 +274,7 @@ export declare const artifactTypeDefinitionSchema: z.ZodEffects<z.ZodEffects<z.Z
295
274
  collection?: {
296
275
  allowCopy?: boolean;
297
276
  };
298
- icon?: {
299
- value?: string;
300
- type?: "image" | "svg" | "font" | "emoji" | "lottie";
301
- size?: number;
302
- color?: string;
303
- alt?: string;
304
- style?: Record<string, string>;
305
- };
277
+ icon?: import("@xpert-ai/contracts").IconDefinition;
306
278
  content?: {
307
279
  mimeTypes?: string[];
308
280
  maxBytes?: number;
@@ -340,10 +312,10 @@ export declare const artifactTypeDefinitionSchema: z.ZodEffects<z.ZodEffects<z.Z
340
312
  allowCopy?: boolean;
341
313
  };
342
314
  icon?: {
343
- value?: string;
344
- type?: "image" | "svg" | "font" | "emoji" | "lottie";
345
315
  size?: number;
346
316
  color?: string;
317
+ type?: "image" | "svg" | "font" | "emoji" | "lottie";
318
+ value?: string;
347
319
  alt?: string;
348
320
  style?: Record<string, string>;
349
321
  };
@@ -225,6 +225,26 @@ export interface IChatChannel<TConfig = any, TEvent = any> {
225
225
  * @returns Send result
226
226
  */
227
227
  sendText(ctx: TChatContext, content: string): Promise<TChatSendResult>;
228
+ /** Verify the bound account in this installation. The app-specific ID is never supplied by the model. */
229
+ resolvePrivateDestination?(integration: IIntegration, subjectId: string): Promise<{
230
+ appId: string;
231
+ recipient: string;
232
+ } | null>;
233
+ /** Send to the verified private recipient using the host's attempt ID. Return unknown when acceptance is uncertain. */
234
+ sendPrivateDecision?(integration: IIntegration, recipient: string, card: import('@xpert-ai/contracts').PrivateDecisionCard, attemptId: string): Promise<{
235
+ status: 'accepted';
236
+ messageId: string;
237
+ chatId: string;
238
+ } | {
239
+ status: 'failed' | 'unknown';
240
+ }>;
241
+ updatePrivateDecision?(integration: IIntegration, messageId: string, status: import('@xpert-ai/contracts').PrivateDecisionFeedbackStatus, choiceLabel: string): Promise<void>;
242
+ sendPrivateNotification?(integration: IIntegration, recipient: string, text: string, attemptId: string): Promise<{
243
+ status: 'accepted';
244
+ messageId: string;
245
+ } | {
246
+ status: 'failed' | 'unknown';
247
+ }>;
228
248
  /**
229
249
  * Send Markdown message
230
250
  *
@@ -67,7 +67,20 @@ export interface ContentCatalogApi {
67
67
  types(scope: ContentDocumentScope): Promise<Array<ContentTypeImplementation & {
68
68
  providerKey: string;
69
69
  }>>;
70
- /** Reconciles registered providers before listing. The caller may continue with the returned cursor. */
70
+ /** Rebuild derived catalog metadata explicitly, outside the first-page read path. */
71
+ refresh(scope: ContentDocumentScope & {
72
+ excludedProviderKeys?: string[];
73
+ }): Promise<void>;
74
+ /** Project-scoped suppression metadata, including tombstones. These paths only hide
75
+ * duplicate file entries; they must never be displayed or treated as access grants. */
76
+ coverage(scope: ContentDocumentScope & {
77
+ excludedProviderKeys?: string[];
78
+ }): Promise<Array<{
79
+ path: string;
80
+ recursive: boolean;
81
+ }>>;
82
+ /** Reads an authorized page. Use indexed discovery for interactive lists and refresh
83
+ * separately. The default retains synchronous discovery for existing callers. */
71
84
  list(scope: ContentDocumentScope & {
72
85
  excludedProviderKeys?: string[];
73
86
  contentIds?: string[];
@@ -76,9 +89,12 @@ export interface ContentCatalogApi {
76
89
  deleted?: boolean;
77
90
  offset?: number;
78
91
  limit?: number;
92
+ discovery?: 'refresh' | 'indexed';
93
+ cursor?: string;
79
94
  }): Promise<{
80
95
  items: ContentCatalogItem[];
81
96
  hasMore: boolean;
97
+ nextCursor?: string;
82
98
  }>;
83
99
  register(input: ContentDocumentScope & {
84
100
  source: ContentResourceReference;
@@ -65,9 +65,9 @@ export declare class ProjectPipelineContributionRegistry extends BaseStrategyReg
65
65
  version: string;
66
66
  lanes: {
67
67
  key: string;
68
+ label: string;
68
69
  order: number;
69
70
  roleKey: string;
70
- label: string;
71
71
  }[];
72
72
  executionAuthority: "provider";
73
73
  providerRef: string;
@@ -86,8 +86,8 @@ export declare class ProjectPipelineContributionRegistry extends BaseStrategyReg
86
86
  }[];
87
87
  stages: {
88
88
  key: string;
89
- order: number;
90
89
  label: string;
90
+ order: number;
91
91
  icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
92
92
  }[];
93
93
  presentation?: {
@@ -110,9 +110,9 @@ export declare class ProjectPipelineContributionRegistry extends BaseStrategyReg
110
110
  version: string;
111
111
  lanes: {
112
112
  key: string;
113
+ label: string;
113
114
  order: number;
114
115
  roleKey: string;
115
- label: string;
116
116
  }[];
117
117
  executionAuthority: "platform";
118
118
  topology: {
@@ -129,8 +129,8 @@ export declare class ProjectPipelineContributionRegistry extends BaseStrategyReg
129
129
  }[];
130
130
  stages: {
131
131
  key: string;
132
- order: number;
133
132
  label: string;
133
+ order: number;
134
134
  icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
135
135
  }[];
136
136
  nodes: ({
@@ -141,10 +141,10 @@ export declare class ProjectPipelineContributionRegistry extends BaseStrategyReg
141
141
  executorSlot: string;
142
142
  completionRef: string;
143
143
  stageKey: string;
144
+ label?: string | undefined;
144
145
  presentation?: {
145
146
  foldIntoApproval: string;
146
147
  } | undefined;
147
- label?: string | undefined;
148
148
  resourceResolverRef?: string | undefined;
149
149
  outputSchemaRef?: string | undefined;
150
150
  inputBindings?: Record<string, {
@@ -351,6 +351,14 @@ export declare class ProjectPipelineContributionRegistry extends BaseStrategyReg
351
351
  metricRefs: string[];
352
352
  } | undefined;
353
353
  };
354
+ nativeModelBudgetPolicy?: {
355
+ maximum: {
356
+ maxCalls: number;
357
+ maxTokens: number;
358
+ reservationTokens: number;
359
+ };
360
+ maxTokensDefaultSource: "configuration" | "host";
361
+ } | undefined;
354
362
  }[];
355
363
  descriptors: ({
356
364
  kind: "schema";
@@ -4,4 +4,5 @@ export * from './provider.registry';
4
4
  export * from './remote-component-html';
5
5
  export * from './tokens';
6
6
  export * from './middleware-runtime';
7
+ export * from './workbench-decision';
7
8
  export { ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND } from '@xpert-ai/contracts';
@@ -0,0 +1,10 @@
1
+ import type { HumanDecisionInput, HumanDecisionResult } from '@xpert-ai/contracts';
2
+ /**
3
+ * Lets a plugin's server-side View provider submit a human decision during an authorized
4
+ * assistant or project workbench action. The host takes the actor and plugin identity from
5
+ * the current action and routes the submission to their active source binding.
6
+ * The event source checks who can decide the business matter and records the choice.
7
+ */
8
+ export declare const WorkbenchDecisionCapability: import("../core/runtime-capability").RuntimeCapabilityKey<{
9
+ submit(adapter: string, sourceBindingRef: string, input: HumanDecisionInput): Promise<HumanDecisionResult>;
10
+ }>;