@builder.io/ai-utils 0.26.0 → 0.26.1
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 +9 -3
- package/src/events.d.ts +4 -0
- package/src/projects.d.ts +4 -2
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -293,7 +293,7 @@ export interface UpdateSetupValueToolInput {
|
|
|
293
293
|
};
|
|
294
294
|
reason: string;
|
|
295
295
|
}
|
|
296
|
-
export type ExitState = "verified" | "
|
|
296
|
+
export type ExitState = "verified" | "no-frontend" | "empty-project" | "user-question" | "other" | "started";
|
|
297
297
|
export interface ExitToolInput {
|
|
298
298
|
state: ExitState;
|
|
299
299
|
summary: string;
|
|
@@ -353,6 +353,7 @@ export interface ProposedConfig {
|
|
|
353
353
|
devServer: {
|
|
354
354
|
value: string | undefined;
|
|
355
355
|
verified: boolean;
|
|
356
|
+
elapsed?: number;
|
|
356
357
|
};
|
|
357
358
|
validateCommand: {
|
|
358
359
|
value: string | undefined;
|
|
@@ -442,7 +443,7 @@ export interface VerifyDevServerToolInput {
|
|
|
442
443
|
appOrigin: string;
|
|
443
444
|
defaultOrigin?: string;
|
|
444
445
|
}
|
|
445
|
-
export interface
|
|
446
|
+
export interface VerifyValidateCommandToolInput {
|
|
446
447
|
command: string;
|
|
447
448
|
timeout?: number;
|
|
448
449
|
}
|
|
@@ -555,7 +556,7 @@ export interface CodeGenToolMap {
|
|
|
555
556
|
VerifySetupCommand: VerifySetupCommandToolInput;
|
|
556
557
|
VerifyDevCommand: VerifyDevCommandToolInput;
|
|
557
558
|
VerifyDevServer: VerifyDevServerToolInput;
|
|
558
|
-
|
|
559
|
+
VerifyValidateCommand: VerifyValidateCommandToolInput;
|
|
559
560
|
VerifyRuntimeDependency: VerifyRuntimeDependencyToolInput;
|
|
560
561
|
SetEnvVariable: SetEnvVariableToolInput;
|
|
561
562
|
}
|
|
@@ -1644,6 +1645,11 @@ export interface FusionConfig {
|
|
|
1644
1645
|
* Read from project settings, with fallback to organization/space settings.
|
|
1645
1646
|
*/
|
|
1646
1647
|
maxAgentCompletions?: number;
|
|
1648
|
+
/**
|
|
1649
|
+
* If true, skip all command security policy validation (e.g. allow curl, npx, etc without restrictions).
|
|
1650
|
+
* This is a dangerous setting that removes safety guardrails - equivalent to full shell access.
|
|
1651
|
+
*/
|
|
1652
|
+
skipCommandSecurity?: boolean;
|
|
1647
1653
|
/** @deprecated use devCommand */
|
|
1648
1654
|
command?: string;
|
|
1649
1655
|
}
|
package/src/events.d.ts
CHANGED
|
@@ -481,7 +481,11 @@ export declare const GitPrCreatedEvent: {
|
|
|
481
481
|
version: "1";
|
|
482
482
|
};
|
|
483
483
|
export type ClientDevtoolsSessionStartedEvent = FusionEventVariant<"client.devtools.session.started", {
|
|
484
|
+
sessionId?: string;
|
|
484
485
|
sessionType?: string;
|
|
486
|
+
projectId?: string;
|
|
487
|
+
branchName?: string;
|
|
488
|
+
branchId?: string;
|
|
485
489
|
platform?: string;
|
|
486
490
|
}, {}, 1>;
|
|
487
491
|
export declare const ClientDevtoolsSessionStartedEvent: {
|
package/src/projects.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ export type GitAuthErrorCode = "git-auth-failed" | "git-auth-failed-root-repo" |
|
|
|
152
152
|
/**
|
|
153
153
|
* Git provider types for diagnostics.
|
|
154
154
|
*/
|
|
155
|
-
export type GitDiagnosticsProvider = "github" | "bitbucket" | "gitlab" | "azure" | "unknown";
|
|
155
|
+
export type GitDiagnosticsProvider = "github" | "selfHostedGithub" | "bitbucket" | "gitlab" | "azure" | "unknown";
|
|
156
156
|
/**
|
|
157
157
|
* Detect git provider from a repository URL (HTTPS or SSH).
|
|
158
158
|
* Used by both error diagnostics and connectivity checks for consistent provider labeling.
|
|
@@ -213,9 +213,10 @@ export interface CleanupCompletedMessage extends BaseMessage {
|
|
|
213
213
|
* Messages sent by the container orchestrator.
|
|
214
214
|
*/
|
|
215
215
|
export type ProjectsChunkMessage = InitializingMessage | FetchingGithubTokenMessage | FetchingFusionKeyMessage | CheckingAppMessage | CleaningUpAppMessage | CreatingAppMessage | CheckingIPMessage | AllocatingIPMessage | CheckingMachineMessage | CheckingVolumeMessage | ForkingVolumeMessage | RetryingWithNewRegionMessage | WaitingBeforePollingMessage | PollingMachineStatusMessage | WarningStateMessage | PingMessage | DebugMessage | ErrorMessage | InfoMessage | WarningMessage | MachineStatusMessage | LogsMessage | ConfigStatusMessage | AppCreatedMessage | MachineCreatedMessage | IpAllocatedMessage | VolumeForkedMessage | ReadyMessage | ErrorStateMessage | CleanupCompletedMessage;
|
|
216
|
+
export type GitProvider = "github" | "selfHostedGithub" | "bitbucket" | "gitlab" | "azure";
|
|
216
217
|
export interface GitConfig {
|
|
217
218
|
url: string;
|
|
218
|
-
provider:
|
|
219
|
+
provider: GitProvider | "unknown";
|
|
219
220
|
token: string | undefined;
|
|
220
221
|
}
|
|
221
222
|
export type GitConfigs = Record<string, GitConfig>;
|
|
@@ -629,6 +630,7 @@ export interface Project {
|
|
|
629
630
|
postMergeMemories?: boolean;
|
|
630
631
|
commitInstructions?: string;
|
|
631
632
|
maxAgentCompletions?: number;
|
|
633
|
+
skipCommandSecurity?: boolean;
|
|
632
634
|
httpsServerKeyPath?: string;
|
|
633
635
|
httpsServerCertPath?: string;
|
|
634
636
|
httpsServerCaPath?: string;
|