@covia/covia-sdk 1.24.1 → 1.24.2
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 +7 -9
- package/dist/index.d.ts +7 -9
- package/package.json +1 -1
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>;
|
|
@@ -1722,19 +1721,16 @@ declare enum AgentStatus {
|
|
|
1722
1721
|
SUSPENDED = "SUSPENDED",
|
|
1723
1722
|
TERMINATED = "TERMINATED"
|
|
1724
1723
|
}
|
|
1724
|
+
/** Creates a new name only. Use update to preserve an existing agent and its history. */
|
|
1725
1725
|
interface AgentCreateInput {
|
|
1726
1726
|
agentId: string;
|
|
1727
1727
|
config?: Record<string, any>;
|
|
1728
1728
|
state?: Record<string, any>;
|
|
1729
|
-
overwrite?: boolean;
|
|
1730
1729
|
}
|
|
1731
1730
|
interface AgentCreateResult {
|
|
1732
1731
|
agentId: string;
|
|
1733
1732
|
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;
|
|
1733
|
+
address?: string;
|
|
1738
1734
|
/** Non-fatal advisories (venue 0.5+): present only when the config looks
|
|
1739
1735
|
* misconfigured but create still succeeded — e.g. an Ollama model whose
|
|
1740
1736
|
* tool-calling can't be confirmed, or declared tools that don't resolve
|
|
@@ -1807,7 +1803,9 @@ interface AgentDeleteInput {
|
|
|
1807
1803
|
}
|
|
1808
1804
|
interface AgentDeleteResult {
|
|
1809
1805
|
agentId: string;
|
|
1810
|
-
|
|
1806
|
+
address?: string;
|
|
1807
|
+
/** Present on logical termination; absent on physical removal. */
|
|
1808
|
+
status?: string;
|
|
1811
1809
|
removed?: boolean;
|
|
1812
1810
|
}
|
|
1813
1811
|
interface AgentSuspendResult {
|
|
@@ -1936,17 +1934,17 @@ interface AgentSessionPage {
|
|
|
1936
1934
|
offset: number;
|
|
1937
1935
|
limit: number;
|
|
1938
1936
|
}
|
|
1937
|
+
/** Forks into an unused name; replacement requires explicit deletion first. */
|
|
1939
1938
|
interface AgentForkInput {
|
|
1940
1939
|
sourceId: string;
|
|
1941
1940
|
agentId: string;
|
|
1942
1941
|
config?: Record<string, any>;
|
|
1943
1942
|
includeTimeline?: boolean;
|
|
1944
|
-
overwrite?: boolean;
|
|
1945
1943
|
}
|
|
1946
1944
|
interface AgentForkResult {
|
|
1947
1945
|
agentId: string;
|
|
1946
|
+
address?: string;
|
|
1948
1947
|
status: string;
|
|
1949
|
-
created: boolean;
|
|
1950
1948
|
forkedFrom: string;
|
|
1951
1949
|
}
|
|
1952
1950
|
interface AgentContextInput {
|
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>;
|
|
@@ -1722,19 +1721,16 @@ declare enum AgentStatus {
|
|
|
1722
1721
|
SUSPENDED = "SUSPENDED",
|
|
1723
1722
|
TERMINATED = "TERMINATED"
|
|
1724
1723
|
}
|
|
1724
|
+
/** Creates a new name only. Use update to preserve an existing agent and its history. */
|
|
1725
1725
|
interface AgentCreateInput {
|
|
1726
1726
|
agentId: string;
|
|
1727
1727
|
config?: Record<string, any>;
|
|
1728
1728
|
state?: Record<string, any>;
|
|
1729
|
-
overwrite?: boolean;
|
|
1730
1729
|
}
|
|
1731
1730
|
interface AgentCreateResult {
|
|
1732
1731
|
agentId: string;
|
|
1733
1732
|
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;
|
|
1733
|
+
address?: string;
|
|
1738
1734
|
/** Non-fatal advisories (venue 0.5+): present only when the config looks
|
|
1739
1735
|
* misconfigured but create still succeeded — e.g. an Ollama model whose
|
|
1740
1736
|
* tool-calling can't be confirmed, or declared tools that don't resolve
|
|
@@ -1807,7 +1803,9 @@ interface AgentDeleteInput {
|
|
|
1807
1803
|
}
|
|
1808
1804
|
interface AgentDeleteResult {
|
|
1809
1805
|
agentId: string;
|
|
1810
|
-
|
|
1806
|
+
address?: string;
|
|
1807
|
+
/** Present on logical termination; absent on physical removal. */
|
|
1808
|
+
status?: string;
|
|
1811
1809
|
removed?: boolean;
|
|
1812
1810
|
}
|
|
1813
1811
|
interface AgentSuspendResult {
|
|
@@ -1936,17 +1934,17 @@ interface AgentSessionPage {
|
|
|
1936
1934
|
offset: number;
|
|
1937
1935
|
limit: number;
|
|
1938
1936
|
}
|
|
1937
|
+
/** Forks into an unused name; replacement requires explicit deletion first. */
|
|
1939
1938
|
interface AgentForkInput {
|
|
1940
1939
|
sourceId: string;
|
|
1941
1940
|
agentId: string;
|
|
1942
1941
|
config?: Record<string, any>;
|
|
1943
1942
|
includeTimeline?: boolean;
|
|
1944
|
-
overwrite?: boolean;
|
|
1945
1943
|
}
|
|
1946
1944
|
interface AgentForkResult {
|
|
1947
1945
|
agentId: string;
|
|
1946
|
+
address?: string;
|
|
1948
1947
|
status: string;
|
|
1949
|
-
created: boolean;
|
|
1950
1948
|
forkedFrom: string;
|
|
1951
1949
|
}
|
|
1952
1950
|
interface AgentContextInput {
|