@osfactory/har 0.32.2 → 0.32.3
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 +13 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75041,6 +75041,12 @@ function computeWorktreeSnapshot(checkoutDir) {
|
|
|
75041
75041
|
|
|
75042
75042
|
// src/core/validations.ts
|
|
75043
75043
|
var VALIDATIONS_DIR = "validations";
|
|
75044
|
+
function resolveValidationCheckoutDir(input) {
|
|
75045
|
+
const candidates = [input.worktreePath, input.workDir, input.harnessRoot].filter(
|
|
75046
|
+
(value) => Boolean(value)
|
|
75047
|
+
);
|
|
75048
|
+
return candidates.find(isCheckoutRoot) ?? candidates[0] ?? input.harnessRoot;
|
|
75049
|
+
}
|
|
75044
75050
|
function getValidationsDir(checkoutDir) {
|
|
75045
75051
|
return path36.join(checkoutDir, ".har", VALIDATIONS_DIR);
|
|
75046
75052
|
}
|
|
@@ -76897,7 +76903,12 @@ Usage from Cursor / Claude / Codex (@osfactory/otel-hook) will appear under Work
|
|
|
76897
76903
|
if (verification) {
|
|
76898
76904
|
try {
|
|
76899
76905
|
const harnessRoot = resolveHarnessRoot(options.repoPath);
|
|
76900
|
-
const
|
|
76906
|
+
const session = readSlotRegistry(harnessRoot, options.agentId);
|
|
76907
|
+
const checkoutDir = resolveValidationCheckoutDir({
|
|
76908
|
+
worktreePath: session?.worktreePath,
|
|
76909
|
+
workDir: resolveAgentWorkDir(harnessRoot, options.agentId),
|
|
76910
|
+
harnessRoot
|
|
76911
|
+
});
|
|
76901
76912
|
const runId = typeof result.data === "object" && result.data !== null && !Array.isArray(result.data) ? result.data.runId : void 0;
|
|
76902
76913
|
const validation2 = recordValidation({
|
|
76903
76914
|
checkoutDir,
|
|
@@ -76907,7 +76918,6 @@ Usage from Cursor / Claude / Codex (@osfactory/otel-hook) will appear under Work
|
|
|
76907
76918
|
runId,
|
|
76908
76919
|
agentId: options.agentId
|
|
76909
76920
|
});
|
|
76910
|
-
const session = readSlotRegistry(harnessRoot, options.agentId);
|
|
76911
76921
|
if (session?.workUnitId && session.attemptId) {
|
|
76912
76922
|
bindValidationToAttempt(harnessRoot, {
|
|
76913
76923
|
workUnitId: session.workUnitId,
|
|
@@ -89726,10 +89736,7 @@ async function handleWriteEnv(argv) {
|
|
|
89726
89736
|
};
|
|
89727
89737
|
appendTelemetryEnvToFile(envFile, attrs);
|
|
89728
89738
|
if (isTelemetryEnabled()) {
|
|
89729
|
-
ensureOtelHooks({
|
|
89730
|
-
setupAgents: false,
|
|
89731
|
-
resourceAttributes: buildOtelResourceAttributes(attrs)
|
|
89732
|
-
});
|
|
89739
|
+
ensureOtelHooks({ setupAgents: false });
|
|
89733
89740
|
}
|
|
89734
89741
|
success(`Wrote session attribution to ${envFile}`);
|
|
89735
89742
|
}
|