@builder.io/dev-tools 1.6.36-dev.202505072208.9fdb0d5a → 1.6.36

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.
@@ -14,7 +14,6 @@ export interface ToolResolution {
14
14
  export interface ProvidedToolContext {
15
15
  commandCtx?: RunCommandCtx;
16
16
  allowedCommands?: RegExp[];
17
- commitMode?: 'commits' | 'draft-prs' | 'prs';
18
17
  }
19
18
  export interface ToolContext extends ProvidedToolContext {
20
19
  sys: DevToolsSys;
@@ -60,36 +60,6 @@ export declare class CodeGenSession {
60
60
  constructor(options: CodeGenSessionOptions);
61
61
  get workingDirectory(): string;
62
62
  initializeSession(): Promise<void>;
63
- pushRepo(repoFullName: string, githubToken: string): Promise<{
64
- success: boolean;
65
- error: string;
66
- details?: undefined;
67
- } | {
68
- success: boolean;
69
- error?: undefined;
70
- details?: undefined;
71
- } | {
72
- success: boolean;
73
- error: string;
74
- details: string;
75
- }>;
76
- createPR(repoFullName: string, githubToken: string): Promise<{
77
- success: boolean;
78
- prUrl: any;
79
- prNumber: any;
80
- error?: undefined;
81
- details?: undefined;
82
- } | {
83
- success: boolean;
84
- error: string;
85
- details: unknown;
86
- prUrl?: undefined;
87
- prNumber?: undefined;
88
- }>;
89
- setCommitMode(commitMode: "commits" | "draft-prs" | "prs"): void;
90
- pushChanges(pullFirst?: boolean): Promise<void>;
91
- hasChangesRelativeToRemote(): Promise<boolean>;
92
- pullLatestFromRemote(): Promise<void>;
93
63
  /**
94
64
  * Get the current commit hash
95
65
  */
@@ -105,7 +75,7 @@ export declare class CodeGenSession {
105
75
  /**
106
76
  * Helper to run git commands
107
77
  */
108
- runGitCommand(command: string, grabStderr?: boolean): Promise<string>;
78
+ runGitCommand(command: string): Promise<string>;
109
79
  /**
110
80
  * Check if Fusion is enabled for this session
111
81
  */
@@ -144,7 +114,7 @@ export declare class CodeGenSession {
144
114
  abort(): void;
145
115
  stopEventLoop(): Promise<void>;
146
116
  close(): Promise<void>;
147
- connectToEventLoop(shouldReplay: boolean, onStep: (step: GenerateCompletionStep) => void): Promise<() => void>;
117
+ connectToEventLoop(shouldReplay: boolean, onStep: (step: GenerateCompletionStep) => void): () => void;
148
118
  waitForEventLoop(): Promise<void>;
149
119
  agentCompletion(userMessage: GenerateUserMessage, signal: AbortSignal | undefined, onStep: (step: GenerateCompletionStep) => void): Promise<void>;
150
120
  commitWorkInProgress(lastTurn: CodegenTurn): Promise<string | undefined>;
@@ -31,10 +31,6 @@ export type LaunchStatus = {
31
31
  configured?: boolean;
32
32
  repo?: string;
33
33
  branch?: string;
34
- /**
35
- * The branch whose contents are being pushed to the remote repo (whether to a PR or directly to the repo).
36
- */
37
- branchTargettingRemote?: string;
38
34
  error?: string | undefined;
39
35
  current?: string | undefined;
40
36
  expected?: string | undefined;
@@ -74,5 +70,4 @@ export declare const getGitHubRemoteUrl: ({ repoFullName, githubToken, }: {
74
70
  repoFullName: string;
75
71
  githubToken: string | undefined;
76
72
  }) => string;
77
- export declare const getActiveBranchCommand: () => string;
78
- export declare const getActiveBranch: (cwd: string) => string;
73
+ export declare const getActiveBranch: () => string;
@@ -17,7 +17,7 @@ export declare const NUMBER_TYPES: string[];
17
17
  export declare const BOOLEAN_TYPES: string[];
18
18
  export declare const ARRAY_TYPES: string[];
19
19
  export declare const OBJECT_TYPES: string[];
20
- export declare function getPrimitiveType(t: string): "string" | "object" | "number" | "boolean" | "array";
20
+ export declare function getPrimitiveType(t: string): "number" | "string" | "boolean" | "object" | "array";
21
21
  export declare function removeQuotes(text: string): string;
22
22
  export declare const resolveType: (sys: DevToolsSys, checker: ts.TypeChecker, type: ts.Type) => string[] | undefined;
23
23
  export declare const typeToString: (sys: DevToolsSys, checker: ts.TypeChecker, type: ts.Type) => string;
@@ -8,4 +8,4 @@ export declare function objectExpressionToObjectValue(sys: DevToolsSys, objectLi
8
8
  };
9
9
  export declare function convertArrayExpressionToJsArray(sys: DevToolsSys, arr: ts.ArrayLiteralExpression): any[];
10
10
  export declare function getTextOfPropertyName(sys: DevToolsSys, prop: ts.PropertyAssignment | ts.ObjectLiteralElementLike | undefined): string | undefined;
11
- export declare function valueToExpression(sys: DevToolsSys, val: any): ts.ObjectLiteralExpression | ts.Identifier | ts.StringLiteral | ts.NumericLiteral | ts.ArrayLiteralExpression | ts.TrueLiteral | ts.FalseLiteral;
11
+ export declare function valueToExpression(sys: DevToolsSys, val: any): ts.ObjectLiteralExpression | ts.Identifier | ts.StringLiteral | ts.NumericLiteral | ts.TrueLiteral | ts.FalseLiteral | ts.ArrayLiteralExpression;