nexus-agents 8.37.0 → 8.37.2
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/{chunk-XCT5FNJU.js → chunk-2IMYUMLK.js} +2 -2
- package/dist/{chunk-ICPQ544Q.js → chunk-DXAAEYBY.js} +3 -3
- package/dist/{chunk-OU6IAGOV.js → chunk-G5OBY2WC.js} +3 -3
- package/dist/{chunk-U4KNY4J2.js → chunk-JF4MY72A.js} +2 -2
- package/dist/{chunk-U74LSS4P.js → chunk-N27VGDQA.js} +2 -2
- package/dist/{chunk-3DQP7YR3.js → chunk-NS4LJ6ZB.js} +828 -855
- package/dist/chunk-NS4LJ6ZB.js.map +1 -0
- package/dist/cli.js +11 -13
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-LJFSBPXC.js → consensus-vote-QTSXJFNQ.js} +4 -4
- package/dist/{improvement-review-2R4ZJJSI.js → improvement-review-ECY7JP5B.js} +4 -4
- package/dist/index.d.ts +12 -3
- package/dist/index.js +53 -9
- package/dist/index.js.map +1 -1
- package/dist/{setup-data-dir-LJZHCZQK.js → setup-data-dir-CA2QIK5C.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-3DQP7YR3.js.map +0 -1
- /package/dist/{chunk-XCT5FNJU.js.map → chunk-2IMYUMLK.js.map} +0 -0
- /package/dist/{chunk-ICPQ544Q.js.map → chunk-DXAAEYBY.js.map} +0 -0
- /package/dist/{chunk-OU6IAGOV.js.map → chunk-G5OBY2WC.js.map} +0 -0
- /package/dist/{chunk-U4KNY4J2.js.map → chunk-JF4MY72A.js.map} +0 -0
- /package/dist/{chunk-U74LSS4P.js.map → chunk-N27VGDQA.js.map} +0 -0
- /package/dist/{consensus-vote-LJFSBPXC.js.map → consensus-vote-QTSXJFNQ.js.map} +0 -0
- /package/dist/{improvement-review-2R4ZJJSI.js.map → improvement-review-ECY7JP5B.js.map} +0 -0
- /package/dist/{setup-data-dir-LJZHCZQK.js.map → setup-data-dir-CA2QIK5C.js.map} +0 -0
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
resetCorrelationTracker,
|
|
12
12
|
runConsensusForGoal,
|
|
13
13
|
unwrapVoteOrThrow
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-G5OBY2WC.js";
|
|
15
15
|
import "./chunk-HKQWJKGO.js";
|
|
16
16
|
import "./chunk-OQB3XC5O.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-N27VGDQA.js";
|
|
18
|
+
import "./chunk-JF4MY72A.js";
|
|
19
19
|
import "./chunk-CXKSY4C4.js";
|
|
20
20
|
import "./chunk-H2DARFLO.js";
|
|
21
21
|
import "./chunk-BIO2QB3H.js";
|
|
@@ -50,4 +50,4 @@ export {
|
|
|
50
50
|
runConsensusForGoal,
|
|
51
51
|
unwrapVoteOrThrow
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=consensus-vote-
|
|
53
|
+
//# sourceMappingURL=consensus-vote-QTSXJFNQ.js.map
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
loadSelfEvalSignals,
|
|
12
12
|
registerImprovementReviewTool,
|
|
13
13
|
runImprovementReview
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-2IMYUMLK.js";
|
|
15
|
+
import "./chunk-N27VGDQA.js";
|
|
16
|
+
import "./chunk-JF4MY72A.js";
|
|
17
17
|
import "./chunk-CXKSY4C4.js";
|
|
18
18
|
import "./chunk-FOQVJUU7.js";
|
|
19
19
|
import "./chunk-3HELETAQ.js";
|
|
@@ -33,4 +33,4 @@ export {
|
|
|
33
33
|
registerImprovementReviewTool,
|
|
34
34
|
runImprovementReview
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=improvement-review-
|
|
36
|
+
//# sourceMappingURL=improvement-review-ECY7JP5B.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -35419,9 +35419,18 @@ declare function resetPipelineArtifactStore(): void;
|
|
|
35419
35419
|
* Listens for `stage.failed` events and records them as failed TaskOutcome
|
|
35420
35420
|
* entries in the OutcomeStore.
|
|
35421
35421
|
*
|
|
35422
|
-
* Returns an Unsubscribe handle
|
|
35423
|
-
*
|
|
35424
|
-
*
|
|
35422
|
+
* Returns an Unsubscribe handle; the caller owns the lifecycle.
|
|
35423
|
+
*
|
|
35424
|
+
* There is deliberately no server-wide singleton. #2938 added a
|
|
35425
|
+
* `startFeedbackSubscriber` / `shutdownFeedbackSubscriber` pair, and #5003's
|
|
35426
|
+
* panel then removed this bridge from the server: `StageFailedEvent` carries no
|
|
35427
|
+
* `cli`, so the subscriber hardcoded `cli: 'claude'` on every stage failure and
|
|
35428
|
+
* double-counted against `agent-executor`, which is now the single canonical
|
|
35429
|
+
* outcome writer. The `start` half was dropped from `initV2PipelineSubsystems`
|
|
35430
|
+
* and the pair was left behind — `shutdown` still called from `cli-server.ts`
|
|
35431
|
+
* as an unconditional no-op, and the init log still reporting
|
|
35432
|
+
* `feedbackSubscriber: 'active'`. Both are gone; this function stays because it
|
|
35433
|
+
* is public API for SDK embedders who DO manage their own store.
|
|
35425
35434
|
*
|
|
35426
35435
|
* @returns Unsubscribe function to stop the bridge.
|
|
35427
35436
|
*/
|
package/dist/index.js
CHANGED
|
@@ -353,7 +353,6 @@ import {
|
|
|
353
353
|
createExecutionContext,
|
|
354
354
|
createExecutionPlan,
|
|
355
355
|
createFeedbackIntegration,
|
|
356
|
-
createFeedbackSubscriber,
|
|
357
356
|
createGeminiAdapter,
|
|
358
357
|
createInitializedWorkflowEngine,
|
|
359
358
|
createInteractionGraph,
|
|
@@ -553,7 +552,7 @@ import {
|
|
|
553
552
|
withLogging,
|
|
554
553
|
withRetry,
|
|
555
554
|
withRetryWrapper
|
|
556
|
-
} from "./chunk-
|
|
555
|
+
} from "./chunk-NS4LJ6ZB.js";
|
|
557
556
|
import {
|
|
558
557
|
FALLBACK_SCANNER_DATA,
|
|
559
558
|
buildPlanFromAnalysis,
|
|
@@ -586,7 +585,7 @@ import {
|
|
|
586
585
|
connectTransport,
|
|
587
586
|
createServer,
|
|
588
587
|
startStdioServer
|
|
589
|
-
} from "./chunk-
|
|
588
|
+
} from "./chunk-DXAAEYBY.js";
|
|
590
589
|
import {
|
|
591
590
|
OPENAI_MODELS,
|
|
592
591
|
OPENAI_MODEL_ALIASES,
|
|
@@ -644,7 +643,7 @@ import {
|
|
|
644
643
|
generateProposalId,
|
|
645
644
|
parseAgentPairKey,
|
|
646
645
|
registerConsensusVoteTool
|
|
647
|
-
} from "./chunk-
|
|
646
|
+
} from "./chunk-G5OBY2WC.js";
|
|
648
647
|
import "./chunk-HKQWJKGO.js";
|
|
649
648
|
import {
|
|
650
649
|
allOf
|
|
@@ -702,7 +701,7 @@ import {
|
|
|
702
701
|
import {
|
|
703
702
|
ImprovementReviewInputSchema,
|
|
704
703
|
registerImprovementReviewTool
|
|
705
|
-
} from "./chunk-
|
|
704
|
+
} from "./chunk-2IMYUMLK.js";
|
|
706
705
|
import {
|
|
707
706
|
AgentPerformanceSchema,
|
|
708
707
|
ConsensusAlgorithmSchema,
|
|
@@ -738,10 +737,10 @@ import {
|
|
|
738
737
|
toolSuccess,
|
|
739
738
|
toolSuccessStructured,
|
|
740
739
|
validateToolInput
|
|
741
|
-
} from "./chunk-
|
|
740
|
+
} from "./chunk-N27VGDQA.js";
|
|
742
741
|
import {
|
|
743
742
|
VERSION
|
|
744
|
-
} from "./chunk-
|
|
743
|
+
} from "./chunk-JF4MY72A.js";
|
|
745
744
|
import {
|
|
746
745
|
AuditTrail,
|
|
747
746
|
createAuditTrail,
|
|
@@ -923,6 +922,7 @@ import {
|
|
|
923
922
|
generateWeatherReport,
|
|
924
923
|
getDefaultAvailableModelsCache,
|
|
925
924
|
getDefaultRegistry,
|
|
925
|
+
getErrorMessage,
|
|
926
926
|
getOutcomeStore,
|
|
927
927
|
getRandomProvider,
|
|
928
928
|
getTimeProvider,
|
|
@@ -930,6 +930,7 @@ import {
|
|
|
930
930
|
isOk,
|
|
931
931
|
isZodError,
|
|
932
932
|
logger,
|
|
933
|
+
lookupInTreeCapability,
|
|
933
934
|
map,
|
|
934
935
|
mapErr,
|
|
935
936
|
ok,
|
|
@@ -4060,6 +4061,49 @@ function matchesArtifactFilter(artifact, filter) {
|
|
|
4060
4061
|
return true;
|
|
4061
4062
|
}
|
|
4062
4063
|
|
|
4064
|
+
// src/pipeline/feedback-subscriber.ts
|
|
4065
|
+
var logger8 = createLogger({ component: "FeedbackSubscriber" });
|
|
4066
|
+
function createFeedbackSubscriber(bus, store) {
|
|
4067
|
+
return bus.subscribe({ type: ["stage.failed"] }, (event) => {
|
|
4068
|
+
try {
|
|
4069
|
+
handleEvent(event, store);
|
|
4070
|
+
} catch (error) {
|
|
4071
|
+
const msg = getErrorMessage(error);
|
|
4072
|
+
logger8.warn("Feedback subscriber error", { error: msg });
|
|
4073
|
+
}
|
|
4074
|
+
});
|
|
4075
|
+
}
|
|
4076
|
+
function handleEvent(event, store) {
|
|
4077
|
+
if (event.type === "stage.failed") {
|
|
4078
|
+
recordStageFailed(event, store);
|
|
4079
|
+
}
|
|
4080
|
+
}
|
|
4081
|
+
function recordStageFailed(event, store) {
|
|
4082
|
+
const cli = event.model === void 0 ? void 0 : lookupInTreeCapability(event.model)?.cliName;
|
|
4083
|
+
if (cli === void 0) {
|
|
4084
|
+
logger8.debug("Skipping stage-failure outcome \u2014 no attributable CLI", {
|
|
4085
|
+
stageId: event.stageId,
|
|
4086
|
+
model: event.model ?? "absent"
|
|
4087
|
+
});
|
|
4088
|
+
return;
|
|
4089
|
+
}
|
|
4090
|
+
const outcome = {
|
|
4091
|
+
id: `fb-fail-${event.executionId}-${String(event.timestamp)}`,
|
|
4092
|
+
cli,
|
|
4093
|
+
category: "code_generation",
|
|
4094
|
+
// Real model id when the emitter attributed one (#4194); 'unknown' is
|
|
4095
|
+
// reserved for stages that genuinely have no single model — never a guess.
|
|
4096
|
+
model: event.model ?? "unknown",
|
|
4097
|
+
success: false,
|
|
4098
|
+
durationMs: 0,
|
|
4099
|
+
timestamp: new Date(event.timestamp).toISOString(),
|
|
4100
|
+
source: "delegate",
|
|
4101
|
+
failureCategory: categorizeOutcomeErrorMessage(event.error),
|
|
4102
|
+
errorMessage: event.error.slice(0, 500)
|
|
4103
|
+
};
|
|
4104
|
+
store.append(outcome);
|
|
4105
|
+
}
|
|
4106
|
+
|
|
4063
4107
|
// src/pipeline/trace-schema.ts
|
|
4064
4108
|
import { z as z12 } from "zod";
|
|
4065
4109
|
var ExecutionTraceEntrySchema = z12.object({
|
|
@@ -4121,10 +4165,10 @@ var GateCheckResultSchema = z13.object({
|
|
|
4121
4165
|
});
|
|
4122
4166
|
|
|
4123
4167
|
// src/pipeline/quality-pipeline.ts
|
|
4124
|
-
var
|
|
4168
|
+
var logger9 = createLogger({ component: "quality-pipeline" });
|
|
4125
4169
|
|
|
4126
4170
|
// src/replay/replay-executor.ts
|
|
4127
|
-
var
|
|
4171
|
+
var logger10 = createLogger({ component: "ReplayExecutor" });
|
|
4128
4172
|
export {
|
|
4129
4173
|
ALLOWED_COMMANDS,
|
|
4130
4174
|
ARTIFACT_TYPES,
|