@vellumai/plugin-api 0.10.3-dev.202606262041.b11a214 → 0.10.3-dev.202606262232.b3e3aed
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.d.ts +25 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
declare type _AcpServerMessages = AcpSessionSpawned | AcpSessionUpdate | AcpSessionCompleted | AcpSessionError;
|
|
3
|
+
declare type _AcpServerMessages = AcpSessionSpawned | AcpSessionUpdate | AcpSessionCompleted | AcpSessionError | AcpSessionUsage;
|
|
4
4
|
|
|
5
5
|
declare interface AcpSessionCompleted {
|
|
6
6
|
type: "acp_session_completed";
|
|
@@ -19,6 +19,10 @@ declare interface AcpSessionSpawned {
|
|
|
19
19
|
acpSessionId: string;
|
|
20
20
|
agent: string;
|
|
21
21
|
parentConversationId: string;
|
|
22
|
+
/** Tool-use id of the `acp_spawn` call that spawned this session. */
|
|
23
|
+
parentToolUseId?: string;
|
|
24
|
+
/** Objective text for the spawned session. */
|
|
25
|
+
task?: string;
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
declare interface AcpSessionUpdate {
|
|
@@ -30,6 +34,26 @@ declare interface AcpSessionUpdate {
|
|
|
30
34
|
toolTitle?: string;
|
|
31
35
|
toolKind?: string;
|
|
32
36
|
toolStatus?: string;
|
|
37
|
+
/** Files touched by this tool call (for the file-diff affordance). */
|
|
38
|
+
locations?: {
|
|
39
|
+
path: string;
|
|
40
|
+
line?: number;
|
|
41
|
+
}[];
|
|
42
|
+
/** Stable id for the message this chunk belongs to. */
|
|
43
|
+
messageId?: string;
|
|
44
|
+
/** Monotonic ordering hint within the session. */
|
|
45
|
+
seq?: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare interface AcpSessionUsage {
|
|
49
|
+
type: "acp_session_usage";
|
|
50
|
+
acpSessionId: string;
|
|
51
|
+
usedTokens: number;
|
|
52
|
+
contextSize: number;
|
|
53
|
+
costAmount?: number;
|
|
54
|
+
costCurrency?: string;
|
|
55
|
+
inputTokens?: number;
|
|
56
|
+
outputTokens?: number;
|
|
33
57
|
}
|
|
34
58
|
|
|
35
59
|
/**
|
package/package.json
CHANGED