@covia/covia-sdk 1.24.2 → 1.25.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/dist/index.d.mts CHANGED
@@ -1087,12 +1087,16 @@ declare class A2AManager {
1087
1087
  *
1088
1088
  * @param agent Imported agent reference — `w/a2a/agents/<name>` or its
1089
1089
  * immutable `did:.../a/<hash>` id.
1090
- * @param message An A2A Message: `{ role, parts, messageId? }`.
1090
+ * @param message An A2A Message: `{ role, parts, messageId?, contextId? }`.
1091
1091
  * @param options.taskId Continue an existing remote Task instead of
1092
- * starting a new one.
1092
+ * starting a new one. Only a non-terminal Task can be continued — a
1093
+ * finished Task is immutable and the remote agent rejects the message.
1094
+ * @param options.contextId Start a new Task in an existing conversation,
1095
+ * e.g. to follow up once a Task has finished. Sets `message.contextId`.
1093
1096
  */
1094
1097
  send(agent: string, message: A2AMessage, options?: {
1095
1098
  taskId?: string;
1099
+ contextId?: string;
1096
1100
  }): Promise<Job>;
1097
1101
  }
1098
1102
 
@@ -2505,6 +2509,8 @@ interface A2AMessage {
2505
2509
  role: string;
2506
2510
  parts: A2APart[];
2507
2511
  messageId?: string;
2512
+ /** The conversation this message belongs to — a remote Task's `contextId`. */
2513
+ contextId?: string;
2508
2514
  }
2509
2515
  /** The remote A2A Task snapshot a send mirrors onto the local Job's output —
2510
2516
  * final when the Job reaches a terminal state, a live snapshot while paused. */
@@ -2837,4 +2843,5 @@ declare function relayDelegation(privateKey: Uint8Array, venueDID: string, lifet
2837
2843
  /** {@link relayDelegation} through an {@link Ed25519Signer}. */
2838
2844
  declare function relayDelegationWith(signer: Ed25519Signer, venueDID: string, lifetimeSeconds: number, caps?: UCANCapability[]): Promise<string>;
2839
2845
 
2840
- export { type A2AAuthRef, type A2AImportAgentInput, type A2AImportAgentResult, A2AManager, type A2AMessage, type A2APart, type A2ATask, type AdapterInfo, AdapterManager, type AdaptersResult, Agent, type AgentAwaiting, type AgentCancelTaskInput, type AgentCard, type AgentChatInput, type AgentChatResult, type AgentCompactedSegment, type AgentCompleteTaskResult, type AgentContextInput, type AgentCreateInput, type AgentCreateResult, type AgentCycleEndEvent, type AgentCycleStartEvent, type AgentDeleteInput, type AgentDeleteResult, type AgentEvent, type AgentEventEnvelope, type AgentFailTaskResult, type AgentForkInput, type AgentForkResult, type AgentInferenceEndEvent, type AgentInferenceStartEvent, type AgentInfoResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentRenameSessionResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, type AgentRunEndEvent, type AgentRunStartEvent, type AgentSession, type AgentSessionListOptions, type AgentSessionMessage, type AgentSessionMetadata, AgentSessionNotFoundError, type AgentSessionPage, type AgentSessionRole, AgentStatus, type AgentStatusEvent, type AgentSuspendResult, type AgentToolResultEvent, type AgentToolStartEvent, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListItem, type AssetListOptions, AssetManager, type AssetMetadata, type AssetMetadataStore, AssetNotFoundError, type AssetPinResult, type AssetSummary, Auth, type AuthenticationKeyEntry, type AuthenticationKeysMap, type AuthenticationKeysResult, type AuthenticatorRevokeResult, BasicAuth, BearerAuth, type CatalogListOptions, ChatSession, type ConnectionAttempt, type ContentDetails, type ContentHashResult, CoviaConnectionError, type CoviaConnectionErrorOptions, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, type DIDURL, type DLFSDrivesResult, type DLFSEntry, type DLFSListResult, DLFSManager, DataAsset, Ed25519Auth, type Ed25519Signer, type ExecutionScope, type ExpandedAssetList, type FunctionInfo, type FunctionsResult, Grid, GridError, type GroupCount, type InvokeOptions, type InvokePayload, Job, JobFailedError, type JobHistoryOptions, type JobHistoryPage, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPContent, type MCPDiscovery, MCPError, MCPManager, type MCPTool, type MCPToolPage, type MCPToolResult, type MemoryChange, type MemoryEntry, MemoryManager, type MyAssetList, Namespace, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, type OperationRunner, type PublicCaps, RateLimitError, RunStatus, type SSEEvent, ScopedWorkspace, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type Skill, type SkillFacet, SkillManager, type SkillMetadata, type StatsData, type StatusAccess, type StatusData, type UCANAttenuation, type UCANCapability, type UCANIssueInput, type UCANIssueResult, UCANManager, type UCANVerifyResult, UnsupportedVenueFeatureError, type UserInfo, type UserListResult, UserManager, type UserSummary, VENUE_RELAY, Venue, type VenueConstructor, type VenueData, VenueIdentityChangedError, type VenueInterface, type VenueOptions, type WorkspaceAggregateResult, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceCopyResult, type WorkspaceCountResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceFieldValue, type WorkspaceInspectInput, type WorkspaceInspectResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceProjectedList, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, assetHash, createSSEEvent, createUCANJWT, createUCANJWTWith, decodePublicKey, didFor, didFromPublicKey, didMethod, didUrl, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, generateNonExtractableKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getAssetMetadataStore, getParsedAssetId, grant, grantWith, hexToPrivateKey, identityToken, importNonExtractableKey, isDid, isJobComplete, isJobFinished, isJobPaused, isWebCryptoEd25519Supported, logger, parseDidUrl, parseRetryAfterMs, parseSSEStream, privateKeyToHex, rawKeySigner, relayDelegation, relayDelegationWith, retryDelayMs, setAssetMetadataStore, venueBaseUrlCandidates, webCryptoSigner };
2846
+ export { A2AManager, AdapterManager, Agent, AgentManager, AgentSessionNotFoundError, AgentStatus, Asset, AssetManager, AssetNotFoundError, Auth, BasicAuth, BearerAuth, ChatSession, CoviaConnectionError, CoviaError, CoviaTimeoutError, CredentialsHTTP, DLFSManager, DataAsset, Ed25519Auth, Grid, GridError, Job, JobFailedError, JobManager, JobNotFoundError, JobStatus, KeyPairAuth, MCPError, MCPManager, MemoryManager, Namespace, NoAuth, NotFoundError, Operation, OperationManager, RateLimitError, RunStatus, ScopedWorkspace, SecretManager, SkillManager, UCANManager, UnsupportedVenueFeatureError, UserManager, VENUE_RELAY, Venue, VenueIdentityChangedError, WorkspaceManager, assetHash, createSSEEvent, createUCANJWT, createUCANJWTWith, decodePublicKey, didFor, didFromPublicKey, didMethod, didUrl, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, generateNonExtractableKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getAssetMetadataStore, getParsedAssetId, grant, grantWith, hexToPrivateKey, identityToken, importNonExtractableKey, isDid, isJobComplete, isJobFinished, isJobPaused, isWebCryptoEd25519Supported, logger, parseDidUrl, parseRetryAfterMs, parseSSEStream, privateKeyToHex, rawKeySigner, relayDelegation, relayDelegationWith, retryDelayMs, setAssetMetadataStore, venueBaseUrlCandidates, webCryptoSigner };
2847
+ export type { A2AAuthRef, A2AImportAgentInput, A2AImportAgentResult, A2AMessage, A2APart, A2ATask, AdapterInfo, AdaptersResult, AgentAwaiting, AgentCancelTaskInput, AgentCard, AgentChatInput, AgentChatResult, AgentCompactedSegment, AgentCompleteTaskResult, AgentContextInput, AgentCreateInput, AgentCreateResult, AgentCycleEndEvent, AgentCycleStartEvent, AgentDeleteInput, AgentDeleteResult, AgentEvent, AgentEventEnvelope, AgentFailTaskResult, AgentForkInput, AgentForkResult, AgentInferenceEndEvent, AgentInferenceStartEvent, AgentInfoResult, AgentListInput, AgentListResult, AgentMessageInput, AgentMessageResult, AgentRenameSessionResult, AgentRequestInput, AgentRequestResult, AgentResumeInput, AgentRunEndEvent, AgentRunStartEvent, AgentSession, AgentSessionListOptions, AgentSessionMessage, AgentSessionMetadata, AgentSessionPage, AgentSessionRole, AgentStatusEvent, AgentSuspendResult, AgentToolResultEvent, AgentToolStartEvent, AgentTriggerInput, AgentTriggerResult, AgentUpdateInput, AssetID, AssetList, AssetListItem, AssetListOptions, AssetMetadata, AssetMetadataStore, AssetPinResult, AssetSummary, AuthenticationKeyEntry, AuthenticationKeysMap, AuthenticationKeysResult, AuthenticatorRevokeResult, CatalogListOptions, ConnectionAttempt, ContentDetails, ContentHashResult, CoviaConnectionErrorOptions, Credentials, DIDDocument, DIDURL, DLFSDrivesResult, DLFSEntry, DLFSListResult, Ed25519Signer, ExecutionScope, ExpandedAssetList, FunctionInfo, FunctionsResult, GroupCount, InvokeOptions, InvokePayload, JobHistoryOptions, JobHistoryPage, JobMetadata, MCPContent, MCPDiscovery, MCPTool, MCPToolPage, MCPToolResult, MemoryChange, MemoryEntry, MyAssetList, OperationDetails, OperationInfo, OperationPayload, OperationRunner, PublicCaps, SSEEvent, SecretExtractInput, SecretExtractResult, SecretSetInput, SecretSetResult, Skill, SkillFacet, SkillMetadata, StatsData, StatusAccess, StatusData, UCANAttenuation, UCANCapability, UCANIssueInput, UCANIssueResult, UCANVerifyResult, UserInfo, UserListResult, UserSummary, VenueConstructor, VenueData, VenueInterface, VenueOptions, WorkspaceAggregateResult, WorkspaceAppendInput, WorkspaceAppendResult, WorkspaceCopyResult, WorkspaceCountResult, WorkspaceDeleteInput, WorkspaceDeleteResult, WorkspaceFieldValue, WorkspaceInspectInput, WorkspaceInspectResult, WorkspaceListInput, WorkspaceListResult, WorkspaceProjectedList, WorkspaceReadInput, WorkspaceReadResult, WorkspaceSliceInput, WorkspaceSliceResult, WorkspaceWriteInput, WorkspaceWriteResult };
package/dist/index.d.ts CHANGED
@@ -1087,12 +1087,16 @@ declare class A2AManager {
1087
1087
  *
1088
1088
  * @param agent Imported agent reference — `w/a2a/agents/<name>` or its
1089
1089
  * immutable `did:.../a/<hash>` id.
1090
- * @param message An A2A Message: `{ role, parts, messageId? }`.
1090
+ * @param message An A2A Message: `{ role, parts, messageId?, contextId? }`.
1091
1091
  * @param options.taskId Continue an existing remote Task instead of
1092
- * starting a new one.
1092
+ * starting a new one. Only a non-terminal Task can be continued — a
1093
+ * finished Task is immutable and the remote agent rejects the message.
1094
+ * @param options.contextId Start a new Task in an existing conversation,
1095
+ * e.g. to follow up once a Task has finished. Sets `message.contextId`.
1093
1096
  */
1094
1097
  send(agent: string, message: A2AMessage, options?: {
1095
1098
  taskId?: string;
1099
+ contextId?: string;
1096
1100
  }): Promise<Job>;
1097
1101
  }
1098
1102
 
@@ -2505,6 +2509,8 @@ interface A2AMessage {
2505
2509
  role: string;
2506
2510
  parts: A2APart[];
2507
2511
  messageId?: string;
2512
+ /** The conversation this message belongs to — a remote Task's `contextId`. */
2513
+ contextId?: string;
2508
2514
  }
2509
2515
  /** The remote A2A Task snapshot a send mirrors onto the local Job's output —
2510
2516
  * final when the Job reaches a terminal state, a live snapshot while paused. */
@@ -2837,4 +2843,5 @@ declare function relayDelegation(privateKey: Uint8Array, venueDID: string, lifet
2837
2843
  /** {@link relayDelegation} through an {@link Ed25519Signer}. */
2838
2844
  declare function relayDelegationWith(signer: Ed25519Signer, venueDID: string, lifetimeSeconds: number, caps?: UCANCapability[]): Promise<string>;
2839
2845
 
2840
- export { type A2AAuthRef, type A2AImportAgentInput, type A2AImportAgentResult, A2AManager, type A2AMessage, type A2APart, type A2ATask, type AdapterInfo, AdapterManager, type AdaptersResult, Agent, type AgentAwaiting, type AgentCancelTaskInput, type AgentCard, type AgentChatInput, type AgentChatResult, type AgentCompactedSegment, type AgentCompleteTaskResult, type AgentContextInput, type AgentCreateInput, type AgentCreateResult, type AgentCycleEndEvent, type AgentCycleStartEvent, type AgentDeleteInput, type AgentDeleteResult, type AgentEvent, type AgentEventEnvelope, type AgentFailTaskResult, type AgentForkInput, type AgentForkResult, type AgentInferenceEndEvent, type AgentInferenceStartEvent, type AgentInfoResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentRenameSessionResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, type AgentRunEndEvent, type AgentRunStartEvent, type AgentSession, type AgentSessionListOptions, type AgentSessionMessage, type AgentSessionMetadata, AgentSessionNotFoundError, type AgentSessionPage, type AgentSessionRole, AgentStatus, type AgentStatusEvent, type AgentSuspendResult, type AgentToolResultEvent, type AgentToolStartEvent, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListItem, type AssetListOptions, AssetManager, type AssetMetadata, type AssetMetadataStore, AssetNotFoundError, type AssetPinResult, type AssetSummary, Auth, type AuthenticationKeyEntry, type AuthenticationKeysMap, type AuthenticationKeysResult, type AuthenticatorRevokeResult, BasicAuth, BearerAuth, type CatalogListOptions, ChatSession, type ConnectionAttempt, type ContentDetails, type ContentHashResult, CoviaConnectionError, type CoviaConnectionErrorOptions, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, type DIDURL, type DLFSDrivesResult, type DLFSEntry, type DLFSListResult, DLFSManager, DataAsset, Ed25519Auth, type Ed25519Signer, type ExecutionScope, type ExpandedAssetList, type FunctionInfo, type FunctionsResult, Grid, GridError, type GroupCount, type InvokeOptions, type InvokePayload, Job, JobFailedError, type JobHistoryOptions, type JobHistoryPage, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPContent, type MCPDiscovery, MCPError, MCPManager, type MCPTool, type MCPToolPage, type MCPToolResult, type MemoryChange, type MemoryEntry, MemoryManager, type MyAssetList, Namespace, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, type OperationRunner, type PublicCaps, RateLimitError, RunStatus, type SSEEvent, ScopedWorkspace, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type Skill, type SkillFacet, SkillManager, type SkillMetadata, type StatsData, type StatusAccess, type StatusData, type UCANAttenuation, type UCANCapability, type UCANIssueInput, type UCANIssueResult, UCANManager, type UCANVerifyResult, UnsupportedVenueFeatureError, type UserInfo, type UserListResult, UserManager, type UserSummary, VENUE_RELAY, Venue, type VenueConstructor, type VenueData, VenueIdentityChangedError, type VenueInterface, type VenueOptions, type WorkspaceAggregateResult, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceCopyResult, type WorkspaceCountResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceFieldValue, type WorkspaceInspectInput, type WorkspaceInspectResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceProjectedList, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, assetHash, createSSEEvent, createUCANJWT, createUCANJWTWith, decodePublicKey, didFor, didFromPublicKey, didMethod, didUrl, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, generateNonExtractableKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getAssetMetadataStore, getParsedAssetId, grant, grantWith, hexToPrivateKey, identityToken, importNonExtractableKey, isDid, isJobComplete, isJobFinished, isJobPaused, isWebCryptoEd25519Supported, logger, parseDidUrl, parseRetryAfterMs, parseSSEStream, privateKeyToHex, rawKeySigner, relayDelegation, relayDelegationWith, retryDelayMs, setAssetMetadataStore, venueBaseUrlCandidates, webCryptoSigner };
2846
+ export { A2AManager, AdapterManager, Agent, AgentManager, AgentSessionNotFoundError, AgentStatus, Asset, AssetManager, AssetNotFoundError, Auth, BasicAuth, BearerAuth, ChatSession, CoviaConnectionError, CoviaError, CoviaTimeoutError, CredentialsHTTP, DLFSManager, DataAsset, Ed25519Auth, Grid, GridError, Job, JobFailedError, JobManager, JobNotFoundError, JobStatus, KeyPairAuth, MCPError, MCPManager, MemoryManager, Namespace, NoAuth, NotFoundError, Operation, OperationManager, RateLimitError, RunStatus, ScopedWorkspace, SecretManager, SkillManager, UCANManager, UnsupportedVenueFeatureError, UserManager, VENUE_RELAY, Venue, VenueIdentityChangedError, WorkspaceManager, assetHash, createSSEEvent, createUCANJWT, createUCANJWTWith, decodePublicKey, didFor, didFromPublicKey, didMethod, didUrl, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, generateNonExtractableKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getAssetMetadataStore, getParsedAssetId, grant, grantWith, hexToPrivateKey, identityToken, importNonExtractableKey, isDid, isJobComplete, isJobFinished, isJobPaused, isWebCryptoEd25519Supported, logger, parseDidUrl, parseRetryAfterMs, parseSSEStream, privateKeyToHex, rawKeySigner, relayDelegation, relayDelegationWith, retryDelayMs, setAssetMetadataStore, venueBaseUrlCandidates, webCryptoSigner };
2847
+ export type { A2AAuthRef, A2AImportAgentInput, A2AImportAgentResult, A2AMessage, A2APart, A2ATask, AdapterInfo, AdaptersResult, AgentAwaiting, AgentCancelTaskInput, AgentCard, AgentChatInput, AgentChatResult, AgentCompactedSegment, AgentCompleteTaskResult, AgentContextInput, AgentCreateInput, AgentCreateResult, AgentCycleEndEvent, AgentCycleStartEvent, AgentDeleteInput, AgentDeleteResult, AgentEvent, AgentEventEnvelope, AgentFailTaskResult, AgentForkInput, AgentForkResult, AgentInferenceEndEvent, AgentInferenceStartEvent, AgentInfoResult, AgentListInput, AgentListResult, AgentMessageInput, AgentMessageResult, AgentRenameSessionResult, AgentRequestInput, AgentRequestResult, AgentResumeInput, AgentRunEndEvent, AgentRunStartEvent, AgentSession, AgentSessionListOptions, AgentSessionMessage, AgentSessionMetadata, AgentSessionPage, AgentSessionRole, AgentStatusEvent, AgentSuspendResult, AgentToolResultEvent, AgentToolStartEvent, AgentTriggerInput, AgentTriggerResult, AgentUpdateInput, AssetID, AssetList, AssetListItem, AssetListOptions, AssetMetadata, AssetMetadataStore, AssetPinResult, AssetSummary, AuthenticationKeyEntry, AuthenticationKeysMap, AuthenticationKeysResult, AuthenticatorRevokeResult, CatalogListOptions, ConnectionAttempt, ContentDetails, ContentHashResult, CoviaConnectionErrorOptions, Credentials, DIDDocument, DIDURL, DLFSDrivesResult, DLFSEntry, DLFSListResult, Ed25519Signer, ExecutionScope, ExpandedAssetList, FunctionInfo, FunctionsResult, GroupCount, InvokeOptions, InvokePayload, JobHistoryOptions, JobHistoryPage, JobMetadata, MCPContent, MCPDiscovery, MCPTool, MCPToolPage, MCPToolResult, MemoryChange, MemoryEntry, MyAssetList, OperationDetails, OperationInfo, OperationPayload, OperationRunner, PublicCaps, SSEEvent, SecretExtractInput, SecretExtractResult, SecretSetInput, SecretSetResult, Skill, SkillFacet, SkillMetadata, StatsData, StatusAccess, StatusData, UCANAttenuation, UCANCapability, UCANIssueInput, UCANIssueResult, UCANVerifyResult, UserInfo, UserListResult, UserSummary, VenueConstructor, VenueData, VenueInterface, VenueOptions, WorkspaceAggregateResult, WorkspaceAppendInput, WorkspaceAppendResult, WorkspaceCopyResult, WorkspaceCountResult, WorkspaceDeleteInput, WorkspaceDeleteResult, WorkspaceFieldValue, WorkspaceInspectInput, WorkspaceInspectResult, WorkspaceListInput, WorkspaceListResult, WorkspaceProjectedList, WorkspaceReadInput, WorkspaceReadResult, WorkspaceSliceInput, WorkspaceSliceResult, WorkspaceWriteInput, WorkspaceWriteResult };
package/dist/index.js CHANGED
@@ -3518,14 +3518,17 @@ var A2AManager = class {
3518
3518
  *
3519
3519
  * @param agent Imported agent reference — `w/a2a/agents/<name>` or its
3520
3520
  * immutable `did:.../a/<hash>` id.
3521
- * @param message An A2A Message: `{ role, parts, messageId? }`.
3521
+ * @param message An A2A Message: `{ role, parts, messageId?, contextId? }`.
3522
3522
  * @param options.taskId Continue an existing remote Task instead of
3523
- * starting a new one.
3523
+ * starting a new one. Only a non-terminal Task can be continued — a
3524
+ * finished Task is immutable and the remote agent rejects the message.
3525
+ * @param options.contextId Start a new Task in an existing conversation,
3526
+ * e.g. to follow up once a Task has finished. Sets `message.contextId`.
3524
3527
  */
3525
3528
  async send(agent, message, options) {
3526
3529
  return this.venue.operations.invoke(SEND_OP, {
3527
3530
  agent,
3528
- message,
3531
+ message: options?.contextId !== void 0 ? { ...message, contextId: options.contextId } : message,
3529
3532
  ...options?.taskId !== void 0 && { taskId: options.taskId }
3530
3533
  });
3531
3534
  }
package/dist/index.mjs CHANGED
@@ -3516,14 +3516,17 @@ var A2AManager = class {
3516
3516
  *
3517
3517
  * @param agent Imported agent reference — `w/a2a/agents/<name>` or its
3518
3518
  * immutable `did:.../a/<hash>` id.
3519
- * @param message An A2A Message: `{ role, parts, messageId? }`.
3519
+ * @param message An A2A Message: `{ role, parts, messageId?, contextId? }`.
3520
3520
  * @param options.taskId Continue an existing remote Task instead of
3521
- * starting a new one.
3521
+ * starting a new one. Only a non-terminal Task can be continued — a
3522
+ * finished Task is immutable and the remote agent rejects the message.
3523
+ * @param options.contextId Start a new Task in an existing conversation,
3524
+ * e.g. to follow up once a Task has finished. Sets `message.contextId`.
3522
3525
  */
3523
3526
  async send(agent, message, options) {
3524
3527
  return this.venue.operations.invoke(SEND_OP, {
3525
3528
  agent,
3526
- message,
3529
+ message: options?.contextId !== void 0 ? { ...message, contextId: options.contextId } : message,
3527
3530
  ...options?.taskId !== void 0 && { taskId: options.taskId }
3528
3531
  });
3529
3532
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@covia/covia-sdk",
3
- "version": "1.24.2",
3
+ "version": "1.25.0",
4
4
  "description": "Typescript library for covia-ai",
5
5
  "packageManager": "pnpm@11.9.0",
6
6
  "main": "./dist/index.js",
@@ -61,7 +61,7 @@
61
61
  "eslint": "^10.6.0",
62
62
  "jest": "^30.4.2",
63
63
  "ts-jest": "^29.4.11",
64
- "tsup": "^8.0.0",
64
+ "tsup": "^9.0.0",
65
65
  "typescript": "^6.0.0",
66
66
  "typescript-eslint": "^8.62.1"
67
67
  },