@databutton/firebase-types 1.70.15 → 1.70.16
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.
|
@@ -1327,32 +1327,75 @@ export interface WriteAttemptStepFailure extends WriteAttemptStepBase {
|
|
|
1327
1327
|
success: false;
|
|
1328
1328
|
}
|
|
1329
1329
|
export type WriteAttemptStep = WriteAttemptStepSuccess | WriteAttemptStepFailure;
|
|
1330
|
-
export interface
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1330
|
+
export interface CodeWritingLogMessage {
|
|
1331
|
+
level?: "info" | "error" | "warning" | "success";
|
|
1332
|
+
message: string;
|
|
1333
|
+
}
|
|
1334
|
+
export interface CodeValidationResult {
|
|
1335
|
+
tool: string;
|
|
1336
|
+
returnCode: number | null;
|
|
1337
|
+
}
|
|
1338
|
+
export interface SingleWriteAttempt {
|
|
1339
|
+
operation: "create" | "update";
|
|
1340
|
+
/**
|
|
1341
|
+
* Whether the attempt was successful or not.
|
|
1342
|
+
*/
|
|
1334
1343
|
success: boolean;
|
|
1344
|
+
/**
|
|
1345
|
+
* Short string reason for failure for categorisation.
|
|
1346
|
+
*/
|
|
1335
1347
|
failureReason: string | null;
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1348
|
+
/**
|
|
1349
|
+
* Logs for the attempt related to this single file.
|
|
1350
|
+
*/
|
|
1351
|
+
logs: CodeWritingLogMessage[];
|
|
1352
|
+
/**
|
|
1353
|
+
* Steps for the attempt related to this single file.
|
|
1354
|
+
*/
|
|
1340
1355
|
steps: WriteAttemptStep[];
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
codeValidationResults: {
|
|
1345
|
-
tool: string;
|
|
1346
|
-
returnCode: number | null;
|
|
1347
|
-
}[];
|
|
1356
|
+
/**
|
|
1357
|
+
* The code that was written in this attempt.
|
|
1358
|
+
*/
|
|
1348
1359
|
code: {
|
|
1360
|
+
filepath: string;
|
|
1361
|
+
language: string;
|
|
1349
1362
|
before: string;
|
|
1350
1363
|
beforeSizeInChars: number;
|
|
1351
1364
|
after: string | null;
|
|
1352
1365
|
afterSizeInChars: number;
|
|
1353
|
-
language: string;
|
|
1354
|
-
filepath: string;
|
|
1355
1366
|
};
|
|
1367
|
+
timings: {
|
|
1368
|
+
[key: string]: number;
|
|
1369
|
+
};
|
|
1370
|
+
codeValidationResults: CodeValidationResult[];
|
|
1371
|
+
}
|
|
1372
|
+
export interface WriteAttempt {
|
|
1373
|
+
projectId: string;
|
|
1374
|
+
createdBy: PerformedBy;
|
|
1375
|
+
/**
|
|
1376
|
+
* Typically tool call id or similar.
|
|
1377
|
+
*/
|
|
1378
|
+
reference: string;
|
|
1379
|
+
/**
|
|
1380
|
+
* Whether the attempt was successful or not.
|
|
1381
|
+
*/
|
|
1382
|
+
success: boolean;
|
|
1383
|
+
/**
|
|
1384
|
+
* All files that were written in this attempt.
|
|
1385
|
+
*/
|
|
1386
|
+
files: SingleWriteAttempt[];
|
|
1387
|
+
/**
|
|
1388
|
+
* Logs for the attempt not directly related to a single file.
|
|
1389
|
+
*/
|
|
1390
|
+
logs: CodeWritingLogMessage[];
|
|
1391
|
+
/**
|
|
1392
|
+
* Short string reason for failure for categorisation.
|
|
1393
|
+
*/
|
|
1394
|
+
failureReason: string | null;
|
|
1395
|
+
/**
|
|
1396
|
+
* Arbitrary metadata, can be used for anything.
|
|
1397
|
+
* For example tagging experiments.
|
|
1398
|
+
*/
|
|
1356
1399
|
meta: Record<string, string>;
|
|
1357
1400
|
}
|
|
1358
1401
|
export interface PatchAttempt {
|