@covia/covia-sdk 1.2.0 → 1.4.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 CHANGED
@@ -337,6 +337,10 @@ await venue.agents.message("my-agent", { event: "update" });
337
337
  await venue.agents.trigger("my-agent");
338
338
  const state = await venue.agents.query("my-agent");
339
339
 
340
+ // Session-scoped chat — mints a session on the first call, continue by echoing sessionId
341
+ const first = await venue.agents.chat("my-agent", "hi");
342
+ const follow = await venue.agents.chat("my-agent", "and now?", first.sessionId);
343
+
340
344
  // Lifecycle
341
345
  const agents = await venue.agents.list();
342
346
  await venue.agents.suspend("my-agent");
@@ -351,6 +355,7 @@ await venue.agents.delete("my-agent");
351
355
  | `agents.create(input)` | `AgentCreateResult` | Create an agent |
352
356
  | `agents.request(id, input?, wait?)` | `AgentRequestResult` | Send request to agent |
353
357
  | `agents.message(id, message)` | `AgentMessageResult` | Send a message |
358
+ | `agents.chat(id, message, sessionId?)` | `AgentChatResult` | Session-scoped chat — awaits next response on the session |
354
359
  | `agents.trigger(id)` | `AgentTriggerResult` | Trigger agent execution |
355
360
  | `agents.query(id)` | `AgentQueryResult` | Query agent state |
356
361
  | `agents.list(includeTerminated?)` | `AgentListResult` | List agents |
package/dist/index.d.mts CHANGED
@@ -219,6 +219,23 @@ declare class AgentManager {
219
219
  create(input: AgentCreateInput): Promise<AgentCreateResult>;
220
220
  request(agentId: string, input?: any, wait?: boolean | number): Promise<AgentRequestResult>;
221
221
  message(agentId: string, message: any): Promise<AgentMessageResult>;
222
+ /**
223
+ * Send a message to an agent and synchronously await its next response on the session.
224
+ *
225
+ * Session lifecycle:
226
+ * - Omit `sessionId` on the first call — the server mints a new session and returns
227
+ * its id in the result. Capture it.
228
+ * - Pass the returned `sessionId` on every subsequent call to continue the conversation.
229
+ * - An unknown `sessionId` is rejected (the server will not silently mint one); omit
230
+ * the field entirely to start a new session.
231
+ *
232
+ * Concurrency: only one chat may be in flight per session. Concurrent calls on the
233
+ * same session are rejected by the venue.
234
+ *
235
+ * Blocking: always blocks until the agent produces its next response on the session.
236
+ * No polling required.
237
+ */
238
+ chat(agentId: string, message: any, sessionId?: string): Promise<AgentChatResult>;
222
239
  trigger(agentId: string): Promise<AgentTriggerResult>;
223
240
  query(agentId: string): Promise<AgentQueryResult>;
224
241
  list(includeTerminated?: boolean): Promise<AgentListResult>;
@@ -347,9 +364,6 @@ declare class WorkspaceManager {
347
364
  append(path: string, value: any): Promise<WorkspaceAppendResult>;
348
365
  list(path?: string, limit?: number, offset?: number): Promise<WorkspaceListResult>;
349
366
  slice(path: string, offset?: number, limit?: number): Promise<WorkspaceSliceResult>;
350
- functions(): Promise<FunctionsResult>;
351
- describe(name: string): Promise<any>;
352
- adapters(): Promise<AdaptersResult>;
353
367
  }
354
368
 
355
369
  interface UCANManagerVenue {
@@ -681,6 +695,16 @@ interface AgentMessageResult {
681
695
  agentId: string;
682
696
  delivered: boolean;
683
697
  }
698
+ interface AgentChatInput {
699
+ agentId: string;
700
+ message: any;
701
+ sessionId?: string;
702
+ }
703
+ interface AgentChatResult {
704
+ agentId: string;
705
+ sessionId: string;
706
+ response: any;
707
+ }
684
708
  interface AgentTriggerInput {
685
709
  agentId: string;
686
710
  }
@@ -1013,4 +1037,4 @@ declare function decodePublicKey(multikey: string): Uint8Array;
1013
1037
  */
1014
1038
  declare function didFromPublicKey(publicKey: Uint8Array): string;
1015
1039
 
1016
- export { type AdapterInfo, type AdaptersResult, type AgentCancelTaskInput, type AgentCard, type AgentCreateInput, type AgentCreateResult, type AgentDeleteInput, type AgentDeleteResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentQueryInput, type AgentQueryResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, AgentStatus, type AgentSuspendResult, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListOptions, AssetManager, type AssetMetadata, AssetNotFoundError, Auth, BearerAuth, type ContentDetails, type ContentHashResult, CoviaConnectionError, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, DataAsset, type FunctionInfo, type FunctionsResult, Grid, GridError, type InvokeOptions, type InvokePayload, Job, JobFailedError, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPDiscovery, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, RunStatus, type SSEEvent, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type StatsData, type StatusData, type UCANAttenuation, type UCANIssueInput, type UCANIssueResult, UCANManager, Venue, type VenueConstructor, type VenueData, type VenueInterface, type VenueOptions, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, createSSEEvent, decodePublicKey, didFromPublicKey, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getParsedAssetId, hexToPrivateKey, isJobComplete, isJobFinished, isJobPaused, logger, parseSSEStream, privateKeyToHex };
1040
+ export { type AdapterInfo, type AdaptersResult, type AgentCancelTaskInput, type AgentCard, type AgentChatInput, type AgentChatResult, type AgentCreateInput, type AgentCreateResult, type AgentDeleteInput, type AgentDeleteResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentQueryInput, type AgentQueryResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, AgentStatus, type AgentSuspendResult, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListOptions, AssetManager, type AssetMetadata, AssetNotFoundError, Auth, BearerAuth, type ContentDetails, type ContentHashResult, CoviaConnectionError, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, DataAsset, type FunctionInfo, type FunctionsResult, Grid, GridError, type InvokeOptions, type InvokePayload, Job, JobFailedError, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPDiscovery, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, RunStatus, type SSEEvent, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type StatsData, type StatusData, type UCANAttenuation, type UCANIssueInput, type UCANIssueResult, UCANManager, Venue, type VenueConstructor, type VenueData, type VenueInterface, type VenueOptions, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, createSSEEvent, decodePublicKey, didFromPublicKey, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getParsedAssetId, hexToPrivateKey, isJobComplete, isJobFinished, isJobPaused, logger, parseSSEStream, privateKeyToHex };
package/dist/index.d.ts CHANGED
@@ -219,6 +219,23 @@ declare class AgentManager {
219
219
  create(input: AgentCreateInput): Promise<AgentCreateResult>;
220
220
  request(agentId: string, input?: any, wait?: boolean | number): Promise<AgentRequestResult>;
221
221
  message(agentId: string, message: any): Promise<AgentMessageResult>;
222
+ /**
223
+ * Send a message to an agent and synchronously await its next response on the session.
224
+ *
225
+ * Session lifecycle:
226
+ * - Omit `sessionId` on the first call — the server mints a new session and returns
227
+ * its id in the result. Capture it.
228
+ * - Pass the returned `sessionId` on every subsequent call to continue the conversation.
229
+ * - An unknown `sessionId` is rejected (the server will not silently mint one); omit
230
+ * the field entirely to start a new session.
231
+ *
232
+ * Concurrency: only one chat may be in flight per session. Concurrent calls on the
233
+ * same session are rejected by the venue.
234
+ *
235
+ * Blocking: always blocks until the agent produces its next response on the session.
236
+ * No polling required.
237
+ */
238
+ chat(agentId: string, message: any, sessionId?: string): Promise<AgentChatResult>;
222
239
  trigger(agentId: string): Promise<AgentTriggerResult>;
223
240
  query(agentId: string): Promise<AgentQueryResult>;
224
241
  list(includeTerminated?: boolean): Promise<AgentListResult>;
@@ -347,9 +364,6 @@ declare class WorkspaceManager {
347
364
  append(path: string, value: any): Promise<WorkspaceAppendResult>;
348
365
  list(path?: string, limit?: number, offset?: number): Promise<WorkspaceListResult>;
349
366
  slice(path: string, offset?: number, limit?: number): Promise<WorkspaceSliceResult>;
350
- functions(): Promise<FunctionsResult>;
351
- describe(name: string): Promise<any>;
352
- adapters(): Promise<AdaptersResult>;
353
367
  }
354
368
 
355
369
  interface UCANManagerVenue {
@@ -681,6 +695,16 @@ interface AgentMessageResult {
681
695
  agentId: string;
682
696
  delivered: boolean;
683
697
  }
698
+ interface AgentChatInput {
699
+ agentId: string;
700
+ message: any;
701
+ sessionId?: string;
702
+ }
703
+ interface AgentChatResult {
704
+ agentId: string;
705
+ sessionId: string;
706
+ response: any;
707
+ }
684
708
  interface AgentTriggerInput {
685
709
  agentId: string;
686
710
  }
@@ -1013,4 +1037,4 @@ declare function decodePublicKey(multikey: string): Uint8Array;
1013
1037
  */
1014
1038
  declare function didFromPublicKey(publicKey: Uint8Array): string;
1015
1039
 
1016
- export { type AdapterInfo, type AdaptersResult, type AgentCancelTaskInput, type AgentCard, type AgentCreateInput, type AgentCreateResult, type AgentDeleteInput, type AgentDeleteResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentQueryInput, type AgentQueryResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, AgentStatus, type AgentSuspendResult, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListOptions, AssetManager, type AssetMetadata, AssetNotFoundError, Auth, BearerAuth, type ContentDetails, type ContentHashResult, CoviaConnectionError, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, DataAsset, type FunctionInfo, type FunctionsResult, Grid, GridError, type InvokeOptions, type InvokePayload, Job, JobFailedError, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPDiscovery, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, RunStatus, type SSEEvent, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type StatsData, type StatusData, type UCANAttenuation, type UCANIssueInput, type UCANIssueResult, UCANManager, Venue, type VenueConstructor, type VenueData, type VenueInterface, type VenueOptions, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, createSSEEvent, decodePublicKey, didFromPublicKey, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getParsedAssetId, hexToPrivateKey, isJobComplete, isJobFinished, isJobPaused, logger, parseSSEStream, privateKeyToHex };
1040
+ export { type AdapterInfo, type AdaptersResult, type AgentCancelTaskInput, type AgentCard, type AgentChatInput, type AgentChatResult, type AgentCreateInput, type AgentCreateResult, type AgentDeleteInput, type AgentDeleteResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentQueryInput, type AgentQueryResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, AgentStatus, type AgentSuspendResult, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListOptions, AssetManager, type AssetMetadata, AssetNotFoundError, Auth, BearerAuth, type ContentDetails, type ContentHashResult, CoviaConnectionError, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, DataAsset, type FunctionInfo, type FunctionsResult, Grid, GridError, type InvokeOptions, type InvokePayload, Job, JobFailedError, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPDiscovery, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, RunStatus, type SSEEvent, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type StatsData, type StatusData, type UCANAttenuation, type UCANIssueInput, type UCANIssueResult, UCANManager, Venue, type VenueConstructor, type VenueData, type VenueInterface, type VenueOptions, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, createSSEEvent, decodePublicKey, didFromPublicKey, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getParsedAssetId, hexToPrivateKey, isJobComplete, isJobFinished, isJobPaused, logger, parseSSEStream, privateKeyToHex };
package/dist/index.js CHANGED
@@ -1342,37 +1342,56 @@ var AgentManager = class {
1342
1342
  this.venue = venue;
1343
1343
  }
1344
1344
  async create(input) {
1345
- return this.venue.operations.run("agent:create", input);
1345
+ return this.venue.operations.run("v/ops/agent/create", input);
1346
1346
  }
1347
1347
  async request(agentId, input, wait) {
1348
- return this.venue.operations.run("agent:request", { agentId, input, wait });
1348
+ return this.venue.operations.run("v/ops/agent/request", { agentId, input, wait });
1349
1349
  }
1350
1350
  async message(agentId, message) {
1351
- return this.venue.operations.run("agent:message", { agentId, message });
1351
+ return this.venue.operations.run("v/ops/agent/message", { agentId, message });
1352
+ }
1353
+ /**
1354
+ * Send a message to an agent and synchronously await its next response on the session.
1355
+ *
1356
+ * Session lifecycle:
1357
+ * - Omit `sessionId` on the first call — the server mints a new session and returns
1358
+ * its id in the result. Capture it.
1359
+ * - Pass the returned `sessionId` on every subsequent call to continue the conversation.
1360
+ * - An unknown `sessionId` is rejected (the server will not silently mint one); omit
1361
+ * the field entirely to start a new session.
1362
+ *
1363
+ * Concurrency: only one chat may be in flight per session. Concurrent calls on the
1364
+ * same session are rejected by the venue.
1365
+ *
1366
+ * Blocking: always blocks until the agent produces its next response on the session.
1367
+ * No polling required.
1368
+ */
1369
+ async chat(agentId, message, sessionId) {
1370
+ return this.venue.operations.run("v/ops/agent/chat", { agentId, message, sessionId });
1352
1371
  }
1353
1372
  async trigger(agentId) {
1354
- return this.venue.operations.run("agent:trigger", { agentId });
1373
+ return this.venue.operations.run("v/ops/agent/trigger", { agentId });
1355
1374
  }
1356
1375
  async query(agentId) {
1357
- return this.venue.operations.run("agent:query", { agentId });
1376
+ return this.venue.operations.run("v/ops/agent/info", { agentId });
1358
1377
  }
1359
1378
  async list(includeTerminated) {
1360
- return this.venue.operations.run("agent:list", { includeTerminated });
1379
+ return this.venue.operations.run("v/ops/agent/list", { includeTerminated });
1361
1380
  }
1362
1381
  async delete(agentId, remove) {
1363
- return this.venue.operations.run("agent:delete", { agentId, remove });
1382
+ return this.venue.operations.run("v/ops/agent/delete", { agentId, remove });
1364
1383
  }
1365
1384
  async suspend(agentId) {
1366
- return this.venue.operations.run("agent:suspend", { agentId });
1385
+ return this.venue.operations.run("v/ops/agent/suspend", { agentId });
1367
1386
  }
1368
1387
  async resume(agentId, autoWake) {
1369
- return this.venue.operations.run("agent:resume", { agentId, autoWake });
1388
+ return this.venue.operations.run("v/ops/agent/resume", { agentId, autoWake });
1370
1389
  }
1371
1390
  async update(input) {
1372
- return this.venue.operations.run("agent:update", input);
1391
+ return this.venue.operations.run("v/ops/agent/update", input);
1373
1392
  }
1374
1393
  async cancelTask(agentId, taskId) {
1375
- return this.venue.operations.run("agent:cancelTask", { agentId, taskId });
1394
+ return this.venue.operations.run("v/ops/agent/cancel-task", { agentId, taskId });
1376
1395
  }
1377
1396
  };
1378
1397
 
@@ -1884,31 +1903,22 @@ var WorkspaceManager = class {
1884
1903
  this.venue = venue;
1885
1904
  }
1886
1905
  async read(path, maxSize) {
1887
- return this.venue.operations.run("covia:read", { path, maxSize });
1906
+ return this.venue.operations.run("v/ops/covia/read", { path, maxSize });
1888
1907
  }
1889
1908
  async write(path, value) {
1890
- return this.venue.operations.run("covia:write", { path, value });
1909
+ return this.venue.operations.run("v/ops/covia/write", { path, value });
1891
1910
  }
1892
1911
  async delete(path) {
1893
- return this.venue.operations.run("covia:delete", { path });
1912
+ return this.venue.operations.run("v/ops/covia/delete", { path });
1894
1913
  }
1895
1914
  async append(path, value) {
1896
- return this.venue.operations.run("covia:append", { path, value });
1915
+ return this.venue.operations.run("v/ops/covia/append", { path, value });
1897
1916
  }
1898
1917
  async list(path, limit, offset) {
1899
- return this.venue.operations.run("covia:list", { path, limit, offset });
1918
+ return this.venue.operations.run("v/ops/covia/list", { path, limit, offset });
1900
1919
  }
1901
1920
  async slice(path, offset, limit) {
1902
- return this.venue.operations.run("covia:slice", { path, offset, limit });
1903
- }
1904
- async functions() {
1905
- return this.venue.operations.run("covia:functions", {});
1906
- }
1907
- async describe(name) {
1908
- return this.venue.operations.run("covia:describe", { name });
1909
- }
1910
- async adapters() {
1911
- return this.venue.operations.run("covia:adapters", {});
1921
+ return this.venue.operations.run("v/ops/covia/slice", { path, offset, limit });
1912
1922
  }
1913
1923
  };
1914
1924
 
@@ -1918,7 +1928,7 @@ var UCANManager = class {
1918
1928
  this.venue = venue;
1919
1929
  }
1920
1930
  async issue(aud, att, exp) {
1921
- return this.venue.operations.run("ucan:issue", { aud, att, exp });
1931
+ return this.venue.operations.run("v/ops/ucan/issue", { aud, att, exp });
1922
1932
  }
1923
1933
  };
1924
1934
 
@@ -1928,7 +1938,7 @@ var SecretManager = class {
1928
1938
  this.venue = venue;
1929
1939
  }
1930
1940
  async set(name, value) {
1931
- return this.venue.operations.run("secret:set", { name, value });
1941
+ return this.venue.operations.run("v/ops/secret/set", { name, value });
1932
1942
  }
1933
1943
  /**
1934
1944
  * Extract a secret value by name.
@@ -1936,7 +1946,7 @@ var SecretManager = class {
1936
1946
  * may reject requests that lack the appropriate capability proof.
1937
1947
  */
1938
1948
  async extract(name) {
1939
- return this.venue.operations.run("secret:extract", { name });
1949
+ return this.venue.operations.run("v/ops/secret/extract", { name });
1940
1950
  }
1941
1951
  async list() {
1942
1952
  return this.venue.listSecrets();
package/dist/index.mjs CHANGED
@@ -1340,37 +1340,56 @@ var AgentManager = class {
1340
1340
  this.venue = venue;
1341
1341
  }
1342
1342
  async create(input) {
1343
- return this.venue.operations.run("agent:create", input);
1343
+ return this.venue.operations.run("v/ops/agent/create", input);
1344
1344
  }
1345
1345
  async request(agentId, input, wait) {
1346
- return this.venue.operations.run("agent:request", { agentId, input, wait });
1346
+ return this.venue.operations.run("v/ops/agent/request", { agentId, input, wait });
1347
1347
  }
1348
1348
  async message(agentId, message) {
1349
- return this.venue.operations.run("agent:message", { agentId, message });
1349
+ return this.venue.operations.run("v/ops/agent/message", { agentId, message });
1350
+ }
1351
+ /**
1352
+ * Send a message to an agent and synchronously await its next response on the session.
1353
+ *
1354
+ * Session lifecycle:
1355
+ * - Omit `sessionId` on the first call — the server mints a new session and returns
1356
+ * its id in the result. Capture it.
1357
+ * - Pass the returned `sessionId` on every subsequent call to continue the conversation.
1358
+ * - An unknown `sessionId` is rejected (the server will not silently mint one); omit
1359
+ * the field entirely to start a new session.
1360
+ *
1361
+ * Concurrency: only one chat may be in flight per session. Concurrent calls on the
1362
+ * same session are rejected by the venue.
1363
+ *
1364
+ * Blocking: always blocks until the agent produces its next response on the session.
1365
+ * No polling required.
1366
+ */
1367
+ async chat(agentId, message, sessionId) {
1368
+ return this.venue.operations.run("v/ops/agent/chat", { agentId, message, sessionId });
1350
1369
  }
1351
1370
  async trigger(agentId) {
1352
- return this.venue.operations.run("agent:trigger", { agentId });
1371
+ return this.venue.operations.run("v/ops/agent/trigger", { agentId });
1353
1372
  }
1354
1373
  async query(agentId) {
1355
- return this.venue.operations.run("agent:query", { agentId });
1374
+ return this.venue.operations.run("v/ops/agent/info", { agentId });
1356
1375
  }
1357
1376
  async list(includeTerminated) {
1358
- return this.venue.operations.run("agent:list", { includeTerminated });
1377
+ return this.venue.operations.run("v/ops/agent/list", { includeTerminated });
1359
1378
  }
1360
1379
  async delete(agentId, remove) {
1361
- return this.venue.operations.run("agent:delete", { agentId, remove });
1380
+ return this.venue.operations.run("v/ops/agent/delete", { agentId, remove });
1362
1381
  }
1363
1382
  async suspend(agentId) {
1364
- return this.venue.operations.run("agent:suspend", { agentId });
1383
+ return this.venue.operations.run("v/ops/agent/suspend", { agentId });
1365
1384
  }
1366
1385
  async resume(agentId, autoWake) {
1367
- return this.venue.operations.run("agent:resume", { agentId, autoWake });
1386
+ return this.venue.operations.run("v/ops/agent/resume", { agentId, autoWake });
1368
1387
  }
1369
1388
  async update(input) {
1370
- return this.venue.operations.run("agent:update", input);
1389
+ return this.venue.operations.run("v/ops/agent/update", input);
1371
1390
  }
1372
1391
  async cancelTask(agentId, taskId) {
1373
- return this.venue.operations.run("agent:cancelTask", { agentId, taskId });
1392
+ return this.venue.operations.run("v/ops/agent/cancel-task", { agentId, taskId });
1374
1393
  }
1375
1394
  };
1376
1395
 
@@ -1882,31 +1901,22 @@ var WorkspaceManager = class {
1882
1901
  this.venue = venue;
1883
1902
  }
1884
1903
  async read(path, maxSize) {
1885
- return this.venue.operations.run("covia:read", { path, maxSize });
1904
+ return this.venue.operations.run("v/ops/covia/read", { path, maxSize });
1886
1905
  }
1887
1906
  async write(path, value) {
1888
- return this.venue.operations.run("covia:write", { path, value });
1907
+ return this.venue.operations.run("v/ops/covia/write", { path, value });
1889
1908
  }
1890
1909
  async delete(path) {
1891
- return this.venue.operations.run("covia:delete", { path });
1910
+ return this.venue.operations.run("v/ops/covia/delete", { path });
1892
1911
  }
1893
1912
  async append(path, value) {
1894
- return this.venue.operations.run("covia:append", { path, value });
1913
+ return this.venue.operations.run("v/ops/covia/append", { path, value });
1895
1914
  }
1896
1915
  async list(path, limit, offset) {
1897
- return this.venue.operations.run("covia:list", { path, limit, offset });
1916
+ return this.venue.operations.run("v/ops/covia/list", { path, limit, offset });
1898
1917
  }
1899
1918
  async slice(path, offset, limit) {
1900
- return this.venue.operations.run("covia:slice", { path, offset, limit });
1901
- }
1902
- async functions() {
1903
- return this.venue.operations.run("covia:functions", {});
1904
- }
1905
- async describe(name) {
1906
- return this.venue.operations.run("covia:describe", { name });
1907
- }
1908
- async adapters() {
1909
- return this.venue.operations.run("covia:adapters", {});
1919
+ return this.venue.operations.run("v/ops/covia/slice", { path, offset, limit });
1910
1920
  }
1911
1921
  };
1912
1922
 
@@ -1916,7 +1926,7 @@ var UCANManager = class {
1916
1926
  this.venue = venue;
1917
1927
  }
1918
1928
  async issue(aud, att, exp) {
1919
- return this.venue.operations.run("ucan:issue", { aud, att, exp });
1929
+ return this.venue.operations.run("v/ops/ucan/issue", { aud, att, exp });
1920
1930
  }
1921
1931
  };
1922
1932
 
@@ -1926,7 +1936,7 @@ var SecretManager = class {
1926
1936
  this.venue = venue;
1927
1937
  }
1928
1938
  async set(name, value) {
1929
- return this.venue.operations.run("secret:set", { name, value });
1939
+ return this.venue.operations.run("v/ops/secret/set", { name, value });
1930
1940
  }
1931
1941
  /**
1932
1942
  * Extract a secret value by name.
@@ -1934,7 +1944,7 @@ var SecretManager = class {
1934
1944
  * may reject requests that lack the appropriate capability proof.
1935
1945
  */
1936
1946
  async extract(name) {
1937
- return this.venue.operations.run("secret:extract", { name });
1947
+ return this.venue.operations.run("v/ops/secret/extract", { name });
1938
1948
  }
1939
1949
  async list() {
1940
1950
  return this.venue.listSecrets();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@covia/covia-sdk",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "Typescript library for covia-ai",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -22,7 +22,7 @@
22
22
  "test": "jest",
23
23
  "test:unit": "jest src/__tests__/",
24
24
  "test:integration": "jest venue.test.ts",
25
- "prepublishOnly": "npm run build && npm test",
25
+ "prepublishOnly": "npm run build && npm run test:unit",
26
26
  "prepare": "npm run build"
27
27
  },
28
28
  "keywords": [