@builder.io/dev-tools 1.6.36-dev.202505072304.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,38 +60,6 @@ export declare class CodeGenSession {
60
60
  constructor(options: CodeGenSessionOptions);
61
61
  get workingDirectory(): string;
62
62
  initializeSession(): Promise<void>;
63
- setRepoUrl(repoUrl: string): void;
64
- setPrUrl(prUrl: string): void;
65
- pushRepo(repoFullName: string, githubToken: string): Promise<{
66
- success: boolean;
67
- error: string;
68
- details?: undefined;
69
- } | {
70
- success: boolean;
71
- error?: undefined;
72
- details?: undefined;
73
- } | {
74
- success: boolean;
75
- error: string;
76
- details: string;
77
- }>;
78
- createPR(repoFullName: string, githubToken: string): Promise<{
79
- success: boolean;
80
- prUrl: any;
81
- prNumber: any;
82
- error?: undefined;
83
- details?: undefined;
84
- } | {
85
- success: boolean;
86
- error: string;
87
- details: unknown;
88
- prUrl?: undefined;
89
- prNumber?: undefined;
90
- }>;
91
- setCommitMode(commitMode: "commits" | "draft-prs" | "prs"): void;
92
- pushChanges(pullFirst?: boolean): Promise<void>;
93
- hasChangesRelativeToRemote(): Promise<boolean>;
94
- pullLatestFromRemote(): Promise<void>;
95
63
  /**
96
64
  * Get the current commit hash
97
65
  */
@@ -107,7 +75,7 @@ export declare class CodeGenSession {
107
75
  /**
108
76
  * Helper to run git commands
109
77
  */
110
- runGitCommand(command: string, grabStderr?: boolean): Promise<string>;
78
+ runGitCommand(command: string): Promise<string>;
111
79
  /**
112
80
  * Check if Fusion is enabled for this session
113
81
  */
@@ -146,7 +114,7 @@ export declare class CodeGenSession {
146
114
  abort(): void;
147
115
  stopEventLoop(): Promise<void>;
148
116
  close(): Promise<void>;
149
- connectToEventLoop(shouldReplay: boolean, onStep: (step: GenerateCompletionStep) => void): Promise<() => void>;
117
+ connectToEventLoop(shouldReplay: boolean, onStep: (step: GenerateCompletionStep) => void): () => void;
150
118
  waitForEventLoop(): Promise<void>;
151
119
  agentCompletion(userMessage: GenerateUserMessage, signal: AbortSignal | undefined, onStep: (step: GenerateCompletionStep) => void): Promise<void>;
152
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;