@builder.io/ai-utils 0.4.6 → 0.4.8
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 +8 -1
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -296,6 +296,7 @@ export interface GenerateCompletionStepContinue {
|
|
|
296
296
|
}
|
|
297
297
|
export type DevCommandState = "running" | "stopped" | "unset";
|
|
298
298
|
export type SetupCommandState = "not-installed" | "installing" | "installed" | "install-failed";
|
|
299
|
+
export type HttpServerState = "ok-2xx" | "error-4xx" | "error-5xx" | "error-fetch" | "stopped" | "connecting";
|
|
299
300
|
export interface CodeGenHealthStatus {
|
|
300
301
|
devServerState: DevCommandState;
|
|
301
302
|
setupState: SetupCommandState;
|
|
@@ -348,6 +349,7 @@ export interface GenerateCompletionStepDevServerState {
|
|
|
348
349
|
type: "dev-server";
|
|
349
350
|
devServerState: DevCommandState;
|
|
350
351
|
setupState: SetupCommandState;
|
|
352
|
+
httpServerState: HttpServerState;
|
|
351
353
|
}
|
|
352
354
|
export interface GenerateCompletionStepGit {
|
|
353
355
|
type: "git";
|
|
@@ -373,6 +375,10 @@ export interface GenerateCompletionStepStdio {
|
|
|
373
375
|
source: "run-command" | "tool-command" | "setup-command";
|
|
374
376
|
content: string;
|
|
375
377
|
}
|
|
378
|
+
export interface GenerateCompletionStepBatch {
|
|
379
|
+
type: "batch";
|
|
380
|
+
steps: GenerateCompletionStep[];
|
|
381
|
+
}
|
|
376
382
|
export interface GenerateCompletionStepSession {
|
|
377
383
|
type: "session";
|
|
378
384
|
title: string | undefined;
|
|
@@ -390,7 +396,7 @@ export interface GenerateCompletionStepServerToolResult {
|
|
|
390
396
|
}
|
|
391
397
|
export type GenerateCompletionStep = {
|
|
392
398
|
timestamp?: number;
|
|
393
|
-
} & (GenerateCompletionStepPlanning | GenerateCompletionStepStart | GenerateCompletionStepDelta | GenerateCompletionStepUser | GenerateCompletionStepFile | GenerateCompletionStepDiff | GenerateCompletionStepTool | GenerateCompletionStepError | GenerateCompletionStepContinue | GenerateCompletionStepWaitForInput | GenerateCompletionStepAbort | GenerateCompletionStepDone | GenerateCompletionStepUserInput | GenerateCompletionStepText | GenerateCompletionStepRestore | GenerateCompletionStepState | GenerateCompletionStepStdio | GenerateCompletionStepSession | GenerateCompletionStepServerToolResult | GenerateCompletionStepGit | GenerateCompletionStepBuilderAction | GenerateCompletionStepToolResult | GenerateCompletionStepFusionConfigPatch | GenerateCodeEventMCPStatus | GenerateCompletionStepDevServerState);
|
|
399
|
+
} & (GenerateCompletionStepPlanning | GenerateCompletionStepStart | GenerateCompletionStepDelta | GenerateCompletionStepUser | GenerateCompletionStepFile | GenerateCompletionStepDiff | GenerateCompletionStepTool | GenerateCompletionStepError | GenerateCompletionStepContinue | GenerateCompletionStepWaitForInput | GenerateCompletionStepAbort | GenerateCompletionStepDone | GenerateCompletionStepUserInput | GenerateCompletionStepText | GenerateCompletionStepRestore | GenerateCompletionStepState | GenerateCompletionStepStdio | GenerateCompletionStepSession | GenerateCompletionStepServerToolResult | GenerateCompletionStepGit | GenerateCompletionStepBuilderAction | GenerateCompletionStepToolResult | GenerateCompletionStepFusionConfigPatch | GenerateCodeEventMCPStatus | GenerateCompletionStepDevServerState | GenerateCompletionStepBatch);
|
|
394
400
|
export interface ApplyActionsResult {
|
|
395
401
|
filePath: string;
|
|
396
402
|
addedLines: number;
|
|
@@ -551,6 +557,7 @@ export interface FusionConfig {
|
|
|
551
557
|
setupCommand?: string;
|
|
552
558
|
projectId?: string;
|
|
553
559
|
workingDirectory: string;
|
|
560
|
+
bashWorkingDirectory?: string;
|
|
554
561
|
workspace?: WorkspaceConfiguration;
|
|
555
562
|
authenticateProxy?: boolean;
|
|
556
563
|
allowedCommands?: string[];
|