nexus-agents 2.145.1 → 2.147.0

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.
Files changed (31) hide show
  1. package/dist/{chunk-QKWS3REM.js → chunk-45QUEZNS.js} +2 -2
  2. package/dist/{chunk-MFTWFPXS.js → chunk-C7PXTRAR.js} +2 -2
  3. package/dist/{chunk-ZRRL3YB6.js → chunk-I5T7GUM7.js} +4 -194
  4. package/dist/chunk-I5T7GUM7.js.map +1 -0
  5. package/dist/{chunk-SDJLXKZZ.js → chunk-LREXQ6DP.js} +3 -3
  6. package/dist/chunk-RCQLUJY3.js +208 -0
  7. package/dist/chunk-RCQLUJY3.js.map +1 -0
  8. package/dist/{chunk-J2KMYVWA.js → chunk-RII4VXHO.js} +34 -1
  9. package/dist/{chunk-J2KMYVWA.js.map → chunk-RII4VXHO.js.map} +1 -1
  10. package/dist/{chunk-IIGRVRKD.js → chunk-VFA66KF5.js} +239 -200
  11. package/dist/{chunk-IIGRVRKD.js.map → chunk-VFA66KF5.js.map} +1 -1
  12. package/dist/{chunk-AREFLH3S.js → chunk-Y4NDNQYU.js} +2 -2
  13. package/dist/cli.js +55 -12
  14. package/dist/cli.js.map +1 -1
  15. package/dist/{consensus-vote-6V3JNRXI.js → consensus-vote-IBT3C5YC.js} +4 -3
  16. package/dist/{improvement-review-K7YYYZCJ.js → improvement-review-WMDMS32T.js} +4 -3
  17. package/dist/index.d.ts +33 -1
  18. package/dist/index.js +19 -17
  19. package/dist/index.js.map +1 -1
  20. package/dist/{issue-triage-44OGWBDA.js → issue-triage-R7DMXIEN.js} +3 -2
  21. package/dist/{setup-command-I3U4QK54.js → setup-command-IOHRDNII.js} +3 -3
  22. package/package.json +1 -1
  23. package/dist/chunk-ZRRL3YB6.js.map +0 -1
  24. /package/dist/{chunk-QKWS3REM.js.map → chunk-45QUEZNS.js.map} +0 -0
  25. /package/dist/{chunk-MFTWFPXS.js.map → chunk-C7PXTRAR.js.map} +0 -0
  26. /package/dist/{chunk-SDJLXKZZ.js.map → chunk-LREXQ6DP.js.map} +0 -0
  27. /package/dist/{chunk-AREFLH3S.js.map → chunk-Y4NDNQYU.js.map} +0 -0
  28. /package/dist/{consensus-vote-6V3JNRXI.js.map → consensus-vote-IBT3C5YC.js.map} +0 -0
  29. /package/dist/{improvement-review-K7YYYZCJ.js.map → improvement-review-WMDMS32T.js.map} +0 -0
  30. /package/dist/{issue-triage-44OGWBDA.js.map → issue-triage-R7DMXIEN.js.map} +0 -0
  31. /package/dist/{setup-command-I3U4QK54.js.map → setup-command-IOHRDNII.js.map} +0 -0
@@ -7,9 +7,10 @@ import {
7
7
  registerConsensusVoteTool,
8
8
  resetCorrelationTracker,
9
9
  runConsensusForGoal
10
- } from "./chunk-QKWS3REM.js";
10
+ } from "./chunk-45QUEZNS.js";
11
11
  import "./chunk-Y7Z7H66M.js";
12
- import "./chunk-J2KMYVWA.js";
12
+ import "./chunk-RII4VXHO.js";
13
+ import "./chunk-RCQLUJY3.js";
13
14
  import "./chunk-R4YCNXN2.js";
14
15
  import "./chunk-6T3EPABN.js";
15
16
  import "./chunk-B6VRJBDI.js";
@@ -36,4 +37,4 @@ export {
36
37
  resetCorrelationTracker,
37
38
  runConsensusForGoal
38
39
  };
39
- //# sourceMappingURL=consensus-vote-6V3JNRXI.js.map
40
+ //# sourceMappingURL=consensus-vote-IBT3C5YC.js.map
@@ -11,8 +11,9 @@ import {
11
11
  loadSelfEvalSignals,
12
12
  registerImprovementReviewTool,
13
13
  runImprovementReview
14
- } from "./chunk-AREFLH3S.js";
15
- import "./chunk-J2KMYVWA.js";
14
+ } from "./chunk-Y4NDNQYU.js";
15
+ import "./chunk-RII4VXHO.js";
16
+ import "./chunk-RCQLUJY3.js";
16
17
  import "./chunk-Q4UU2W6L.js";
17
18
  import "./chunk-NL7SZQPW.js";
18
19
  import "./chunk-DHVMSIT5.js";
@@ -31,4 +32,4 @@ export {
31
32
  registerImprovementReviewTool,
32
33
  runImprovementReview
33
34
  };
34
- //# sourceMappingURL=improvement-review-K7YYYZCJ.js.map
35
+ //# sourceMappingURL=improvement-review-WMDMS32T.js.map
package/dist/index.d.ts CHANGED
@@ -20915,6 +20915,12 @@ interface OrchestrateDeps extends BaseMcpToolDeps {
20915
20915
  modelAdapter?: IModelAdapter | undefined;
20916
20916
  /** MCP notifier for client-visible logging (Issue #974) */
20917
20917
  notifier?: IMcpNotifier | undefined;
20918
+ /**
20919
+ * Durable, hash-chained audit logger (#4097). When present, ClawGuard
20920
+ * AUDIT-mode violations during the orchestrator's nested tool calls are
20921
+ * persisted to the shared store. Absent on the pure-CLI path → no trail.
20922
+ */
20923
+ auditLogger?: IAuditLogger;
20918
20924
  }
20919
20925
  declare class OrchestrationError extends AgentError$1 {
20920
20926
  constructor(message: string, options?: {
@@ -24073,6 +24079,12 @@ type ExecuteExpertInput = z.infer<typeof ExecuteExpertInputSchema>;
24073
24079
  interface ExecuteExpertDeps extends BaseMcpToolDeps {
24074
24080
  /** Registry of created experts (shared with create_expert) */
24075
24081
  expertRegistry: Map<string, Expert>;
24082
+ /**
24083
+ * Durable, hash-chained audit logger (#4097). When present, ClawGuard
24084
+ * AUDIT-mode violations during the expert's nested tool calls are persisted
24085
+ * to the shared store. Absent on the pure-CLI path → no trail established.
24086
+ */
24087
+ auditLogger?: IAuditLogger;
24076
24088
  /** Optional CLI detection cache for checking available CLIs (Issue #747) */
24077
24089
  cliCache?: ICliDetectionCache;
24078
24090
  /** MCP notifier for client-visible logging (Issue #974) */
@@ -29979,7 +29991,7 @@ declare function requiresCitation(actionType: AgentActionType): boolean;
29979
29991
  * Discriminated union of audit event types.
29980
29992
  * Each event captures a single security pipeline decision.
29981
29993
  */
29982
- type AuditEvent = TrustClassificationEvent | PolicyGateEvent | CorroborationEvent | ReputationEvent | SanitizationEvent | GraphExecutionAuditEvent;
29994
+ type AuditEvent = TrustClassificationEvent | PolicyGateEvent | CorroborationEvent | ReputationEvent | SanitizationEvent | GraphExecutionAuditEvent | ClawGuardViolationEvent;
29983
29995
  /** Base fields shared by all audit events. */
29984
29996
  interface AuditEventBase {
29985
29997
  readonly id: string;
@@ -30074,6 +30086,26 @@ interface SanitizationEvent extends AuditEventBase {
30074
30086
  */
30075
30087
  readonly strippedElements: readonly StrippedElementSummary[];
30076
30088
  }
30089
+ /**
30090
+ * ClawGuard AUDIT-mode violation (#4097). Records a tool call that VIOLATED the
30091
+ * derived access policy but was ALLOWED to proceed because the policy is in
30092
+ * `audit` mode (log-and-allow). Persisting these is what lets the audit→enforce
30093
+ * graduation loop size the real violation rate from durable telemetry rather
30094
+ * than ephemeral logs.
30095
+ */
30096
+ interface ClawGuardViolationEvent extends AuditEventBase {
30097
+ readonly type: 'clawguard_violation';
30098
+ /** The tool whose call violated the policy. */
30099
+ readonly toolName: string;
30100
+ /** Human-readable warning from the access decision (may be truncated). */
30101
+ readonly warning: string;
30102
+ /** Source of the derived policy (`llm` / `fallback-keyword` / `bypass`). */
30103
+ readonly policySource: string;
30104
+ /** Policy mode under which the violation was allowed (e.g. `audit`). */
30105
+ readonly mode: string;
30106
+ /** Request ID of the offending tool call, for correlation. */
30107
+ readonly requestId: string;
30108
+ }
30077
30109
  /** Graph execution lifecycle event (Issue #839). */
30078
30110
  interface GraphExecutionAuditEvent extends AuditEventBase {
30079
30111
  readonly type: 'graph_execution';
package/dist/index.js CHANGED
@@ -520,7 +520,7 @@ import {
520
520
  validateWorkflow,
521
521
  validateWorkflowDependencies,
522
522
  withLogging
523
- } from "./chunk-IIGRVRKD.js";
523
+ } from "./chunk-VFA66KF5.js";
524
524
  import {
525
525
  OPENAI_MODELS,
526
526
  OPENAI_MODEL_ALIASES,
@@ -560,7 +560,7 @@ import {
560
560
  getKnownNexusVarNames,
561
561
  startStdioServer,
562
562
  validateNexusEnv
563
- } from "./chunk-SDJLXKZZ.js";
563
+ } from "./chunk-LREXQ6DP.js";
564
564
  import {
565
565
  CliCircuitBreakerIntegration,
566
566
  createCliCircuitBreakerIntegration
@@ -616,30 +616,20 @@ import {
616
616
  generateProposalId,
617
617
  parseAgentPairKey,
618
618
  registerConsensusVoteTool
619
- } from "./chunk-QKWS3REM.js";
619
+ } from "./chunk-45QUEZNS.js";
620
620
  import "./chunk-Y7Z7H66M.js";
621
621
  import "./chunk-SCPAYR65.js";
622
622
  import {
623
623
  AgentActionSchema,
624
- AuditTrail,
625
624
  GitHubReviewer,
626
625
  GitHubUserInfo,
627
- MAX_STRIPPED_ELEMENTS_PER_EVENT,
628
626
  SourceCitationSchema,
629
627
  ViolationSchema,
630
628
  canInfluenceDecisions,
631
629
  canProceed,
632
630
  checkRuleOfTwo,
633
631
  classifyTrust,
634
- createAuditTrail,
635
632
  createFullGitHubProvider,
636
- createGraphAuditBridge,
637
- emitCorroborationEvent,
638
- emitGraphExecutionEvent,
639
- emitPolicyEvent,
640
- emitReputationEvent,
641
- emitSanitizationEvent,
642
- emitTrustEvent,
643
633
  evaluatePolicy as evaluatePolicy2,
644
634
  getCorroborationRules,
645
635
  getRequiredTrustTier,
@@ -650,7 +640,7 @@ import {
650
640
  requiresCorroboration,
651
641
  validateAgentAction,
652
642
  validateCorroboration
653
- } from "./chunk-ZRRL3YB6.js";
643
+ } from "./chunk-I5T7GUM7.js";
654
644
  import {
655
645
  GitHubProvider,
656
646
  ScmError
@@ -673,7 +663,7 @@ import {
673
663
  import {
674
664
  ImprovementReviewInputSchema,
675
665
  registerImprovementReviewTool
676
- } from "./chunk-AREFLH3S.js";
666
+ } from "./chunk-Y4NDNQYU.js";
677
667
  import {
678
668
  AgentPerformanceSchema,
679
669
  ConsensusAlgorithmSchema,
@@ -709,7 +699,19 @@ import {
709
699
  toolSuccess,
710
700
  toolSuccessStructured,
711
701
  validateToolInput
712
- } from "./chunk-J2KMYVWA.js";
702
+ } from "./chunk-RII4VXHO.js";
703
+ import {
704
+ AuditTrail,
705
+ MAX_STRIPPED_ELEMENTS_PER_EVENT,
706
+ createAuditTrail,
707
+ createGraphAuditBridge,
708
+ emitCorroborationEvent,
709
+ emitGraphExecutionEvent,
710
+ emitPolicyEvent,
711
+ emitReputationEvent,
712
+ emitSanitizationEvent,
713
+ emitTrustEvent
714
+ } from "./chunk-RCQLUJY3.js";
713
715
  import {
714
716
  PersistentStrategyDistiller,
715
717
  RulesSnapshotSchema
@@ -5953,7 +5955,7 @@ function buildVotingInput(plan, config) {
5953
5955
  }
5954
5956
  async function executeSingleVote(plan, config, log) {
5955
5957
  try {
5956
- const { executeVoting } = await import("./consensus-vote-6V3JNRXI.js");
5958
+ const { executeVoting } = await import("./consensus-vote-IBT3C5YC.js");
5957
5959
  const input = buildVotingInput(plan, config);
5958
5960
  const result = await executeVoting(input, log);
5959
5961
  return parseVotingResult(result);