@builder.io/dev-tools 1.46.0-dev.202604200927.a260b0bce → 1.46.0-dev.202604201028.a260b0bce

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.
@@ -117,6 +117,6 @@ export declare function runFusionCommand({ sys, args, existingSession, }: {
117
117
  args: LaunchArgs;
118
118
  existingSession?: CodeGenSession;
119
119
  }): Promise<void>;
120
- declare const PUBLIC_METHODS: ("fileExists" | "readFile" | "listDir" | "getAllFiles" | "abort" | "abortSetupCommand" | "abortValidateCommand" | "switchSessionMode" | "switchModelOverride" | "queueSystemReminder" | "setDefaultAutoPush" | "setPrivacyMode" | "loadHistory" | "loadMoreTurns" | "setCustomInstructions" | "pushRepoV2" | "uploadBackup" | "pushChanges" | "abortMerge" | "syncChangesFromRemote" | "createTerminal" | "updateTerminal" | "writeTerminal" | "signalTerminal" | "disposeTerminal" | "restartTerminal" | "searchFiles" | "searchFileTree" | "collectRepoMetrics" | "restoreFromCompletionId" | "restoreBeforeCompletionId" | "undoLastUserMessage" | "sendFeedback" | "clearSession" | "clearMessageQueue" | "updateMessage" | "flushMessageQueue" | "sendMessage" | "setProxyOrigin" | "toolFullfilment" | "abortToolCall" | "stopEventLoop" | "configureDevOrchestrator" | "tsServerInit" | "tsServerOpenFile" | "tsServerChangeFile" | "tsServerCloseFile" | "tsServerGetCompletions" | "tsServerGetCompletionDetails" | "tsServerGetDefinition" | "tsServerGetTypeDefinition" | "tsServerGetQuickInfo" | "tsServerGetReferences" | "tsServerGetSignatureHelp" | "tsServerRequestDiagnostics" | "tsServerGetRenameLocations" | "tsServerGetNavTree" | "tsServerOrganizeImports" | "tsServerGetInlayHints" | "tsServerGetCodeFixes" | "tsServerGetApplicableRefactors" | "tsServerGetEditsForRefactor" | "tsServerGetImplementation" | "tsServerGetSelectionRange" | "tsServerGetLinkedEditingRange" | "tsServerGetFormatRange" | "manualCommit" | "launchEditor" | "readFileWithChecksum" | "readBinaryFile" | "getSingleFileDiff" | "discardFileChanges" | "revertDiscard" | "writeFile" | "listCustomInstructions" | "deleteFile" | "getDiff")[];
120
+ declare const PUBLIC_METHODS: ("fileExists" | "readFile" | "listDir" | "getAllFiles" | "abort" | "pushRepoV2" | "pushChanges" | "syncChangesFromRemote" | "flushMessageQueue" | "abortSetupCommand" | "abortValidateCommand" | "switchSessionMode" | "switchModelOverride" | "queueSystemReminder" | "setDefaultAutoPush" | "setPrivacyMode" | "loadHistory" | "loadMoreTurns" | "setCustomInstructions" | "uploadBackup" | "abortMerge" | "createTerminal" | "updateTerminal" | "writeTerminal" | "signalTerminal" | "disposeTerminal" | "restartTerminal" | "searchFiles" | "searchFileTree" | "collectRepoMetrics" | "restoreFromCompletionId" | "restoreBeforeCompletionId" | "undoLastUserMessage" | "sendFeedback" | "clearSession" | "clearMessageQueue" | "updateMessage" | "sendMessage" | "setProxyOrigin" | "toolFullfilment" | "abortToolCall" | "stopEventLoop" | "configureDevOrchestrator" | "tsServerInit" | "tsServerOpenFile" | "tsServerChangeFile" | "tsServerCloseFile" | "tsServerGetCompletions" | "tsServerGetCompletionDetails" | "tsServerGetDefinition" | "tsServerGetTypeDefinition" | "tsServerGetQuickInfo" | "tsServerGetReferences" | "tsServerGetSignatureHelp" | "tsServerRequestDiagnostics" | "tsServerGetRenameLocations" | "tsServerGetNavTree" | "tsServerOrganizeImports" | "tsServerGetInlayHints" | "tsServerGetCodeFixes" | "tsServerGetApplicableRefactors" | "tsServerGetEditsForRefactor" | "tsServerGetImplementation" | "tsServerGetSelectionRange" | "tsServerGetLinkedEditingRange" | "tsServerGetFormatRange" | "manualCommit" | "launchEditor" | "readFileWithChecksum" | "readBinaryFile" | "getSingleFileDiff" | "discardFileChanges" | "revertDiscard" | "writeFile" | "listCustomInstructions" | "deleteFile" | "getDiff")[];
121
121
  export type PublicCodeGenSession = Pick<InstanceType<typeof CodeGenSession>, (typeof PUBLIC_METHODS)[0]>;
122
122
  export {};
@@ -26,6 +26,15 @@ interface ProgressSnapshot {
26
26
  lastFrameFileName?: string;
27
27
  lastThinking?: string;
28
28
  }
29
+ export interface StateEntry {
30
+ ts: number;
31
+ agentId: string;
32
+ kind: "test_outcome" | "escalation" | "ui_issue";
33
+ status?: "accepted" | "rejected";
34
+ reason?: string;
35
+ test_case_id?: string;
36
+ [key: string]: any;
37
+ }
29
38
  export declare class TimelineCollector {
30
39
  #private;
31
40
  constructor(sessionId: string, options: TimelineCollectorOptions);
@@ -100,6 +109,29 @@ export declare class TimelineCollector {
100
109
  mergeTestCaseResults(results: Array<Record<string, any>>): void;
101
110
  /** Returns all merged test case results from child executors. */
102
111
  getMergedTestCaseResults(): Record<string, any>[];
112
+ /**
113
+ * Path to this collector's append-only state file.
114
+ * One JSONL line per tool invocation that produces a result
115
+ * (ReportTestOutcome, EscalateToPlanner, ReportUIIssue). Survives
116
+ * process crashes and lets `finalize()` reconstruct results from disk.
117
+ */
118
+ getStateFilePath(): string;
119
+ /** Record a test outcome (accepted or rejected) to the state file. */
120
+ onTestOutcome(input: Record<string, any>, status: "accepted" | "rejected", reason?: string): void;
121
+ /** Record an escalation to the state file. */
122
+ onEscalation(input: Record<string, any>): void;
123
+ /** Record a UI issue to the state file. */
124
+ onUIIssue(input: Record<string, any>): void;
125
+ /**
126
+ * Merge a child agent's state file into this one. Called from
127
+ * mergeChildTimeline so parent's finalize() sees both own and child state.
128
+ */
129
+ mergeChildStateFile(childPath: string): void;
130
+ /**
131
+ * Read all state entries from disk. Used by finalize-from-disk on
132
+ * crash recovery. Malformed lines are skipped silently.
133
+ */
134
+ readState(): StateEntry[];
103
135
  getHighlightFrames(): CollectedFrame[];
104
136
  getHighlightImages(): ContentMessageItemImage[];
105
137
  getHighlightMetadataFrames(): Array<{