@builder.io/ai-utils 0.23.3 → 0.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/package.json +1 -1
- package/src/codegen.d.ts +5 -1
- package/src/events.d.ts +15 -6
- package/src/events.js +4 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export interface CustomAgentDefinition {
|
|
|
50
50
|
}
|
|
51
51
|
export type CodeGenFramework = "react" | "html" | "mitosis" | "react-native" | "angular" | "vue" | "svelte" | "qwik" | "solid" | "marko" | "swiftui" | "jetpack-compose" | "flutter";
|
|
52
52
|
export type CodeGenStyleLibrary = "tailwind" | "tailwind-precise" | "emotion" | "styled-components" | "styled-jsx" | "react-native" | undefined;
|
|
53
|
-
export type CompletionStopReason = "max_tokens" | "stop_sequence" | "tool_use" | "end_turn" | "content_filter" | "error" | "aborted" | "pause_turn" | "refusal" | "model_context_window_exceeded" | null;
|
|
53
|
+
export type CompletionStopReason = "max_tokens" | "stop_sequence" | "tool_use" | "end_turn" | "content_filter" | "error" | "aborted" | "pause_turn" | "refusal" | "compaction" | "model_context_window_exceeded" | null;
|
|
54
54
|
export interface ReadToolInput {
|
|
55
55
|
file_path: string;
|
|
56
56
|
view_range?: [number, number];
|
|
@@ -64,6 +64,7 @@ export interface GrepSearchToolInput {
|
|
|
64
64
|
query: string;
|
|
65
65
|
include_glob?: string | null;
|
|
66
66
|
exclude_glob?: string | null;
|
|
67
|
+
case_sensitive?: boolean | null;
|
|
67
68
|
}
|
|
68
69
|
export interface GetRuleToolInput {
|
|
69
70
|
name: string;
|
|
@@ -214,6 +215,8 @@ export interface ExplorationMetadataToolInput {
|
|
|
214
215
|
limit?: number;
|
|
215
216
|
}[];
|
|
216
217
|
}
|
|
218
|
+
export interface EnterPlanModeToolInput {
|
|
219
|
+
}
|
|
217
220
|
export interface ExitPlanModeToolInput {
|
|
218
221
|
plan: string;
|
|
219
222
|
handled?: boolean;
|
|
@@ -530,6 +533,7 @@ export interface CodeGenToolMap {
|
|
|
530
533
|
LS: ListDirToolInput;
|
|
531
534
|
WebFetch: WebFetchToolInput;
|
|
532
535
|
ExplorationMetadata: ExplorationMetadataToolInput;
|
|
536
|
+
EnterPlanMode: EnterPlanModeToolInput;
|
|
533
537
|
ExitPlanMode: ExitPlanModeToolInput;
|
|
534
538
|
ReadMcpResource: ReadMcpResourceToolInput;
|
|
535
539
|
RecordFrame: RecordFrameToolInput;
|
package/src/events.d.ts
CHANGED
|
@@ -424,12 +424,13 @@ export interface BaseFusionEvent<ExtraData extends Record<string, unknown> = {},
|
|
|
424
424
|
data: {
|
|
425
425
|
eventId: string;
|
|
426
426
|
ownerId: string;
|
|
427
|
-
userId: string | undefined;
|
|
428
|
-
source: string;
|
|
429
|
-
tags: string[];
|
|
430
|
-
audience: string;
|
|
431
|
-
private: boolean;
|
|
432
427
|
timestamp: number;
|
|
428
|
+
correlationId?: string;
|
|
429
|
+
userId?: string;
|
|
430
|
+
source?: string;
|
|
431
|
+
tags?: string[];
|
|
432
|
+
audience?: string;
|
|
433
|
+
private?: boolean;
|
|
433
434
|
} & ExtraData;
|
|
434
435
|
attributes: {
|
|
435
436
|
eventName: string;
|
|
@@ -473,5 +474,13 @@ export declare const GitPrCreatedEvent: {
|
|
|
473
474
|
eventName: "git.pr.created";
|
|
474
475
|
version: "1";
|
|
475
476
|
};
|
|
476
|
-
export type
|
|
477
|
+
export type ClientDevtoolsSessionStartedEvent = FusionEventVariant<"client.devtools.session.started", {
|
|
478
|
+
sessionType?: string;
|
|
479
|
+
platform?: string;
|
|
480
|
+
}, {}, 1>;
|
|
481
|
+
export declare const ClientDevtoolsSessionStartedEvent: {
|
|
482
|
+
eventName: "client.devtools.session.started";
|
|
483
|
+
version: "1";
|
|
484
|
+
};
|
|
485
|
+
export type FusionEvent = AiTaskCompletedEvent | AiTaskFailedEvent | GitPrCreatedEvent | ClientDevtoolsSessionStartedEvent;
|
|
477
486
|
export {};
|