@covia/covia-sdk 1.24.1 → 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/README.md +4 -0
- package/dist/index.d.mts +17 -12
- package/dist/index.d.ts +17 -12
- package/dist/index.js +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -408,6 +408,10 @@ await mina.delete();
|
|
|
408
408
|
const clone = await mina.fork("Mina-v2", { includeTimeline: true });
|
|
409
409
|
```
|
|
410
410
|
|
|
411
|
+
Create and fork require unused names. Use update to preserve an existing agent
|
|
412
|
+
and its history. Deletion normally returns `status: "TERMINATED"`; physical
|
|
413
|
+
removal (`remove: true`) returns `removed: true` without a status.
|
|
414
|
+
|
|
411
415
|
#### Agent Instance
|
|
412
416
|
|
|
413
417
|
| Method | Returns | Description |
|
package/dist/index.d.mts
CHANGED
|
@@ -46,7 +46,6 @@ declare class Agent {
|
|
|
46
46
|
fork(agentId: string, options?: {
|
|
47
47
|
config?: Record<string, unknown>;
|
|
48
48
|
includeTimeline?: boolean;
|
|
49
|
-
overwrite?: boolean;
|
|
50
49
|
}): Promise<Agent>;
|
|
51
50
|
context(task?: unknown): Promise<string>;
|
|
52
51
|
delete(remove?: boolean): Promise<AgentDeleteResult>;
|
|
@@ -1088,12 +1087,16 @@ declare class A2AManager {
|
|
|
1088
1087
|
*
|
|
1089
1088
|
* @param agent Imported agent reference — `w/a2a/agents/<name>` or its
|
|
1090
1089
|
* immutable `did:.../a/<hash>` id.
|
|
1091
|
-
* @param message An A2A Message: `{ role, parts, messageId? }`.
|
|
1090
|
+
* @param message An A2A Message: `{ role, parts, messageId?, contextId? }`.
|
|
1092
1091
|
* @param options.taskId Continue an existing remote Task instead of
|
|
1093
|
-
* 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`.
|
|
1094
1096
|
*/
|
|
1095
1097
|
send(agent: string, message: A2AMessage, options?: {
|
|
1096
1098
|
taskId?: string;
|
|
1099
|
+
contextId?: string;
|
|
1097
1100
|
}): Promise<Job>;
|
|
1098
1101
|
}
|
|
1099
1102
|
|
|
@@ -1722,19 +1725,16 @@ declare enum AgentStatus {
|
|
|
1722
1725
|
SUSPENDED = "SUSPENDED",
|
|
1723
1726
|
TERMINATED = "TERMINATED"
|
|
1724
1727
|
}
|
|
1728
|
+
/** Creates a new name only. Use update to preserve an existing agent and its history. */
|
|
1725
1729
|
interface AgentCreateInput {
|
|
1726
1730
|
agentId: string;
|
|
1727
1731
|
config?: Record<string, any>;
|
|
1728
1732
|
state?: Record<string, any>;
|
|
1729
|
-
overwrite?: boolean;
|
|
1730
1733
|
}
|
|
1731
1734
|
interface AgentCreateResult {
|
|
1732
1735
|
agentId: string;
|
|
1733
1736
|
status: string;
|
|
1734
|
-
|
|
1735
|
-
/** True when an existing SLEEPING/SUSPENDED record was updated in place
|
|
1736
|
-
* (mutually exclusive with created). Absent on venues before 0.4. */
|
|
1737
|
-
updated?: boolean;
|
|
1737
|
+
address?: string;
|
|
1738
1738
|
/** Non-fatal advisories (venue 0.5+): present only when the config looks
|
|
1739
1739
|
* misconfigured but create still succeeded — e.g. an Ollama model whose
|
|
1740
1740
|
* tool-calling can't be confirmed, or declared tools that don't resolve
|
|
@@ -1807,7 +1807,9 @@ interface AgentDeleteInput {
|
|
|
1807
1807
|
}
|
|
1808
1808
|
interface AgentDeleteResult {
|
|
1809
1809
|
agentId: string;
|
|
1810
|
-
|
|
1810
|
+
address?: string;
|
|
1811
|
+
/** Present on logical termination; absent on physical removal. */
|
|
1812
|
+
status?: string;
|
|
1811
1813
|
removed?: boolean;
|
|
1812
1814
|
}
|
|
1813
1815
|
interface AgentSuspendResult {
|
|
@@ -1936,17 +1938,17 @@ interface AgentSessionPage {
|
|
|
1936
1938
|
offset: number;
|
|
1937
1939
|
limit: number;
|
|
1938
1940
|
}
|
|
1941
|
+
/** Forks into an unused name; replacement requires explicit deletion first. */
|
|
1939
1942
|
interface AgentForkInput {
|
|
1940
1943
|
sourceId: string;
|
|
1941
1944
|
agentId: string;
|
|
1942
1945
|
config?: Record<string, any>;
|
|
1943
1946
|
includeTimeline?: boolean;
|
|
1944
|
-
overwrite?: boolean;
|
|
1945
1947
|
}
|
|
1946
1948
|
interface AgentForkResult {
|
|
1947
1949
|
agentId: string;
|
|
1950
|
+
address?: string;
|
|
1948
1951
|
status: string;
|
|
1949
|
-
created: boolean;
|
|
1950
1952
|
forkedFrom: string;
|
|
1951
1953
|
}
|
|
1952
1954
|
interface AgentContextInput {
|
|
@@ -2507,6 +2509,8 @@ interface A2AMessage {
|
|
|
2507
2509
|
role: string;
|
|
2508
2510
|
parts: A2APart[];
|
|
2509
2511
|
messageId?: string;
|
|
2512
|
+
/** The conversation this message belongs to — a remote Task's `contextId`. */
|
|
2513
|
+
contextId?: string;
|
|
2510
2514
|
}
|
|
2511
2515
|
/** The remote A2A Task snapshot a send mirrors onto the local Job's output —
|
|
2512
2516
|
* final when the Job reaches a terminal state, a live snapshot while paused. */
|
|
@@ -2839,4 +2843,5 @@ declare function relayDelegation(privateKey: Uint8Array, venueDID: string, lifet
|
|
|
2839
2843
|
/** {@link relayDelegation} through an {@link Ed25519Signer}. */
|
|
2840
2844
|
declare function relayDelegationWith(signer: Ed25519Signer, venueDID: string, lifetimeSeconds: number, caps?: UCANCapability[]): Promise<string>;
|
|
2841
2845
|
|
|
2842
|
-
export {
|
|
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
|
@@ -46,7 +46,6 @@ declare class Agent {
|
|
|
46
46
|
fork(agentId: string, options?: {
|
|
47
47
|
config?: Record<string, unknown>;
|
|
48
48
|
includeTimeline?: boolean;
|
|
49
|
-
overwrite?: boolean;
|
|
50
49
|
}): Promise<Agent>;
|
|
51
50
|
context(task?: unknown): Promise<string>;
|
|
52
51
|
delete(remove?: boolean): Promise<AgentDeleteResult>;
|
|
@@ -1088,12 +1087,16 @@ declare class A2AManager {
|
|
|
1088
1087
|
*
|
|
1089
1088
|
* @param agent Imported agent reference — `w/a2a/agents/<name>` or its
|
|
1090
1089
|
* immutable `did:.../a/<hash>` id.
|
|
1091
|
-
* @param message An A2A Message: `{ role, parts, messageId? }`.
|
|
1090
|
+
* @param message An A2A Message: `{ role, parts, messageId?, contextId? }`.
|
|
1092
1091
|
* @param options.taskId Continue an existing remote Task instead of
|
|
1093
|
-
* 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`.
|
|
1094
1096
|
*/
|
|
1095
1097
|
send(agent: string, message: A2AMessage, options?: {
|
|
1096
1098
|
taskId?: string;
|
|
1099
|
+
contextId?: string;
|
|
1097
1100
|
}): Promise<Job>;
|
|
1098
1101
|
}
|
|
1099
1102
|
|
|
@@ -1722,19 +1725,16 @@ declare enum AgentStatus {
|
|
|
1722
1725
|
SUSPENDED = "SUSPENDED",
|
|
1723
1726
|
TERMINATED = "TERMINATED"
|
|
1724
1727
|
}
|
|
1728
|
+
/** Creates a new name only. Use update to preserve an existing agent and its history. */
|
|
1725
1729
|
interface AgentCreateInput {
|
|
1726
1730
|
agentId: string;
|
|
1727
1731
|
config?: Record<string, any>;
|
|
1728
1732
|
state?: Record<string, any>;
|
|
1729
|
-
overwrite?: boolean;
|
|
1730
1733
|
}
|
|
1731
1734
|
interface AgentCreateResult {
|
|
1732
1735
|
agentId: string;
|
|
1733
1736
|
status: string;
|
|
1734
|
-
|
|
1735
|
-
/** True when an existing SLEEPING/SUSPENDED record was updated in place
|
|
1736
|
-
* (mutually exclusive with created). Absent on venues before 0.4. */
|
|
1737
|
-
updated?: boolean;
|
|
1737
|
+
address?: string;
|
|
1738
1738
|
/** Non-fatal advisories (venue 0.5+): present only when the config looks
|
|
1739
1739
|
* misconfigured but create still succeeded — e.g. an Ollama model whose
|
|
1740
1740
|
* tool-calling can't be confirmed, or declared tools that don't resolve
|
|
@@ -1807,7 +1807,9 @@ interface AgentDeleteInput {
|
|
|
1807
1807
|
}
|
|
1808
1808
|
interface AgentDeleteResult {
|
|
1809
1809
|
agentId: string;
|
|
1810
|
-
|
|
1810
|
+
address?: string;
|
|
1811
|
+
/** Present on logical termination; absent on physical removal. */
|
|
1812
|
+
status?: string;
|
|
1811
1813
|
removed?: boolean;
|
|
1812
1814
|
}
|
|
1813
1815
|
interface AgentSuspendResult {
|
|
@@ -1936,17 +1938,17 @@ interface AgentSessionPage {
|
|
|
1936
1938
|
offset: number;
|
|
1937
1939
|
limit: number;
|
|
1938
1940
|
}
|
|
1941
|
+
/** Forks into an unused name; replacement requires explicit deletion first. */
|
|
1939
1942
|
interface AgentForkInput {
|
|
1940
1943
|
sourceId: string;
|
|
1941
1944
|
agentId: string;
|
|
1942
1945
|
config?: Record<string, any>;
|
|
1943
1946
|
includeTimeline?: boolean;
|
|
1944
|
-
overwrite?: boolean;
|
|
1945
1947
|
}
|
|
1946
1948
|
interface AgentForkResult {
|
|
1947
1949
|
agentId: string;
|
|
1950
|
+
address?: string;
|
|
1948
1951
|
status: string;
|
|
1949
|
-
created: boolean;
|
|
1950
1952
|
forkedFrom: string;
|
|
1951
1953
|
}
|
|
1952
1954
|
interface AgentContextInput {
|
|
@@ -2507,6 +2509,8 @@ interface A2AMessage {
|
|
|
2507
2509
|
role: string;
|
|
2508
2510
|
parts: A2APart[];
|
|
2509
2511
|
messageId?: string;
|
|
2512
|
+
/** The conversation this message belongs to — a remote Task's `contextId`. */
|
|
2513
|
+
contextId?: string;
|
|
2510
2514
|
}
|
|
2511
2515
|
/** The remote A2A Task snapshot a send mirrors onto the local Job's output —
|
|
2512
2516
|
* final when the Job reaches a terminal state, a live snapshot while paused. */
|
|
@@ -2839,4 +2843,5 @@ declare function relayDelegation(privateKey: Uint8Array, venueDID: string, lifet
|
|
|
2839
2843
|
/** {@link relayDelegation} through an {@link Ed25519Signer}. */
|
|
2840
2844
|
declare function relayDelegationWith(signer: Ed25519Signer, venueDID: string, lifetimeSeconds: number, caps?: UCANCapability[]): Promise<string>;
|
|
2841
2845
|
|
|
2842
|
-
export {
|
|
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.
|
|
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": "^
|
|
64
|
+
"tsup": "^9.0.0",
|
|
65
65
|
"typescript": "^6.0.0",
|
|
66
66
|
"typescript-eslint": "^8.62.1"
|
|
67
67
|
},
|