@builder.io/ai-utils 0.39.0 → 0.40.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 +7 -4
- package/src/events.d.ts +31 -1
- package/src/events.js +4 -0
- package/src/projects.d.ts +5 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -60,6 +60,13 @@ export interface CustomAgentDefinition {
|
|
|
60
60
|
filePath?: string;
|
|
61
61
|
/** Default reasoning effort level for this agent type. Overrides the session default. */
|
|
62
62
|
reasoning?: ReasoningEffort;
|
|
63
|
+
/**
|
|
64
|
+
* When true and the parent session has an explicit model override (e.g. set
|
|
65
|
+
* via org/project PR-reviewer settings), that model is used for this agent
|
|
66
|
+
* instead of the agent's own `model` / `roundRobinModels` defaults.
|
|
67
|
+
* Has no effect when no session-level model override is present.
|
|
68
|
+
*/
|
|
69
|
+
inheritSessionModel?: boolean;
|
|
63
70
|
}
|
|
64
71
|
export type CodeGenFramework = "react" | "html" | "mitosis" | "react-native" | "angular" | "vue" | "svelte" | "qwik" | "solid" | "marko" | "swiftui" | "jetpack-compose" | "flutter";
|
|
65
72
|
export type CodeGenStyleLibrary = "tailwind" | "tailwind-precise" | "emotion" | "styled-components" | "styled-jsx" | "react-native" | undefined;
|
|
@@ -190,9 +197,6 @@ export interface AgentToolInput {
|
|
|
190
197
|
origin_channel_id?: string;
|
|
191
198
|
attachmentUrls?: string[];
|
|
192
199
|
}
|
|
193
|
-
export interface ListDirToolInput {
|
|
194
|
-
path: string;
|
|
195
|
-
}
|
|
196
200
|
export interface RevertToolInput {
|
|
197
201
|
checkpoint_id: string;
|
|
198
202
|
}
|
|
@@ -691,7 +695,6 @@ export interface CodeGenToolMap {
|
|
|
691
695
|
TodoRead: TodoReadToolInput;
|
|
692
696
|
TodoWrite: TodoWriteToolInput;
|
|
693
697
|
BuilderEdit: BuilderEditToolInput;
|
|
694
|
-
LS: ListDirToolInput;
|
|
695
698
|
WebFetch: WebFetchToolInput;
|
|
696
699
|
ExplorationMetadata: ExplorationMetadataToolInput;
|
|
697
700
|
EnterPlanMode: EnterPlanModeToolInput;
|
package/src/events.d.ts
CHANGED
|
@@ -505,6 +505,36 @@ export declare const GitPrMergedV1: {
|
|
|
505
505
|
eventName: "git.pr.merged";
|
|
506
506
|
version: "1";
|
|
507
507
|
};
|
|
508
|
+
export type BotMentionExternalPrV1 = FusionEventVariant<"bot.mention.external-pr", {
|
|
509
|
+
projectId: string;
|
|
510
|
+
repoFullName: string;
|
|
511
|
+
prNumber: number;
|
|
512
|
+
comment: string;
|
|
513
|
+
commentLink?: string;
|
|
514
|
+
commentNumericId?: number;
|
|
515
|
+
commentIdStr: string;
|
|
516
|
+
deliveryId: string;
|
|
517
|
+
commentType: "issue" | "pr";
|
|
518
|
+
userName?: string;
|
|
519
|
+
gitUserId?: string;
|
|
520
|
+
hostname?: string;
|
|
521
|
+
prHeadRef?: string;
|
|
522
|
+
isFork?: boolean;
|
|
523
|
+
filePath?: string;
|
|
524
|
+
startLine?: number;
|
|
525
|
+
endLine?: number;
|
|
526
|
+
diffHunk?: string;
|
|
527
|
+
replyToCommentId?: number;
|
|
528
|
+
inReplyToCommentId?: number;
|
|
529
|
+
prTitle?: string;
|
|
530
|
+
authorAssociation?: string;
|
|
531
|
+
}, {
|
|
532
|
+
projectId: string;
|
|
533
|
+
}, 1>;
|
|
534
|
+
export declare const BotMentionExternalPrV1: {
|
|
535
|
+
eventName: "bot.mention.external-pr";
|
|
536
|
+
version: "1";
|
|
537
|
+
};
|
|
508
538
|
export type ClientDevtoolsSessionStartedEvent = FusionEventVariant<"client.devtools.session.started", {
|
|
509
539
|
sessionId?: string;
|
|
510
540
|
sessionType?: string;
|
|
@@ -723,7 +753,7 @@ export interface SendMessageToOrgAgentInput {
|
|
|
723
753
|
*/
|
|
724
754
|
autoCreateProject?: boolean;
|
|
725
755
|
}
|
|
726
|
-
export type FusionEvent = AiTaskCompletedEvent | AiTaskFailedEvent | ClientDevtoolsSessionStartedEvent | ClientDevtoolsSessionIdleEventV1 | FusionProjectCreatedV1 | SetupAgentCompletedV1 | GitPrMergedV1 | GitPrCreatedV1 | GitPrClosedV1 | ForceSetupAgentV1 | ClawMessageSentV1 | CodegenCompletionV1 | CodegenUserPromptV1 | GitWebhooksRegisterV1 | FusionProjectSettingsUpdatedV1 | VideoRecordingCompletedV1 | FusionBranchCreatedV1 | FusionBranchContainerStartedV1 | FusionBranchMessageSentV1 | FusionBranchFailedV1;
|
|
756
|
+
export type FusionEvent = AiTaskCompletedEvent | AiTaskFailedEvent | ClientDevtoolsSessionStartedEvent | ClientDevtoolsSessionIdleEventV1 | FusionProjectCreatedV1 | SetupAgentCompletedV1 | GitPrMergedV1 | GitPrCreatedV1 | GitPrClosedV1 | ForceSetupAgentV1 | ClawMessageSentV1 | CodegenCompletionV1 | CodegenUserPromptV1 | GitWebhooksRegisterV1 | FusionProjectSettingsUpdatedV1 | VideoRecordingCompletedV1 | FusionBranchCreatedV1 | FusionBranchContainerStartedV1 | FusionBranchMessageSentV1 | FusionBranchFailedV1 | BotMentionExternalPrV1;
|
|
727
757
|
export interface ModelPermissionRequiredEvent {
|
|
728
758
|
type: "assistant.model.permission.required";
|
|
729
759
|
data: {
|
package/src/events.js
CHANGED
|
@@ -18,6 +18,10 @@ export const GitPrMergedV1 = {
|
|
|
18
18
|
eventName: "git.pr.merged",
|
|
19
19
|
version: "1",
|
|
20
20
|
};
|
|
21
|
+
export const BotMentionExternalPrV1 = {
|
|
22
|
+
eventName: "bot.mention.external-pr",
|
|
23
|
+
version: "1",
|
|
24
|
+
};
|
|
21
25
|
export const ClientDevtoolsSessionStartedEvent = {
|
|
22
26
|
eventName: "client.devtools.session.started",
|
|
23
27
|
version: "1",
|
package/src/projects.d.ts
CHANGED
|
@@ -675,6 +675,11 @@ export interface Project {
|
|
|
675
675
|
httpsServerHonorCipherOrder?: boolean;
|
|
676
676
|
httpsServerRequestCert?: boolean;
|
|
677
677
|
httpsServerRejectUnauthorized?: boolean;
|
|
678
|
+
/**
|
|
679
|
+
* When true, this project is the preferred project for its connected repository.
|
|
680
|
+
* Agents will pick this project when asked to do something with the connected repository.
|
|
681
|
+
*/
|
|
682
|
+
isPreferredForRepo?: boolean;
|
|
678
683
|
};
|
|
679
684
|
screenshot: string | null;
|
|
680
685
|
isExample?: boolean;
|