bitfab-cli 0.2.376 → 0.2.377
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/dist/index.js +11 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23939,6 +23939,16 @@ var deleteAssertionCategory = {
|
|
|
23939
23939
|
description: "Delete an assertion category from this organization. Its assertions are kept and become uncategorized. Their existing verdicts are kept.",
|
|
23940
23940
|
inputSchema: { id: external_exports.uuid().describe("ID of the category to delete.") }
|
|
23941
23941
|
};
|
|
23942
|
+
var generateTraceAssertions = {
|
|
23943
|
+
name: "generate_trace_assertions",
|
|
23944
|
+
title: "Generate Trace Assertions",
|
|
23945
|
+
description: "Generate review-ready assertion drafts from what one original trace actually did. Call this when the user asks Bitfab to generate assertions, infer expected behavior from a trace, or turn a known root cause into regression checks. Bitfab reads the organization's existing assertion categories, selects the categories supported by trace evidence, and generates assertions one category at a time. The generated assertions are saved awaiting human review, so they are not checked on replays until a person approves them. The call is idempotent by default and returns the assertions from the existing generation run instead of spending model calls again. Set regenerate to true to archive the prior generated drafts and replace them. Human-authored assertions are never replaced. Pass rootCause when the user knows why the trace was wrong; it narrows the evidence and produces smaller assertions. A replay trace id is refused because assertions belong to the original trace.",
|
|
23946
|
+
inputSchema: {
|
|
23947
|
+
traceId: external_exports.uuid().describe("The ORIGINAL trace to generate assertions for. A replay trace id is refused, and the error names the original to retry with."),
|
|
23948
|
+
rootCause: external_exports.string().trim().min(1).max(1e4).optional().describe("Optional known cause of the bad behavior. Use it to focus generation on the smallest assertions that would catch this failure."),
|
|
23949
|
+
regenerate: external_exports.preprocess(parseJsonString, external_exports.boolean()).optional().describe("Set true to rerun generation and replace prior generated drafts. Omit or set false to reuse the existing generation result.")
|
|
23950
|
+
}
|
|
23951
|
+
};
|
|
23942
23952
|
var saveTraceAssertions = {
|
|
23943
23953
|
name: "save_trace_assertions",
|
|
23944
23954
|
title: "Save Trace Assertions",
|
|
@@ -24270,6 +24280,7 @@ var ALL_TOOL_CONTRACTS = [
|
|
|
24270
24280
|
listAssertionCategories,
|
|
24271
24281
|
getAssertionCategory,
|
|
24272
24282
|
deleteAssertionCategory,
|
|
24283
|
+
generateTraceAssertions,
|
|
24273
24284
|
saveTraceAssertions,
|
|
24274
24285
|
getTraceAssertions,
|
|
24275
24286
|
archiveTraceAssertions,
|
package/package.json
CHANGED