bitfab-cli 0.2.177 → 0.2.179
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 +17 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30782,7 +30782,20 @@ var traceNodeShape = external_exports.object({
|
|
|
30782
30782
|
framework: external_exports.string().optional(),
|
|
30783
30783
|
sampleInput: external_exports.unknown().optional(),
|
|
30784
30784
|
sampleOutput: external_exports.unknown().optional(),
|
|
30785
|
-
analysis: traceNodeAnalysisShape.optional()
|
|
30785
|
+
analysis: traceNodeAnalysisShape.optional(),
|
|
30786
|
+
// Observed current state of the code, NOT a recommendation. Surfaced as an
|
|
30787
|
+
// explicit field (rather than left to .passthrough()) for the same reason as
|
|
30788
|
+
// `analysis`: so the tool's JSON Schema shows the analyzer these exist and it
|
|
30789
|
+
// actually populates them. `alreadyTraced`: an existing span already wraps
|
|
30790
|
+
// this node (a hand-written withSpan/@span/bitfab_span, or a framework
|
|
30791
|
+
// auto-capture). `alreadyMocked`: that existing span is already tagged to
|
|
30792
|
+
// serve its recorded output on replay. Only analyze-repo sets these, when it
|
|
30793
|
+
// plans an already-instrumented workflow, so the delta between what's captured
|
|
30794
|
+
// now and what it recommends is recorded on the plan for later analysis. This
|
|
30795
|
+
// is data tracking only - nothing in the UI renders differently. Omit on
|
|
30796
|
+
// greenfield.
|
|
30797
|
+
alreadyTraced: external_exports.boolean().optional(),
|
|
30798
|
+
alreadyMocked: external_exports.boolean().optional()
|
|
30786
30799
|
}).passthrough();
|
|
30787
30800
|
var tracePlanTreeShape = external_exports.object({
|
|
30788
30801
|
rootId: external_exports.string(),
|
|
@@ -30791,6 +30804,7 @@ var tracePlanTreeShape = external_exports.object({
|
|
|
30791
30804
|
|
|
30792
30805
|
// src/claude.ts
|
|
30793
30806
|
import { spawn as spawn5 } from "child_process";
|
|
30807
|
+
import crypto10 from "crypto";
|
|
30794
30808
|
import fs20 from "fs";
|
|
30795
30809
|
import os15 from "os";
|
|
30796
30810
|
import path17 from "path";
|
|
@@ -31013,7 +31027,9 @@ async function runClaudeAnalyzeRepo(captureOverride, limit) {
|
|
|
31013
31027
|
throw new Error(auth.message);
|
|
31014
31028
|
}
|
|
31015
31029
|
const logPath = analyzeRepoLogPath();
|
|
31030
|
+
const agentRunId = crypto10.randomUUID();
|
|
31016
31031
|
const env = { ...process.env };
|
|
31032
|
+
env.BITFAB_AGENT_RUN_ID = agentRunId;
|
|
31017
31033
|
if (captureOverride !== void 0) {
|
|
31018
31034
|
env.BITFAB_CAPTURE_SESSIONS = captureOverride ? "1" : "0";
|
|
31019
31035
|
}
|