@xpert-ai/contracts 3.21.0 → 3.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -6845,6 +6845,21 @@ var agentInvocationTerminalStatusSchema = v3.z.enum([
6845
6845
  }).optional()
6846
6846
  }).strict();
6847
6847
 
6848
+ /** Host-owned routing context for a native Assistant invocation, not a separate runtime provider. */ var assistantTaskGroupContextSchema = v3.z.object({
6849
+ type: v3.z.literal("group_member"),
6850
+ groupId: v3.z.string().uuid(),
6851
+ participantId: v3.z.string().uuid(),
6852
+ sourceParticipantId: v3.z.string().uuid(),
6853
+ projectId: v3.z.string().uuid()
6854
+ }).strict();
6855
+ function assistantTaskGroupContext(target) {
6856
+ if (target.provider !== "xpert-task") return null;
6857
+ var parsed = v3.z.object({
6858
+ executionContext: assistantTaskGroupContextSchema
6859
+ }).safeParse(target.configuration);
6860
+ return parsed.success ? parsed.data.executionContext : null;
6861
+ }
6862
+
6848
6863
  var AGENT_OUTPUT_MAX_PATHS = 128;
6849
6864
  /** Relative file selections only. A declaration does not grant filesystem access. */ var agentResultPathSchema = v3.z.string().min(1).max(1024).refine(function(path) {
6850
6865
  return !path.startsWith("/") && !/^[a-zA-Z]:/.test(path) && !path.includes("\\") && !/[\x00-\x1f]/.test(path) && path.split("/").every(function(part) {
@@ -6949,15 +6964,26 @@ var projectTaskExecutionReferenceSchema = v3.z.object({
6949
6964
  invocationId: v3.z.string().uuid(),
6950
6965
  status: agentInvocationStatusSchema
6951
6966
  }).strict();
6952
- /** Explicit delegation. Routing and actor identity come from the host. */ var projectTaskDispatchInputSchema = v3.z.object({
6967
+ /** Explicit delegation. Routing and actor identity come from the host. */ var projectTaskDispatchFieldsSchema = v3.z.object({
6953
6968
  requestId: v3.z.string().uuid(),
6954
6969
  taskId: v3.z.string().uuid(),
6955
6970
  expectedRevision: v3.z.number().int().positive(),
6956
- bindingId: v3.z.string().uuid(),
6971
+ bindingId: v3.z.string().uuid().optional(),
6972
+ target: v3.z.object({
6973
+ type: v3.z.literal("group_member"),
6974
+ participantId: v3.z.string().uuid()
6975
+ }).strict().optional(),
6957
6976
  purpose: projectTaskExecutionPurposeSchema.optional(),
6958
6977
  delivery: agentOutputDeliverySchema.optional(),
6959
6978
  instructions: v3.z.string().trim().max(16000).default("")
6960
6979
  }).strict();
6980
+ var hasOneDispatchTarget = function(input) {
6981
+ return Boolean(input.bindingId) !== Boolean(input.target);
6982
+ };
6983
+ var projectTaskDispatchInputSchema = projectTaskDispatchFieldsSchema.refine(hasOneDispatchTarget, "Choose exactly one Runtime binding or group member");
6984
+ var projectTaskDispatchToolInputSchema = projectTaskDispatchFieldsSchema.omit({
6985
+ requestId: true
6986
+ }).refine(hasOneDispatchTarget, "Choose exactly one Runtime binding or group member");
6961
6987
  /** Exact JSON response from an evidence-only reviewer; prose never implies a passing verdict. */ var projectTaskReviewReportSchema = v3.z.object({
6962
6988
  version: v3.z.literal(1),
6963
6989
  verdict: v3.z.enum([
@@ -8142,6 +8168,7 @@ function isViewScalar(value) {
8142
8168
  }
8143
8169
 
8144
8170
  var RUNTIME_RESTART_CONFIRMATION = "RESTART";
8171
+ /** Terminal transport interruption; it does not indicate that the background task completed or failed. */ var RUNTIME_STREAM_INTERRUPTED_EVENT = "runtime-interrupted";
8145
8172
 
8146
8173
  var codingExecutionViewKey = "platform.coding-execution__execution";
8147
8174
  var executionActivityCapabilitiesSchema = v3.z.object({
@@ -8424,6 +8451,7 @@ exports.PLUGIN_SOURCE = PLUGIN_SOURCE;
8424
8451
  exports.PROJECT_TASK_ICON_NAMES = PROJECT_TASK_ICON_NAMES;
8425
8452
  exports.PermissionGroups = PermissionGroups;
8426
8453
  exports.RUNTIME_RESTART_CONFIRMATION = RUNTIME_RESTART_CONFIRMATION;
8454
+ exports.RUNTIME_STREAM_INTERRUPTED_EVENT = RUNTIME_STREAM_INTERRUPTED_EVENT;
8427
8455
  exports.SANDBOX_FILE_OUTPUT_RULES = SANDBOX_FILE_OUTPUT_RULES;
8428
8456
  exports.SANDBOX_MANAGED_SERVICE_STATUSES = SANDBOX_MANAGED_SERVICE_STATUSES;
8429
8457
  exports.SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES = SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES;
@@ -8485,6 +8513,8 @@ exports.agentUniqueName = agentUniqueName;
8485
8513
  exports.allChannels = allChannels;
8486
8514
  exports.appendMessageContent = appendMessageContent;
8487
8515
  exports.appendMessagePlainText = appendMessagePlainText;
8516
+ exports.assistantTaskGroupContext = assistantTaskGroupContext;
8517
+ exports.assistantTaskGroupContextSchema = assistantTaskGroupContextSchema;
8488
8518
  exports.buildChunkTree = buildChunkTree;
8489
8519
  exports.buildXpertMarketplaceProfileSnapshot = buildXpertMarketplaceProfileSnapshot;
8490
8520
  exports.canAllowMcpToolDirectly = canAllowMcpToolDirectly;
@@ -8640,6 +8670,7 @@ exports.projectTaskDecisionInputSchema = projectTaskDecisionInputSchema;
8640
8670
  exports.projectTaskDecisionSchema = projectTaskDecisionSchema;
8641
8671
  exports.projectTaskDispatchInputSchema = projectTaskDispatchInputSchema;
8642
8672
  exports.projectTaskDispatchReceiptSchema = projectTaskDispatchReceiptSchema;
8673
+ exports.projectTaskDispatchToolInputSchema = projectTaskDispatchToolInputSchema;
8643
8674
  exports.projectTaskEvidenceReferenceSchema = projectTaskEvidenceReferenceSchema;
8644
8675
  exports.projectTaskExecutionContextSchema = projectTaskExecutionContextSchema;
8645
8676
  exports.projectTaskExecutionPurposeSchema = projectTaskExecutionPurposeSchema;
package/index.esm.js CHANGED
@@ -6844,6 +6844,21 @@ var agentInvocationTerminalStatusSchema = z.enum([
6844
6844
  }).optional()
6845
6845
  }).strict();
6846
6846
 
6847
+ /** Host-owned routing context for a native Assistant invocation, not a separate runtime provider. */ var assistantTaskGroupContextSchema = z.object({
6848
+ type: z.literal("group_member"),
6849
+ groupId: z.string().uuid(),
6850
+ participantId: z.string().uuid(),
6851
+ sourceParticipantId: z.string().uuid(),
6852
+ projectId: z.string().uuid()
6853
+ }).strict();
6854
+ function assistantTaskGroupContext(target) {
6855
+ if (target.provider !== "xpert-task") return null;
6856
+ var parsed = z.object({
6857
+ executionContext: assistantTaskGroupContextSchema
6858
+ }).safeParse(target.configuration);
6859
+ return parsed.success ? parsed.data.executionContext : null;
6860
+ }
6861
+
6847
6862
  var AGENT_OUTPUT_MAX_PATHS = 128;
6848
6863
  /** Relative file selections only. A declaration does not grant filesystem access. */ var agentResultPathSchema = z.string().min(1).max(1024).refine(function(path) {
6849
6864
  return !path.startsWith("/") && !/^[a-zA-Z]:/.test(path) && !path.includes("\\") && !/[\x00-\x1f]/.test(path) && path.split("/").every(function(part) {
@@ -6948,15 +6963,26 @@ var projectTaskExecutionReferenceSchema = z.object({
6948
6963
  invocationId: z.string().uuid(),
6949
6964
  status: agentInvocationStatusSchema
6950
6965
  }).strict();
6951
- /** Explicit delegation. Routing and actor identity come from the host. */ var projectTaskDispatchInputSchema = z.object({
6966
+ /** Explicit delegation. Routing and actor identity come from the host. */ var projectTaskDispatchFieldsSchema = z.object({
6952
6967
  requestId: z.string().uuid(),
6953
6968
  taskId: z.string().uuid(),
6954
6969
  expectedRevision: z.number().int().positive(),
6955
- bindingId: z.string().uuid(),
6970
+ bindingId: z.string().uuid().optional(),
6971
+ target: z.object({
6972
+ type: z.literal("group_member"),
6973
+ participantId: z.string().uuid()
6974
+ }).strict().optional(),
6956
6975
  purpose: projectTaskExecutionPurposeSchema.optional(),
6957
6976
  delivery: agentOutputDeliverySchema.optional(),
6958
6977
  instructions: z.string().trim().max(16000).default("")
6959
6978
  }).strict();
6979
+ var hasOneDispatchTarget = function(input) {
6980
+ return Boolean(input.bindingId) !== Boolean(input.target);
6981
+ };
6982
+ var projectTaskDispatchInputSchema = projectTaskDispatchFieldsSchema.refine(hasOneDispatchTarget, "Choose exactly one Runtime binding or group member");
6983
+ var projectTaskDispatchToolInputSchema = projectTaskDispatchFieldsSchema.omit({
6984
+ requestId: true
6985
+ }).refine(hasOneDispatchTarget, "Choose exactly one Runtime binding or group member");
6960
6986
  /** Exact JSON response from an evidence-only reviewer; prose never implies a passing verdict. */ var projectTaskReviewReportSchema = z.object({
6961
6987
  version: z.literal(1),
6962
6988
  verdict: z.enum([
@@ -8141,6 +8167,7 @@ function isViewScalar(value) {
8141
8167
  }
8142
8168
 
8143
8169
  var RUNTIME_RESTART_CONFIRMATION = "RESTART";
8170
+ /** Terminal transport interruption; it does not indicate that the background task completed or failed. */ var RUNTIME_STREAM_INTERRUPTED_EVENT = "runtime-interrupted";
8144
8171
 
8145
8172
  var codingExecutionViewKey = "platform.coding-execution__execution";
8146
8173
  var executionActivityCapabilitiesSchema = z.object({
@@ -8226,4 +8253,4 @@ var executionActivityBatchSchema = z.object({
8226
8253
  browseUrl: "https://github.com/xpert-ai/xpert-plugins/tree/main/agent-plugins"
8227
8254
  };
8228
8255
 
8229
- export { AGENT_OUTPUT_MAX_PATHS, AGENT_PROFILE_TABS_SLOT, AGENT_WORKBENCH_SLOT, AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_COMPOSER_APPEND_REFERENCES_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, ASSISTANT_USER_PREFERENCES_VERSION, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BUILTIN_KNOWLEDGE_FILE_TYPES, BUILTIN_KNOWLEDGE_PARSER, BonusTypeEnum, BusinessType, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED, CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED, CONTEXT_COMPRESSION_COMPONENT_TYPE, CONTEXT_COMPRESSION_MIDDLEWARE_NAME, CONTEXT_VARIABLE_CURRENTSTATE, CONVERSATION_MAP_FEATURE, COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING, COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ChatThreadPurpose, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_AGENT_PLUGINS_SOURCE, DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, DEFAULT_KNOWLEDGEBASE_WIKI_CONFIG, DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER, DEFAULT_KNOWLEDGE_RRF_RANK_CONSTANT, DEFAULT_KNOWLEDGE_RRF_WEIGHTS, DEFAULT_KNOWLEDGE_TEXT_SPLITTER, DEFAULT_MEMBERSHIP_CNY_PER_POINT, DEFAULT_MODEL_GATEWAY_BODY_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_CALL_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, DEFAULT_MODEL_GATEWAY_REQUESTS_PER_MINUTE, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_SYSTEM_ROLES, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DEFAULT_XPERT_AGENT_RECURSION_LIMIT, DEFAULT_XPERT_WORKSPACE_DATA_SCOPE, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, ENTERPRISE_H5_PLATFORMS, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FEEDBACK_LEARNING_STRATEGY, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FetchFrom, FileStorageProviderEnum, GENERAL_PROJECT_TYPE, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HUMAN_PROPOSAL_STRATEGY, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_AUTOMATIC_TAG_CANDIDATES, KNOWLEDGE_AUTOMATIC_TAG_MAXIMUM, KNOWLEDGE_AUTOMATIC_TAG_TEXT_BUDGET, KNOWLEDGE_CHUNKING_ALGORITHM_VERSION, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_DOCUMENT_AGENT_WRITER_TYPE, KNOWLEDGE_FAQ_ANSWER_BLOCK_MAX_COUNT, KNOWLEDGE_FAQ_ANSWER_TOTAL_MAX_LENGTH, KNOWLEDGE_FAQ_MAX_LOGICAL_VECTOR_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_STANDARD_QUESTION_MAX_LENGTH, KNOWLEDGE_FILTER_MAX_CONDITIONS, KNOWLEDGE_FILTER_MAX_DEPTH, KNOWLEDGE_FILTER_MAX_SET_VALUES, KNOWLEDGE_FILTER_MAX_STRING_LENGTH, KNOWLEDGE_FILTER_VERSION, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_GRAPH_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_PROCESSING_MODE_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KNOWLEDGE_SYSTEM_FILTER_FIELDS, KNOWLEDGE_WIKI_DEFAULT_PAGE_SIZE, KNOWLEDGE_WIKI_DELETION_RECEIPT_RETENTION_DAYS, KNOWLEDGE_WIKI_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_WIKI_FAILED_CONTENT_RETENTION_DAYS, KNOWLEDGE_WIKI_MAX_ALIASES, KNOWLEDGE_WIKI_MAX_CANONICAL_NAME_LENGTH, KNOWLEDGE_WIKI_MAX_CUSTOM_INSTRUCTION_LENGTH, KNOWLEDGE_WIKI_MAX_FACTS, KNOWLEDGE_WIKI_MAX_FACT_LENGTH, KNOWLEDGE_WIKI_MAX_PAGE_SIZE, KNOWLEDGE_WIKI_MAX_SEARCH_LENGTH, KNOWLEDGE_WIKI_MAX_SOURCE_CHUNKS_PER_FACT, KNOWLEDGE_WIKI_MAX_SUGGESTED_LINKS, KNOWLEDGE_WIKI_MAX_SUMMARY_LENGTH, KNOWLEDGE_WIKI_OPERATION_RETENTION_DAYS, KNOWLEDGE_WIKI_SCHEMA_VERSION, KNOWLEDGE_WIKI_STALE_VECTOR_CLEANUP_SLO_HOURS, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_AGENT_WORKBENCH_SLOTS, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LongTermMemoryTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MAX_MODEL_GATEWAY_BODY_RETENTION_DAYS, MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS, MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MCPServerType, MCP_API_KEY_SUBJECT_TYPES, MCP_APP_RESOURCE_MIME_TYPE, MCP_AUTH_METHODS, MCP_CAPABILITY_APPROVAL_MODES, MCP_CAPABILITY_DESCRIPTOR_VERSION, MCP_CAPABILITY_TYPES, MCP_CAPABILITY_VISIBILITIES, MCP_CONSUMER_AUTH_TYPES, MCP_HTTP_CORS_EXPOSED_HEADERS, MCP_HTTP_CORS_REQUEST_HEADERS, MCP_INVOCATION_STATUSES, MCP_PROTOCOL_VERSION, MCP_PUBLICATION_REVIEW_STATUSES, MCP_PUBLICATION_STATUSES, MCP_REQUIRED_CONTEXTS, MCP_TASK_EXTENSION_ID, MCP_TASK_STATUSES, MCP_TOOL_IDEMPOTENCY, MCP_TOOL_RISKS, MCP_TOOL_SIDE_EFFECTS, MEMBERSHIP_CNY_PER_POINT_SETTING, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS, MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS, MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MODEL_EXECUTION_POLICY_SETTING, MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING, MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING, MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING, MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING, MembershipAdminUserStatusEnum, MembershipBulkActionEnum, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPeriodStatusEnum, MembershipPlanStatusEnum, MembershipRenewalModeEnum, MembershipSourceEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelAccessActorTypeEnum, ModelAccessChannelEnum, ModelAccessClosedReasonCodeEnum, ModelAccessEventTypeEnum, ModelAccessOwnershipScopeEnum, ModelAccessRequestStatusEnum, ModelAccessSourceEnum, ModelAccessUnavailableReasonEnum, ModelFeature, ModelGatewayApiKeyLifetimeEnum, ModelGatewayApiKeyStatusEnum, ModelGatewayCallStatusEnum, ModelGatewayUsageChannelEnum, ModelGatewayUsageSourceEnum, ModelPropertyKey, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PLUGIN_APPLICATION_INSTALLATION_STATUS, PLUGIN_APPLICATION_SCOPE, PLUGIN_COMPONENT_TYPE, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY, PLUGIN_MARKETPLACE_CATEGORIES, PLUGIN_MARKETPLACE_INSTALLATION_POLICY, PLUGIN_MARKETPLACE_SUBCATEGORIES, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_ERROR_CODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, PLUGIN_SOURCE, PROJECT_TASK_ICON_NAMES, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProviderEnum, ProviderType, RUNTIME_RESTART_CONFIRMATION, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RolesEnum, SANDBOX_FILE_OUTPUT_RULES, SANDBOX_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SKILLS_MIDDLEWARE_NAME, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_AGENT_WORKSPACE_PATH, STATE_SYS_MEMORY_WORKSPACE_PATH, STATE_SYS_SESSION_WORKSPACE_PATH, STATE_SYS_SHARED_WORKSPACE_PATH, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_ROOT, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxManagedServiceErrorCode, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, ScheduleTaskStatus, SecretTokenBindingType, TAG_TARGETS, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserModelGrantStatusEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET, WORKBENCH_AGENT_EVOLUTION_TARGET, WORKBENCH_ASSISTANT_CONVERSATION_TARGET, WORKBENCH_ASSISTANT_EXECUTION_TARGET, WORKBENCH_ASSISTANT_PROJECT_TARGET, WORKBENCH_EXTENSION_VIEW_TARGET, WORKBENCH_FILE_OPEN_COMMAND, WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET, WORKBENCH_NAVIGATION_OPEN_COMMAND, WORKBENCH_VIEW_OPEN_EVENT, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE, XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY, XPERT_TASK_SCHEDULE_PROPERTY_PREFIX, XPERT_VIEW_CONVERSATION_ID_HEADER, XPERT_VIEW_PROJECT_ID_HEADER, XpertAccessRequestStatusEnum, XpertAgentExecutionStatusEnum, XpertMarketplaceBusinessCategories, XpertMarketplaceCollaborationModes, XpertMarketplaceTechnicalCategories, XpertParameterTypeEnum, XpertProjectAssetSourceEnum, XpertProjectAutomationRunStatusEnum, XpertProjectAutomationTriggerEnum, XpertProjectPlanViewEnum, XpertProjectTaskPriorityEnum, XpertProjectTaskStatusEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, XpertWorkbenchInitialLayoutEnum, agentInvocationStatusSchema, agentInvocationTerminalStatusSchema, agentLabel, agentOutputDeliverySchema, agentResultPathSchema, agentRuntimeModelSourceSchema, agentRuntimeProgressSchema, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, buildXpertMarketplaceProfileSnapshot, canAllowMcpToolDirectly, channelName, chatMessagePresentation, classificateDocumentCategory, codingExecutionViewKey, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createRuntimeSkillCapabilityId, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, decodeKnowledgeSeparators, defaultMcpToolApprovalMode, deriveXpertMarketplaceTechnicalProfile, ensureAssistantBindingSkillWorkspacePreference, evidenceDrivenStrategy, executionActivityBatchSchema, executionActivityCapabilitiesSchema, executionActivityItemSchema, figureOutXpert, filterAssistantBindingDisabledSkillIds, filterAssistantBindingDisabledTools, filterMessageText, findStartNodes, forecastProjectTasks, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantBindingDisabledSkillIds, getAssistantBindingDisabledTools, getAssistantManagement, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getTagTargets, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, getXpertAgentRecursionLimit, getXpertWorkspaceVisibility, hasEnabledKnowledgeRetrievalSource, inferMessageAppendContext, isAgentKey, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isBlank, isContextCompressionComponentData, isDocumentKnowledgebaseType, isDocumentSheet, isEnableTool, isEnterpriseH5Platform, isEvidenceProposal, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isKnowledgeDocumentVisible, isKnowledgeTableMetadata, isKnowledgeWikiChunkMetadata, isKnowledgeWikiPageContributionPayload, isKnowledgeWikiPageSourcePayload, isLearningProposal, isMessageGroup, isMiddlewareToolEnabled, isNativeKnowledgeTableDocument, isNil$1 as isNil, isOrganizationSharedXpertWorkspace, isOutputTokenParameter, isPreparedCandidate, isPromptWorkflowScenarios, isProviderEvaluation, isProviderRelease, isReplayEvaluation, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isRuntimeChatMessage, isScopedPromptCapabilityConfig, isStagedRelease, isString, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, knowledgeDocumentFileType, knowledgeUploadFileTypes, knowledgebaseDocumentParserDefaults, knowledgebaseParserSelection, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, modelExecutionEntry, modelExecutionSourceId, nonBlank, nonNullable, normalizeAssistantBindingToolPreferences, normalizeKnowledgebaseFAQRecall, normalizeKnowledgebaseWikiConfig, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeModelParameterValue, normalizeXpertAgentConfig, omitXpertRelations, orderAssistantXperts, parseGithubSkillInstallCommand, parsePromptCapabilityConfig, parsePromptCapabilitySelection, parseRuntimeSkillCapabilityId, parseWorkbenchViewOpenEvent, projectTaskDecisionInputSchema, projectTaskDecisionSchema, projectTaskDispatchInputSchema, projectTaskDispatchReceiptSchema, projectTaskEvidenceReferenceSchema, projectTaskExecutionContextSchema, projectTaskExecutionPurposeSchema, projectTaskExecutionReferenceSchema, projectTaskReviewReportSchema, projectTaskSpecificationDigestSchema, projectTaskSpecificationSchema, projectTaskSpecificationSnapshotSchema, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveModelParameterOptions, resolvePromptWorkflowCapabilities, resolveRuntimeXpert, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, uuid, validateProjectTaskGraph, workflowNodeIdentifier, xpertLabel };
8256
+ export { AGENT_OUTPUT_MAX_PATHS, AGENT_PROFILE_TABS_SLOT, AGENT_WORKBENCH_SLOT, AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_COMPOSER_APPEND_REFERENCES_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, ASSISTANT_USER_PREFERENCES_VERSION, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BUILTIN_KNOWLEDGE_FILE_TYPES, BUILTIN_KNOWLEDGE_PARSER, BonusTypeEnum, BusinessType, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED, CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED, CONTEXT_COMPRESSION_COMPONENT_TYPE, CONTEXT_COMPRESSION_MIDDLEWARE_NAME, CONTEXT_VARIABLE_CURRENTSTATE, CONVERSATION_MAP_FEATURE, COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING, COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ChatThreadPurpose, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_AGENT_PLUGINS_SOURCE, DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, DEFAULT_KNOWLEDGEBASE_WIKI_CONFIG, DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER, DEFAULT_KNOWLEDGE_RRF_RANK_CONSTANT, DEFAULT_KNOWLEDGE_RRF_WEIGHTS, DEFAULT_KNOWLEDGE_TEXT_SPLITTER, DEFAULT_MEMBERSHIP_CNY_PER_POINT, DEFAULT_MODEL_GATEWAY_BODY_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_CALL_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, DEFAULT_MODEL_GATEWAY_REQUESTS_PER_MINUTE, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_SYSTEM_ROLES, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DEFAULT_XPERT_AGENT_RECURSION_LIMIT, DEFAULT_XPERT_WORKSPACE_DATA_SCOPE, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, ENTERPRISE_H5_PLATFORMS, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FEEDBACK_LEARNING_STRATEGY, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FetchFrom, FileStorageProviderEnum, GENERAL_PROJECT_TYPE, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HUMAN_PROPOSAL_STRATEGY, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_AUTOMATIC_TAG_CANDIDATES, KNOWLEDGE_AUTOMATIC_TAG_MAXIMUM, KNOWLEDGE_AUTOMATIC_TAG_TEXT_BUDGET, KNOWLEDGE_CHUNKING_ALGORITHM_VERSION, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_DOCUMENT_AGENT_WRITER_TYPE, KNOWLEDGE_FAQ_ANSWER_BLOCK_MAX_COUNT, KNOWLEDGE_FAQ_ANSWER_TOTAL_MAX_LENGTH, KNOWLEDGE_FAQ_MAX_LOGICAL_VECTOR_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_STANDARD_QUESTION_MAX_LENGTH, KNOWLEDGE_FILTER_MAX_CONDITIONS, KNOWLEDGE_FILTER_MAX_DEPTH, KNOWLEDGE_FILTER_MAX_SET_VALUES, KNOWLEDGE_FILTER_MAX_STRING_LENGTH, KNOWLEDGE_FILTER_VERSION, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_GRAPH_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_PROCESSING_MODE_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KNOWLEDGE_SYSTEM_FILTER_FIELDS, KNOWLEDGE_WIKI_DEFAULT_PAGE_SIZE, KNOWLEDGE_WIKI_DELETION_RECEIPT_RETENTION_DAYS, KNOWLEDGE_WIKI_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_WIKI_FAILED_CONTENT_RETENTION_DAYS, KNOWLEDGE_WIKI_MAX_ALIASES, KNOWLEDGE_WIKI_MAX_CANONICAL_NAME_LENGTH, KNOWLEDGE_WIKI_MAX_CUSTOM_INSTRUCTION_LENGTH, KNOWLEDGE_WIKI_MAX_FACTS, KNOWLEDGE_WIKI_MAX_FACT_LENGTH, KNOWLEDGE_WIKI_MAX_PAGE_SIZE, KNOWLEDGE_WIKI_MAX_SEARCH_LENGTH, KNOWLEDGE_WIKI_MAX_SOURCE_CHUNKS_PER_FACT, KNOWLEDGE_WIKI_MAX_SUGGESTED_LINKS, KNOWLEDGE_WIKI_MAX_SUMMARY_LENGTH, KNOWLEDGE_WIKI_OPERATION_RETENTION_DAYS, KNOWLEDGE_WIKI_SCHEMA_VERSION, KNOWLEDGE_WIKI_STALE_VECTOR_CLEANUP_SLO_HOURS, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_AGENT_WORKBENCH_SLOTS, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LongTermMemoryTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MAX_MODEL_GATEWAY_BODY_RETENTION_DAYS, MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS, MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MCPServerType, MCP_API_KEY_SUBJECT_TYPES, MCP_APP_RESOURCE_MIME_TYPE, MCP_AUTH_METHODS, MCP_CAPABILITY_APPROVAL_MODES, MCP_CAPABILITY_DESCRIPTOR_VERSION, MCP_CAPABILITY_TYPES, MCP_CAPABILITY_VISIBILITIES, MCP_CONSUMER_AUTH_TYPES, MCP_HTTP_CORS_EXPOSED_HEADERS, MCP_HTTP_CORS_REQUEST_HEADERS, MCP_INVOCATION_STATUSES, MCP_PROTOCOL_VERSION, MCP_PUBLICATION_REVIEW_STATUSES, MCP_PUBLICATION_STATUSES, MCP_REQUIRED_CONTEXTS, MCP_TASK_EXTENSION_ID, MCP_TASK_STATUSES, MCP_TOOL_IDEMPOTENCY, MCP_TOOL_RISKS, MCP_TOOL_SIDE_EFFECTS, MEMBERSHIP_CNY_PER_POINT_SETTING, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS, MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS, MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MODEL_EXECUTION_POLICY_SETTING, MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING, MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING, MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING, MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING, MembershipAdminUserStatusEnum, MembershipBulkActionEnum, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPeriodStatusEnum, MembershipPlanStatusEnum, MembershipRenewalModeEnum, MembershipSourceEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelAccessActorTypeEnum, ModelAccessChannelEnum, ModelAccessClosedReasonCodeEnum, ModelAccessEventTypeEnum, ModelAccessOwnershipScopeEnum, ModelAccessRequestStatusEnum, ModelAccessSourceEnum, ModelAccessUnavailableReasonEnum, ModelFeature, ModelGatewayApiKeyLifetimeEnum, ModelGatewayApiKeyStatusEnum, ModelGatewayCallStatusEnum, ModelGatewayUsageChannelEnum, ModelGatewayUsageSourceEnum, ModelPropertyKey, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PLUGIN_APPLICATION_INSTALLATION_STATUS, PLUGIN_APPLICATION_SCOPE, PLUGIN_COMPONENT_TYPE, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY, PLUGIN_MARKETPLACE_CATEGORIES, PLUGIN_MARKETPLACE_INSTALLATION_POLICY, PLUGIN_MARKETPLACE_SUBCATEGORIES, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_ERROR_CODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, PLUGIN_SOURCE, PROJECT_TASK_ICON_NAMES, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProviderEnum, ProviderType, RUNTIME_RESTART_CONFIRMATION, RUNTIME_STREAM_INTERRUPTED_EVENT, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RolesEnum, SANDBOX_FILE_OUTPUT_RULES, SANDBOX_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SKILLS_MIDDLEWARE_NAME, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_AGENT_WORKSPACE_PATH, STATE_SYS_MEMORY_WORKSPACE_PATH, STATE_SYS_SESSION_WORKSPACE_PATH, STATE_SYS_SHARED_WORKSPACE_PATH, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_ROOT, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxManagedServiceErrorCode, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, ScheduleTaskStatus, SecretTokenBindingType, TAG_TARGETS, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserModelGrantStatusEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET, WORKBENCH_AGENT_EVOLUTION_TARGET, WORKBENCH_ASSISTANT_CONVERSATION_TARGET, WORKBENCH_ASSISTANT_EXECUTION_TARGET, WORKBENCH_ASSISTANT_PROJECT_TARGET, WORKBENCH_EXTENSION_VIEW_TARGET, WORKBENCH_FILE_OPEN_COMMAND, WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET, WORKBENCH_NAVIGATION_OPEN_COMMAND, WORKBENCH_VIEW_OPEN_EVENT, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE, XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY, XPERT_TASK_SCHEDULE_PROPERTY_PREFIX, XPERT_VIEW_CONVERSATION_ID_HEADER, XPERT_VIEW_PROJECT_ID_HEADER, XpertAccessRequestStatusEnum, XpertAgentExecutionStatusEnum, XpertMarketplaceBusinessCategories, XpertMarketplaceCollaborationModes, XpertMarketplaceTechnicalCategories, XpertParameterTypeEnum, XpertProjectAssetSourceEnum, XpertProjectAutomationRunStatusEnum, XpertProjectAutomationTriggerEnum, XpertProjectPlanViewEnum, XpertProjectTaskPriorityEnum, XpertProjectTaskStatusEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, XpertWorkbenchInitialLayoutEnum, agentInvocationStatusSchema, agentInvocationTerminalStatusSchema, agentLabel, agentOutputDeliverySchema, agentResultPathSchema, agentRuntimeModelSourceSchema, agentRuntimeProgressSchema, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, assistantTaskGroupContext, assistantTaskGroupContextSchema, buildChunkTree, buildXpertMarketplaceProfileSnapshot, canAllowMcpToolDirectly, channelName, chatMessagePresentation, classificateDocumentCategory, codingExecutionViewKey, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createRuntimeSkillCapabilityId, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, decodeKnowledgeSeparators, defaultMcpToolApprovalMode, deriveXpertMarketplaceTechnicalProfile, ensureAssistantBindingSkillWorkspacePreference, evidenceDrivenStrategy, executionActivityBatchSchema, executionActivityCapabilitiesSchema, executionActivityItemSchema, figureOutXpert, filterAssistantBindingDisabledSkillIds, filterAssistantBindingDisabledTools, filterMessageText, findStartNodes, forecastProjectTasks, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantBindingDisabledSkillIds, getAssistantBindingDisabledTools, getAssistantManagement, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getTagTargets, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, getXpertAgentRecursionLimit, getXpertWorkspaceVisibility, hasEnabledKnowledgeRetrievalSource, inferMessageAppendContext, isAgentKey, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isBlank, isContextCompressionComponentData, isDocumentKnowledgebaseType, isDocumentSheet, isEnableTool, isEnterpriseH5Platform, isEvidenceProposal, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isKnowledgeDocumentVisible, isKnowledgeTableMetadata, isKnowledgeWikiChunkMetadata, isKnowledgeWikiPageContributionPayload, isKnowledgeWikiPageSourcePayload, isLearningProposal, isMessageGroup, isMiddlewareToolEnabled, isNativeKnowledgeTableDocument, isNil$1 as isNil, isOrganizationSharedXpertWorkspace, isOutputTokenParameter, isPreparedCandidate, isPromptWorkflowScenarios, isProviderEvaluation, isProviderRelease, isReplayEvaluation, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isRuntimeChatMessage, isScopedPromptCapabilityConfig, isStagedRelease, isString, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, knowledgeDocumentFileType, knowledgeUploadFileTypes, knowledgebaseDocumentParserDefaults, knowledgebaseParserSelection, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, modelExecutionEntry, modelExecutionSourceId, nonBlank, nonNullable, normalizeAssistantBindingToolPreferences, normalizeKnowledgebaseFAQRecall, normalizeKnowledgebaseWikiConfig, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeModelParameterValue, normalizeXpertAgentConfig, omitXpertRelations, orderAssistantXperts, parseGithubSkillInstallCommand, parsePromptCapabilityConfig, parsePromptCapabilitySelection, parseRuntimeSkillCapabilityId, parseWorkbenchViewOpenEvent, projectTaskDecisionInputSchema, projectTaskDecisionSchema, projectTaskDispatchInputSchema, projectTaskDispatchReceiptSchema, projectTaskDispatchToolInputSchema, projectTaskEvidenceReferenceSchema, projectTaskExecutionContextSchema, projectTaskExecutionPurposeSchema, projectTaskExecutionReferenceSchema, projectTaskReviewReportSchema, projectTaskSpecificationDigestSchema, projectTaskSpecificationSchema, projectTaskSpecificationSnapshotSchema, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveModelParameterOptions, resolvePromptWorkflowCapabilities, resolveRuntimeXpert, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, uuid, validateProjectTaskGraph, workflowNodeIdentifier, xpertLabel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/contracts",
3
- "version": "3.21.0",
3
+ "version": "3.21.1",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@octokit/types": "13.10.0",
23
23
  "@types/json-schema": "^7.0.15",
24
- "@xpert-ai/chatkit-types": "0.13.0",
24
+ "@xpert-ai/chatkit-types": "0.14.2",
25
25
  "zod-to-json-schema": "^3.25.2"
26
26
  },
27
27
  "peerDependencies": {
@@ -8,7 +8,7 @@ import type { I18nText } from './i18n.model';
8
8
  export type RuntimeResourceKind = 'agent_plugin' | 'middleware' | 'external_xpert';
9
9
  /**
10
10
  * Availability in the current user/project context; execution still revalidates access.
11
- * partial means some components are usable; requires_auth needs personal authorization;
11
+ * partial means some components are usable; requires_auth needs Connector authorization;
12
12
  * configuration_required needs administrator configuration.
13
13
  */
14
14
  export type RuntimeResourceStatus = 'ready' | 'requires_auth' | 'configuration_required' | 'partial' | 'unavailable';
@@ -124,6 +124,8 @@ export interface AgentPluginConnectorBinding {
124
124
  export type RuntimeResourceDefinition = {
125
125
  kind: 'agent_plugin';
126
126
  packageId: string;
127
+ /** Scope installation/configuration. Omitted on legacy workspace bindings. */
128
+ availability?: 'scope';
127
129
  /** Portable expert reference to approved, published Assistant ID. */
128
130
  experts: {
129
131
  [reference: string]: string;
@@ -145,13 +147,13 @@ export type RuntimeResourceDefinition = {
145
147
  /** Published platform Assistant ID, not a remote Agent URL. */
146
148
  xpertId: string;
147
149
  };
148
- /** Administrator request to publish a resource binding. */
150
+ /** Administrator request to configure an installed resource. */
149
151
  export interface RuntimeResourceBindingInput {
150
152
  /** Supersede an existing binding; its conversation selections are not silently rewritten. */
151
153
  replacesBindingId?: string;
152
154
  title: string;
153
155
  description?: string;
154
- /** Workspaces granted access within the organization. */
156
+ /** Legacy targets; Agent Plugins are visible throughout their installation scope. */
155
157
  workspaceIds: string[];
156
158
  definition: RuntimeResourceDefinition;
157
159
  }
@@ -190,3 +192,8 @@ export interface WorkspaceAgentPluginAddResult {
190
192
  status: 'added' | 'already_added';
191
193
  bindingId: string;
192
194
  }
195
+ /** Read-only installation catalog, independent of authoring workspace membership. */
196
+ export interface InstalledAgentPlugin extends Omit<WorkspaceAgentPlugin, 'status'> {
197
+ scope: 'tenant' | 'organization';
198
+ status: 'available' | 'configuration_required' | 'disabled';
199
+ }
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod/v3';
2
+ /** Host-owned routing context for a native Assistant invocation, not a separate runtime provider. */
3
+ export declare const assistantTaskGroupContextSchema: z.ZodObject<{
4
+ type: z.ZodLiteral<"group_member">;
5
+ groupId: z.ZodString;
6
+ participantId: z.ZodString;
7
+ sourceParticipantId: z.ZodString;
8
+ projectId: z.ZodString;
9
+ }, "strict", z.ZodTypeAny, {
10
+ type?: "group_member";
11
+ projectId?: string;
12
+ participantId?: string;
13
+ groupId?: string;
14
+ sourceParticipantId?: string;
15
+ }, {
16
+ type?: "group_member";
17
+ projectId?: string;
18
+ participantId?: string;
19
+ groupId?: string;
20
+ sourceParticipantId?: string;
21
+ }>;
22
+ export type AssistantTaskGroupContext = z.output<typeof assistantTaskGroupContextSchema>;
23
+ export declare function assistantTaskGroupContext(target: {
24
+ provider: string;
25
+ configuration: unknown;
26
+ }): AssistantTaskGroupContext | null;
@@ -77,6 +77,23 @@ export interface ChatGroupComposerInput {
77
77
  }
78
78
  /** Server-authored routing and causality metadata; public senders cannot supply or override identity. */
79
79
  export interface ChatGroupCommunication {
80
+ /** Host-only task routing metadata; never accepted by group send APIs or model tools. */
81
+ projectTask?: {
82
+ invocationId: string;
83
+ projectId: string;
84
+ projectTaskId: string;
85
+ taskExecutionId: string;
86
+ };
87
+ /** Durable Invocation result notification, delivered through the group queue. */
88
+ runtimeResult?: {
89
+ invocationId: string;
90
+ consumerExecutionId: string;
91
+ revision: number;
92
+ projectId: string;
93
+ projectTaskId: string;
94
+ taskExecutionId: string;
95
+ specificationDigest: string;
96
+ };
80
97
  /** Validated Composer selections for this message, when supplied by a human sender. */
81
98
  composer?: ChatGroupComposerInput;
82
99
  intent: ChatGroupIntent;
@@ -113,6 +130,8 @@ export interface ChatGroupMessage {
113
130
  deliveries: {
114
131
  participantId: string;
115
132
  status: ChatGroupDeliveryStatus;
133
+ /** Credential-redacted execution failure; absent for pending or successful deliveries. */
134
+ error?: string;
116
135
  }[];
117
136
  }
118
137
  /**
@@ -281,6 +300,8 @@ export interface ChatGroupRuntimeView {
281
300
  messageId?: string;
282
301
  /** Execution status, distinct from the group's delivery and thread statuses. */
283
302
  status: string;
303
+ /** Credential-redacted error for this execution, independent of later runs in the conversation. */
304
+ error?: string;
284
305
  /** Display projection for this execution; human runtime context is replaced with the public question. */
285
306
  messages: {
286
307
  /** Runtime ChatMessage ID, not the public group message ID. */
@@ -296,3 +317,22 @@ export interface ChatGroupRuntimeView {
296
317
  createdAt: string;
297
318
  }[];
298
319
  }
320
+ /** Shared Project membership is explicitly selected; group membership alone grants no Project access. */
321
+ export interface ChatGroupProjectInput {
322
+ project: {
323
+ mode: 'create';
324
+ id: string;
325
+ name: string;
326
+ } | {
327
+ mode: 'existing';
328
+ projectId: string;
329
+ };
330
+ /** Include the primary Assistant. Updates add participants and preserve existing bindings. */
331
+ participantIds: string[];
332
+ }
333
+ export interface ChatGroupProject {
334
+ projectId: string;
335
+ name: string;
336
+ /** Complete active selection after the operation, including previously bound members. */
337
+ participantIds: string[];
338
+ }
@@ -0,0 +1,10 @@
1
+ import type { IAssistantBinding } from './assistant-binding.model';
2
+ import type { IXpert } from './xpert.model';
3
+ export type ClawXpertRecoveryStatus = {
4
+ status: 'ready' | 'missing' | 'binding_inaccessible' | 'dependency_unavailable' | 'initializing' | 'error';
5
+ code: 'ready' | 'binding_missing' | 'binding_inaccessible' | 'model_required' | 'initialization_running' | 'initialization_failed' | 'personal_workspace_unavailable';
6
+ checkedAt: string;
7
+ binding: IAssistantBinding | null;
8
+ candidates: Array<Pick<IXpert, 'id' | 'name' | 'title' | 'workspaceId'>>;
9
+ canRecover: boolean;
10
+ };
@@ -1,6 +1,19 @@
1
1
  import { AiModelTypeEnum } from '../agent';
2
2
  import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
3
3
  import { ICopilot } from './copilot.model';
4
+ import type { ModelFeature } from './ai-model.model';
5
+ /** Public catalog metadata for model selectors; excludes credentials and runtime configuration. */
6
+ export interface ModelSelectionMetadata {
7
+ provider?: {
8
+ id: string;
9
+ label: string;
10
+ iconUrl?: string;
11
+ };
12
+ connectionName?: string;
13
+ features?: ModelFeature[];
14
+ /** Declared context capacity in tokens, not usage. */
15
+ contextWindow?: number;
16
+ }
4
17
  export interface ICopilotModel extends TCopilotModel, IBasePerTenantAndOrganizationEntityModel {
5
18
  }
6
19
  export type TCopilotModel = {
package/src/ai/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export type { TChatRequest } from './xpert-chat.model';
7
7
  export type { ProjectSelection } from './project-selection.model';
8
8
  export { CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED } from './chat-event.model';
9
9
  export * from './assistant-binding.model';
10
+ export * from './clawxpert-recovery.model';
10
11
  export * from './bosi.model';
11
12
  export * from './assistant-order';
12
13
  export * from './assistant-model.model';
@@ -100,6 +101,7 @@ export * from './assistant-configuration.model';
100
101
  export * from './assistant-trigger.model';
101
102
  export * from './model-execution.model';
102
103
  export * from './agent-runtime.model';
104
+ export * from './assistant-task-context.model';
103
105
  export * from './project-task-runtime.model';
104
106
  export * from './realtime-voice.model';
105
107
  export * from './chat-group.model';
@@ -620,12 +620,21 @@ export declare const projectTaskDispatchReceiptSchema: z.ZodObject<{
620
620
  taskExecutionId?: string;
621
621
  }>;
622
622
  export type ProjectTaskDispatchReceipt = z.output<typeof projectTaskDispatchReceiptSchema>;
623
- /** Explicit delegation. Routing and actor identity come from the host. */
624
- export declare const projectTaskDispatchInputSchema: z.ZodObject<{
623
+ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
625
624
  requestId: z.ZodString;
626
625
  taskId: z.ZodString;
627
626
  expectedRevision: z.ZodNumber;
628
- bindingId: z.ZodString;
627
+ bindingId: z.ZodOptional<z.ZodString>;
628
+ target: z.ZodOptional<z.ZodObject<{
629
+ type: z.ZodLiteral<"group_member">;
630
+ participantId: z.ZodString;
631
+ }, "strict", z.ZodTypeAny, {
632
+ type?: "group_member";
633
+ participantId?: string;
634
+ }, {
635
+ type?: "group_member";
636
+ participantId?: string;
637
+ }>>;
629
638
  purpose: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
630
639
  type: z.ZodLiteral<"implementation">;
631
640
  }, "strict", z.ZodTypeAny, {
@@ -739,6 +748,10 @@ export declare const projectTaskDispatchInputSchema: z.ZodObject<{
739
748
  instructions: z.ZodDefault<z.ZodString>;
740
749
  }, "strict", z.ZodTypeAny, {
741
750
  requestId?: string;
751
+ target?: {
752
+ type?: "group_member";
753
+ participantId?: string;
754
+ };
742
755
  instructions?: string;
743
756
  taskId?: string;
744
757
  purpose?: {
@@ -775,6 +788,373 @@ export declare const projectTaskDispatchInputSchema: z.ZodObject<{
775
788
  };
776
789
  }, {
777
790
  requestId?: string;
791
+ target?: {
792
+ type?: "group_member";
793
+ participantId?: string;
794
+ };
795
+ instructions?: string;
796
+ taskId?: string;
797
+ purpose?: {
798
+ type?: "implementation";
799
+ } | {
800
+ type?: "review";
801
+ implementationExecutionId?: string;
802
+ implementationInvocationId?: string;
803
+ specificationDigest?: string;
804
+ evidence?: ({
805
+ type?: "artifact";
806
+ versionId?: string;
807
+ artifactId?: string;
808
+ } | {
809
+ type?: "invocation_result";
810
+ revision?: number;
811
+ invocationId?: string;
812
+ } | {
813
+ type?: "workspace_snapshot";
814
+ digest?: string;
815
+ snapshotId?: string;
816
+ })[];
817
+ };
818
+ expectedRevision?: number;
819
+ bindingId?: string;
820
+ delivery?: {
821
+ mode?: "none";
822
+ } | {
823
+ mode?: "files";
824
+ paths?: string[];
825
+ } | {
826
+ mode?: "archive";
827
+ paths?: string[];
828
+ };
829
+ }>, {
830
+ requestId?: string;
831
+ target?: {
832
+ type?: "group_member";
833
+ participantId?: string;
834
+ };
835
+ instructions?: string;
836
+ taskId?: string;
837
+ purpose?: {
838
+ type?: "implementation";
839
+ } | {
840
+ type?: "review";
841
+ implementationExecutionId?: string;
842
+ implementationInvocationId?: string;
843
+ specificationDigest?: string;
844
+ evidence?: ({
845
+ type?: "artifact";
846
+ versionId?: string;
847
+ artifactId?: string;
848
+ } | {
849
+ type?: "invocation_result";
850
+ revision?: number;
851
+ invocationId?: string;
852
+ } | {
853
+ type?: "workspace_snapshot";
854
+ digest?: string;
855
+ snapshotId?: string;
856
+ })[];
857
+ };
858
+ expectedRevision?: number;
859
+ bindingId?: string;
860
+ delivery?: {
861
+ mode?: "none";
862
+ } | {
863
+ mode?: "files";
864
+ paths?: string[];
865
+ } | {
866
+ mode?: "archive";
867
+ paths?: string[];
868
+ };
869
+ }, {
870
+ requestId?: string;
871
+ target?: {
872
+ type?: "group_member";
873
+ participantId?: string;
874
+ };
875
+ instructions?: string;
876
+ taskId?: string;
877
+ purpose?: {
878
+ type?: "implementation";
879
+ } | {
880
+ type?: "review";
881
+ implementationExecutionId?: string;
882
+ implementationInvocationId?: string;
883
+ specificationDigest?: string;
884
+ evidence?: ({
885
+ type?: "artifact";
886
+ versionId?: string;
887
+ artifactId?: string;
888
+ } | {
889
+ type?: "invocation_result";
890
+ revision?: number;
891
+ invocationId?: string;
892
+ } | {
893
+ type?: "workspace_snapshot";
894
+ digest?: string;
895
+ snapshotId?: string;
896
+ })[];
897
+ };
898
+ expectedRevision?: number;
899
+ bindingId?: string;
900
+ delivery?: {
901
+ mode?: "none";
902
+ } | {
903
+ mode?: "files";
904
+ paths?: string[];
905
+ } | {
906
+ mode?: "archive";
907
+ paths?: string[];
908
+ };
909
+ }>;
910
+ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObject<Omit<{
911
+ requestId: z.ZodString;
912
+ taskId: z.ZodString;
913
+ expectedRevision: z.ZodNumber;
914
+ bindingId: z.ZodOptional<z.ZodString>;
915
+ target: z.ZodOptional<z.ZodObject<{
916
+ type: z.ZodLiteral<"group_member">;
917
+ participantId: z.ZodString;
918
+ }, "strict", z.ZodTypeAny, {
919
+ type?: "group_member";
920
+ participantId?: string;
921
+ }, {
922
+ type?: "group_member";
923
+ participantId?: string;
924
+ }>>;
925
+ purpose: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
926
+ type: z.ZodLiteral<"implementation">;
927
+ }, "strict", z.ZodTypeAny, {
928
+ type?: "implementation";
929
+ }, {
930
+ type?: "implementation";
931
+ }>, z.ZodObject<{
932
+ type: z.ZodLiteral<"review">;
933
+ implementationExecutionId: z.ZodString;
934
+ implementationInvocationId: z.ZodString;
935
+ specificationDigest: z.ZodString;
936
+ evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
937
+ type: z.ZodLiteral<"artifact">;
938
+ artifactId: z.ZodString;
939
+ versionId: z.ZodString;
940
+ }, "strict", z.ZodTypeAny, {
941
+ type?: "artifact";
942
+ versionId?: string;
943
+ artifactId?: string;
944
+ }, {
945
+ type?: "artifact";
946
+ versionId?: string;
947
+ artifactId?: string;
948
+ }>, z.ZodObject<{
949
+ type: z.ZodLiteral<"invocation_result">;
950
+ invocationId: z.ZodString;
951
+ revision: z.ZodNumber;
952
+ }, "strict", z.ZodTypeAny, {
953
+ type?: "invocation_result";
954
+ revision?: number;
955
+ invocationId?: string;
956
+ }, {
957
+ type?: "invocation_result";
958
+ revision?: number;
959
+ invocationId?: string;
960
+ }>, z.ZodObject<{
961
+ type: z.ZodLiteral<"workspace_snapshot">;
962
+ snapshotId: z.ZodString;
963
+ digest: z.ZodString;
964
+ }, "strict", z.ZodTypeAny, {
965
+ type?: "workspace_snapshot";
966
+ digest?: string;
967
+ snapshotId?: string;
968
+ }, {
969
+ type?: "workspace_snapshot";
970
+ digest?: string;
971
+ snapshotId?: string;
972
+ }>]>, "many">;
973
+ }, "strict", z.ZodTypeAny, {
974
+ type?: "review";
975
+ implementationExecutionId?: string;
976
+ implementationInvocationId?: string;
977
+ specificationDigest?: string;
978
+ evidence?: ({
979
+ type?: "artifact";
980
+ versionId?: string;
981
+ artifactId?: string;
982
+ } | {
983
+ type?: "invocation_result";
984
+ revision?: number;
985
+ invocationId?: string;
986
+ } | {
987
+ type?: "workspace_snapshot";
988
+ digest?: string;
989
+ snapshotId?: string;
990
+ })[];
991
+ }, {
992
+ type?: "review";
993
+ implementationExecutionId?: string;
994
+ implementationInvocationId?: string;
995
+ specificationDigest?: string;
996
+ evidence?: ({
997
+ type?: "artifact";
998
+ versionId?: string;
999
+ artifactId?: string;
1000
+ } | {
1001
+ type?: "invocation_result";
1002
+ revision?: number;
1003
+ invocationId?: string;
1004
+ } | {
1005
+ type?: "workspace_snapshot";
1006
+ digest?: string;
1007
+ snapshotId?: string;
1008
+ })[];
1009
+ }>]>>;
1010
+ delivery: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1011
+ mode: z.ZodLiteral<"none">;
1012
+ }, "strict", z.ZodTypeAny, {
1013
+ mode?: "none";
1014
+ }, {
1015
+ mode?: "none";
1016
+ }>, z.ZodObject<{
1017
+ mode: z.ZodLiteral<"files">;
1018
+ paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
1019
+ }, "strict", z.ZodTypeAny, {
1020
+ mode?: "files";
1021
+ paths?: string[];
1022
+ }, {
1023
+ mode?: "files";
1024
+ paths?: string[];
1025
+ }>, z.ZodObject<{
1026
+ mode: z.ZodLiteral<"archive">;
1027
+ paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
1028
+ }, "strict", z.ZodTypeAny, {
1029
+ mode?: "archive";
1030
+ paths?: string[];
1031
+ }, {
1032
+ mode?: "archive";
1033
+ paths?: string[];
1034
+ }>]>>;
1035
+ instructions: z.ZodDefault<z.ZodString>;
1036
+ }, "requestId">, "strict", z.ZodTypeAny, {
1037
+ target?: {
1038
+ type?: "group_member";
1039
+ participantId?: string;
1040
+ };
1041
+ instructions?: string;
1042
+ taskId?: string;
1043
+ purpose?: {
1044
+ type?: "implementation";
1045
+ } | {
1046
+ type?: "review";
1047
+ implementationExecutionId?: string;
1048
+ implementationInvocationId?: string;
1049
+ specificationDigest?: string;
1050
+ evidence?: ({
1051
+ type?: "artifact";
1052
+ versionId?: string;
1053
+ artifactId?: string;
1054
+ } | {
1055
+ type?: "invocation_result";
1056
+ revision?: number;
1057
+ invocationId?: string;
1058
+ } | {
1059
+ type?: "workspace_snapshot";
1060
+ digest?: string;
1061
+ snapshotId?: string;
1062
+ })[];
1063
+ };
1064
+ expectedRevision?: number;
1065
+ bindingId?: string;
1066
+ delivery?: {
1067
+ mode?: "none";
1068
+ } | {
1069
+ mode?: "files";
1070
+ paths?: string[];
1071
+ } | {
1072
+ mode?: "archive";
1073
+ paths?: string[];
1074
+ };
1075
+ }, {
1076
+ target?: {
1077
+ type?: "group_member";
1078
+ participantId?: string;
1079
+ };
1080
+ instructions?: string;
1081
+ taskId?: string;
1082
+ purpose?: {
1083
+ type?: "implementation";
1084
+ } | {
1085
+ type?: "review";
1086
+ implementationExecutionId?: string;
1087
+ implementationInvocationId?: string;
1088
+ specificationDigest?: string;
1089
+ evidence?: ({
1090
+ type?: "artifact";
1091
+ versionId?: string;
1092
+ artifactId?: string;
1093
+ } | {
1094
+ type?: "invocation_result";
1095
+ revision?: number;
1096
+ invocationId?: string;
1097
+ } | {
1098
+ type?: "workspace_snapshot";
1099
+ digest?: string;
1100
+ snapshotId?: string;
1101
+ })[];
1102
+ };
1103
+ expectedRevision?: number;
1104
+ bindingId?: string;
1105
+ delivery?: {
1106
+ mode?: "none";
1107
+ } | {
1108
+ mode?: "files";
1109
+ paths?: string[];
1110
+ } | {
1111
+ mode?: "archive";
1112
+ paths?: string[];
1113
+ };
1114
+ }>, {
1115
+ target?: {
1116
+ type?: "group_member";
1117
+ participantId?: string;
1118
+ };
1119
+ instructions?: string;
1120
+ taskId?: string;
1121
+ purpose?: {
1122
+ type?: "implementation";
1123
+ } | {
1124
+ type?: "review";
1125
+ implementationExecutionId?: string;
1126
+ implementationInvocationId?: string;
1127
+ specificationDigest?: string;
1128
+ evidence?: ({
1129
+ type?: "artifact";
1130
+ versionId?: string;
1131
+ artifactId?: string;
1132
+ } | {
1133
+ type?: "invocation_result";
1134
+ revision?: number;
1135
+ invocationId?: string;
1136
+ } | {
1137
+ type?: "workspace_snapshot";
1138
+ digest?: string;
1139
+ snapshotId?: string;
1140
+ })[];
1141
+ };
1142
+ expectedRevision?: number;
1143
+ bindingId?: string;
1144
+ delivery?: {
1145
+ mode?: "none";
1146
+ } | {
1147
+ mode?: "files";
1148
+ paths?: string[];
1149
+ } | {
1150
+ mode?: "archive";
1151
+ paths?: string[];
1152
+ };
1153
+ }, {
1154
+ target?: {
1155
+ type?: "group_member";
1156
+ participantId?: string;
1157
+ };
778
1158
  instructions?: string;
779
1159
  taskId?: string;
780
1160
  purpose?: {
@@ -1,4 +1,4 @@
1
- import type { TCopilotModel } from './copilot-model.model';
1
+ import type { ModelSelectionMetadata, TCopilotModel } from './copilot-model.model';
2
2
  import type { VoiceTaskStatus } from './realtime-voice.transport';
3
3
  /** Realtime is a separate model capability, not the Assistant's reasoning model. */
4
4
  export interface RealtimeVoiceFeature {
@@ -18,7 +18,7 @@ export interface RealtimeModelMetadata {
18
18
  defaultVoice: string;
19
19
  notification: 'text' | 'next-turn';
20
20
  }
21
- export interface RealtimeModelOption extends RealtimeModelMetadata {
21
+ export interface RealtimeModelOption extends RealtimeModelMetadata, ModelSelectionMetadata {
22
22
  id: string;
23
23
  label: string;
24
24
  copilotModel: TCopilotModel;
@@ -1,6 +1,6 @@
1
1
  import { IBasePerTenantEntityModel } from '../base-entity.model';
2
2
  import { IconDefinition, TAvatar } from '../types';
3
- import { TCopilotModel } from './copilot-model.model';
3
+ import { ModelSelectionMetadata, TCopilotModel } from './copilot-model.model';
4
4
  import { ModelFeature } from './ai-model.model';
5
5
  import { MCPServerType, TMCPServer } from './xpert-tool-mcp.model';
6
6
  import { XpertTypeEnum } from './xpert.model';
@@ -125,23 +125,12 @@ export interface AssistantCapabilityDeclaration {
125
125
  required?: boolean;
126
126
  }
127
127
  /** Public model metadata for capability setup; never includes provider credentials or model configuration. */
128
- export interface XpertTemplateModelOption {
128
+ export interface XpertTemplateModelOption extends ModelSelectionMetadata {
129
129
  /** Opaque selection key; clients must submit it unchanged rather than reconstructing it. */
130
130
  id: string;
131
131
  label: string;
132
132
  /** Model reference for installation; setup responses only project copilotId, model and modelType. */
133
133
  copilotModel: TCopilotModel;
134
- /** Display grouping by provider, not a credential scope. Optional for older setup endpoints. */
135
- provider?: {
136
- id: string;
137
- label: string;
138
- };
139
- /** Display name that distinguishes multiple configured connections for the same provider. */
140
- connectionName?: string;
141
- /** Declared model features for badges/recommendations; installation still validates compatibility. */
142
- features?: ModelFeature[];
143
- /** Context capacity in tokens, not usage; omitted when the provider does not declare it. */
144
- contextWindow?: number;
145
134
  }
146
135
  export interface XpertTemplateSetup {
147
136
  /** ID of a compatible organization default in `models`; absent if none qualifies. */
package/src/index.d.ts CHANGED
@@ -63,7 +63,7 @@ export * from './plain-object.model';
63
63
  export * from './plugin';
64
64
  export * from './view-extension';
65
65
  export * from './runtime-control';
66
- export type { RuntimeResourceKind, RuntimeResourceStatus, RuntimeResourceReference, RuntimeResourcesSelection, AgentPluginDiagnostic, RuntimeResourceCatalogItem, RuntimeResourceView, RuntimeResourceCatalog, AgentPluginXpertExtension, AgentPluginConnectorAuth, AgentPluginConnectorBinding, RuntimeResourceDefinition, RuntimeResourceBindingInput, WorkspaceAgentPlugin, WorkspaceAgentPluginOptions, WorkspaceAgentPluginAddInput, WorkspaceAgentPluginAddResult } from './agent-plugin';
66
+ export type { RuntimeResourceKind, RuntimeResourceStatus, RuntimeResourceReference, RuntimeResourcesSelection, AgentPluginDiagnostic, RuntimeResourceCatalogItem, RuntimeResourceView, RuntimeResourceCatalog, AgentPluginXpertExtension, AgentPluginConnectorAuth, AgentPluginConnectorBinding, RuntimeResourceDefinition, RuntimeResourceBindingInput, WorkspaceAgentPlugin, WorkspaceAgentPluginOptions, WorkspaceAgentPluginAddInput, WorkspaceAgentPluginAddResult, InstalledAgentPlugin } from './agent-plugin';
67
67
  export * from './desktop-shell.model';
68
68
  export * from './ai/agent-output-delivery.model';
69
69
  export * from './ai/execution-activity.model';
@@ -1,4 +1,5 @@
1
1
  import type { AiModelTypeEnum } from './agent';
2
+ import type { ModelSelectionMetadata } from './ai/copilot-model.model';
2
3
  import type { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
3
4
  import type { PluginMarketplaceCategory } from './plugin';
4
5
  import type { IconDefinition, I18nObject } from './types';
@@ -149,7 +150,7 @@ export interface IPluginApplicationInstallation extends IBasePerTenantAndOrganiz
149
150
  errorMessage?: string | null;
150
151
  }
151
152
  /** Host-authorized model choice returned by application initialization preflight. */
152
- export interface PluginApplicationModelOption {
153
+ export interface PluginApplicationModelOption extends ModelSelectionMetadata {
153
154
  id: string;
154
155
  copilotId: string;
155
156
  model: string;
@@ -1,4 +1,10 @@
1
1
  export declare const RUNTIME_RESTART_CONFIRMATION: "RESTART";
2
+ /** Terminal transport interruption; it does not indicate that the background task completed or failed. */
3
+ export declare const RUNTIME_STREAM_INTERRUPTED_EVENT: "runtime-interrupted";
4
+ export interface IRuntimeStreamInterruption {
5
+ code: 'RUNTIME_RESTARTING';
6
+ message: string;
7
+ }
2
8
  export type RuntimeRestartMode = 'self-signal' | 'rolling-self-signal';
3
9
  export type RuntimeRestartStatus = 'in_progress' | 'completed' | 'failed';
4
10
  export interface IRuntimePluginRequirement {
@@ -3,6 +3,11 @@ import { _TFile } from './types';
3
3
  export type TFile = _TFile & {
4
4
  fileType?: string;
5
5
  contents?: string;
6
+ /** Authority resolved by the file service for this request, never inferred from MIME or identity. */
7
+ capabilities?: {
8
+ canRead: boolean;
9
+ canWrite: boolean;
10
+ };
6
11
  previewText?: string;
7
12
  description?: string;
8
13
  size?: number;