agentxchain 2.67.0 → 2.68.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentxchain",
3
- "version": "2.67.0",
3
+ "version": "2.68.0",
4
4
  "description": "CLI for AgentXchain — governed multi-agent software delivery",
5
5
  "type": "module",
6
6
  "bin": {
@@ -61,7 +61,10 @@ function printEvent(evt) {
61
61
  const runId = evt.run_id ? evt.run_id.slice(0, 12) : '—';
62
62
  const phase = evt.phase || '—';
63
63
  const turnInfo = evt.turn?.role_id ? ` [${evt.turn.role_id}]` : '';
64
- console.log(`${chalk.dim(ts)} ${type} ${chalk.cyan(runId)} ${phase}${turnInfo}`);
64
+ const rejectionDetail = evt.event_type === 'turn_rejected' && evt.payload?.reason
65
+ ? ` — ${evt.payload.reason}${evt.payload.failed_stage ? ` (${evt.payload.failed_stage})` : ''}`
66
+ : '';
67
+ console.log(`${chalk.dim(ts)} ${type} ${chalk.cyan(runId)} ${phase}${turnInfo}${rejectionDetail}`);
65
68
  }
66
69
 
67
70
  function colorEventType(type) {
@@ -3331,7 +3331,13 @@ export function rejectGovernedTurn(root, config, validationResult, reasonOrOptio
3331
3331
  phase: updatedState.phase,
3332
3332
  status: updatedState.status,
3333
3333
  turn: { turn_id: currentTurn.turn_id, role_id: currentTurn.assigned_role },
3334
- payload: { attempt: currentAttempt, retrying: true },
3334
+ payload: {
3335
+ attempt: currentAttempt,
3336
+ retrying: true,
3337
+ reason: rejectionContext.reason,
3338
+ failed_stage: rejectionContext.failed_stage,
3339
+ ...(rejectionContext.validation_errors?.length ? { validation_errors: rejectionContext.validation_errors } : {}),
3340
+ },
3335
3341
  });
3336
3342
  return {
3337
3343
  ok: true,
@@ -3398,7 +3404,14 @@ export function rejectGovernedTurn(root, config, validationResult, reasonOrOptio
3398
3404
  phase: updatedState.phase,
3399
3405
  status: 'blocked',
3400
3406
  turn: { turn_id: currentTurn.turn_id, role_id: currentTurn.assigned_role },
3401
- payload: { attempt: currentAttempt, retrying: false, escalated: true },
3407
+ payload: {
3408
+ attempt: currentAttempt,
3409
+ retrying: false,
3410
+ escalated: true,
3411
+ reason: rejectionContext.reason,
3412
+ failed_stage: rejectionContext.failed_stage,
3413
+ ...(rejectionContext.validation_errors?.length ? { validation_errors: rejectionContext.validation_errors } : {}),
3414
+ },
3402
3415
  });
3403
3416
  emitRunEvent(root, 'run_blocked', {
3404
3417
  run_id: updatedState.run_id,