@builder.io/ai-utils 0.44.2 → 0.44.4
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/package.json +1 -1
- package/src/claw.d.ts +12 -0
- package/src/codegen.d.ts +3 -1
package/package.json
CHANGED
package/src/claw.d.ts
CHANGED
|
@@ -14,12 +14,24 @@ export interface OrgTreeEnvironmentVariable {
|
|
|
14
14
|
value: string;
|
|
15
15
|
isSecret: boolean;
|
|
16
16
|
}
|
|
17
|
+
export interface OrgTreeMessage {
|
|
18
|
+
createdAt: number;
|
|
19
|
+
markdown: string;
|
|
20
|
+
senderType: "user" | "sub-agent" | "system";
|
|
21
|
+
channelId?: string;
|
|
22
|
+
direction?: "incoming" | "outgoing";
|
|
23
|
+
senderDisplayName?: string;
|
|
24
|
+
senderId?: string;
|
|
25
|
+
source?: string;
|
|
26
|
+
channelType?: string;
|
|
27
|
+
}
|
|
17
28
|
export interface OrgTreeResult {
|
|
18
29
|
projects: Project[];
|
|
19
30
|
branches: NewBranch[];
|
|
20
31
|
users: OrgTreeUser[];
|
|
21
32
|
memories: MemorySummary[];
|
|
22
33
|
environmentVariables?: OrgTreeEnvironmentVariable[];
|
|
34
|
+
messages?: OrgTreeMessage[];
|
|
23
35
|
}
|
|
24
36
|
export interface ClawMessageContext {
|
|
25
37
|
channelId: string;
|
package/src/codegen.d.ts
CHANGED
|
@@ -625,7 +625,7 @@ export interface SpawnBranchToolInput {
|
|
|
625
625
|
export interface CreateProjectToolInput {
|
|
626
626
|
repo_url: string;
|
|
627
627
|
name?: string;
|
|
628
|
-
builder_user_id
|
|
628
|
+
builder_user_id: string;
|
|
629
629
|
origin_channel_id?: string;
|
|
630
630
|
initial_message?: string;
|
|
631
631
|
}
|
|
@@ -2425,6 +2425,8 @@ export interface SessionData {
|
|
|
2425
2425
|
extraCost?: number;
|
|
2426
2426
|
/** If set, this session is a sub-agent of the given parent session. Used to avoid double-counting in aggregations. */
|
|
2427
2427
|
parentSessionId?: string;
|
|
2428
|
+
/** Credits from tools (e.g. WebSearch LLM calls) and sub-agent roll-ups. Total session credits = per-completion tokenCreditsUsed + extraCreditsConsumed. */
|
|
2429
|
+
extraCreditsConsumed?: number;
|
|
2428
2430
|
totalCompletions: number;
|
|
2429
2431
|
numUserMessages: number;
|
|
2430
2432
|
numNormalUserMessages: number;
|