@agledger/cli 0.5.1 → 0.5.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.
@@ -609,6 +609,81 @@
609
609
  "verify-keys.js"
610
610
  ]
611
611
  },
612
+ "verify": {
613
+ "aliases": [],
614
+ "args": {
615
+ "file": {
616
+ "description": "Path to the audit export JSON file (or \"-\" for stdin).",
617
+ "name": "file",
618
+ "required": true
619
+ }
620
+ },
621
+ "description": "Verify a mandate audit export offline (hash chain + Ed25519 signatures, RFC 8785).",
622
+ "examples": [
623
+ "<%= config.bin %> verify audit-export.json",
624
+ "<%= config.bin %> verify audit-export.json --keys vault-keys.json",
625
+ "<%= config.bin %> verify audit-export.json --json",
626
+ "cat audit-export.json | <%= config.bin %> verify -"
627
+ ],
628
+ "flags": {
629
+ "json": {
630
+ "description": "Force JSON output (default when stdout is piped)",
631
+ "name": "json",
632
+ "allowNo": false,
633
+ "type": "boolean"
634
+ },
635
+ "quiet": {
636
+ "description": "Suppress output (exit code only)",
637
+ "name": "quiet",
638
+ "allowNo": false,
639
+ "type": "boolean"
640
+ },
641
+ "api-key": {
642
+ "description": "AGLedger API key",
643
+ "env": "AGLEDGER_API_KEY",
644
+ "name": "api-key",
645
+ "hasDynamicHelp": false,
646
+ "multiple": false,
647
+ "type": "option"
648
+ },
649
+ "api-url": {
650
+ "description": "AGLedger API base URL",
651
+ "env": "AGLEDGER_API_URL",
652
+ "name": "api-url",
653
+ "hasDynamicHelp": false,
654
+ "multiple": false,
655
+ "type": "option"
656
+ },
657
+ "keys": {
658
+ "description": "Path to a JSON file mapping signingKeyId → SPKI DER base64 public key. Merged over any keys embedded in the export.",
659
+ "name": "keys",
660
+ "hasDynamicHelp": false,
661
+ "multiple": false,
662
+ "type": "option"
663
+ },
664
+ "require-key-id": {
665
+ "description": "Require every entry to reference this keyId. Rejects otherwise-valid exports signed by a retired or unexpected key.",
666
+ "name": "require-key-id",
667
+ "hasDynamicHelp": false,
668
+ "multiple": false,
669
+ "type": "option"
670
+ }
671
+ },
672
+ "hasDynamicHelp": false,
673
+ "hiddenAliases": [],
674
+ "id": "verify",
675
+ "pluginAlias": "@agledger/cli",
676
+ "pluginName": "@agledger/cli",
677
+ "pluginType": "core",
678
+ "strict": true,
679
+ "enableJsonFlag": false,
680
+ "isESM": true,
681
+ "relativePath": [
682
+ "dist",
683
+ "commands",
684
+ "verify.js"
685
+ ]
686
+ },
612
687
  "admin:create-agent": {
613
688
  "aliases": [],
614
689
  "args": {},
@@ -983,21 +1058,10 @@
983
1058
  "reputation.js"
984
1059
  ]
985
1060
  },
986
- "receipt:get": {
1061
+ "audit:events": {
987
1062
  "aliases": [],
988
- "args": {
989
- "mandateId": {
990
- "description": "Mandate ID",
991
- "name": "mandateId",
992
- "required": true
993
- },
994
- "receiptId": {
995
- "description": "Receipt ID",
996
- "name": "receiptId",
997
- "required": true
998
- }
999
- },
1000
- "description": "Get receipt details",
1063
+ "args": {},
1064
+ "description": "List audit events",
1001
1065
  "flags": {
1002
1066
  "json": {
1003
1067
  "description": "Force JSON output (default when stdout is piped)",
@@ -1026,11 +1090,52 @@
1026
1090
  "hasDynamicHelp": false,
1027
1091
  "multiple": false,
1028
1092
  "type": "option"
1093
+ },
1094
+ "since": {
1095
+ "description": "ISO 8601 timestamp — list events after this time",
1096
+ "name": "since",
1097
+ "required": true,
1098
+ "hasDynamicHelp": false,
1099
+ "multiple": false,
1100
+ "type": "option"
1101
+ },
1102
+ "order": {
1103
+ "description": "Sort order",
1104
+ "name": "order",
1105
+ "default": "desc",
1106
+ "hasDynamicHelp": false,
1107
+ "multiple": false,
1108
+ "options": [
1109
+ "asc",
1110
+ "desc"
1111
+ ],
1112
+ "type": "option"
1113
+ },
1114
+ "limit": {
1115
+ "description": "Max results per page",
1116
+ "name": "limit",
1117
+ "default": 25,
1118
+ "hasDynamicHelp": false,
1119
+ "multiple": false,
1120
+ "type": "option"
1121
+ },
1122
+ "cursor": {
1123
+ "description": "Pagination cursor",
1124
+ "name": "cursor",
1125
+ "hasDynamicHelp": false,
1126
+ "multiple": false,
1127
+ "type": "option"
1128
+ },
1129
+ "all": {
1130
+ "description": "Stream all pages as NDJSON",
1131
+ "name": "all",
1132
+ "allowNo": false,
1133
+ "type": "boolean"
1029
1134
  }
1030
1135
  },
1031
1136
  "hasDynamicHelp": false,
1032
1137
  "hiddenAliases": [],
1033
- "id": "receipt:get",
1138
+ "id": "audit:events",
1034
1139
  "pluginAlias": "@agledger/cli",
1035
1140
  "pluginName": "@agledger/cli",
1036
1141
  "pluginType": "core",
@@ -1040,14 +1145,12 @@
1040
1145
  "relativePath": [
1041
1146
  "dist",
1042
1147
  "commands",
1043
- "receipt",
1044
- "get.js"
1148
+ "audit",
1149
+ "events.js"
1045
1150
  ]
1046
1151
  },
1047
- "receipt:list": {
1048
- "aliases": [
1049
- "mandate:receipts"
1050
- ],
1152
+ "audit:trail": {
1153
+ "aliases": [],
1051
1154
  "args": {
1052
1155
  "mandateId": {
1053
1156
  "description": "Mandate ID",
@@ -1055,7 +1158,7 @@
1055
1158
  "required": true
1056
1159
  }
1057
1160
  },
1058
- "description": "List receipts for a mandate",
1161
+ "description": "Get the hash-chained audit trail for a mandate",
1059
1162
  "flags": {
1060
1163
  "json": {
1061
1164
  "description": "Force JSON output (default when stdout is piped)",
@@ -1084,17 +1187,11 @@
1084
1187
  "hasDynamicHelp": false,
1085
1188
  "multiple": false,
1086
1189
  "type": "option"
1087
- },
1088
- "all": {
1089
- "description": "Stream all pages as NDJSON",
1090
- "name": "all",
1091
- "allowNo": false,
1092
- "type": "boolean"
1093
1190
  }
1094
1191
  },
1095
1192
  "hasDynamicHelp": false,
1096
1193
  "hiddenAliases": [],
1097
- "id": "receipt:list",
1194
+ "id": "audit:trail",
1098
1195
  "pluginAlias": "@agledger/cli",
1099
1196
  "pluginName": "@agledger/cli",
1100
1197
  "pluginType": "core",
@@ -1104,20 +1201,14 @@
1104
1201
  "relativePath": [
1105
1202
  "dist",
1106
1203
  "commands",
1107
- "receipt",
1108
- "list.js"
1204
+ "audit",
1205
+ "trail.js"
1109
1206
  ]
1110
1207
  },
1111
- "receipt:submit": {
1208
+ "federation:audit-log": {
1112
1209
  "aliases": [],
1113
- "args": {
1114
- "mandateId": {
1115
- "description": "Mandate ID",
1116
- "name": "mandateId",
1117
- "required": true
1118
- }
1119
- },
1120
- "description": "Submit a receipt (evidence of completion) for a mandate",
1210
+ "args": {},
1211
+ "description": "Query the federation audit log for gateway and mandate events.",
1121
1212
  "flags": {
1122
1213
  "json": {
1123
1214
  "description": "Force JSON output (default when stdout is piped)",
@@ -1147,30 +1238,38 @@
1147
1238
  "multiple": false,
1148
1239
  "type": "option"
1149
1240
  },
1150
- "data": {
1151
- "description": "Evidence as JSON string. Either a raw evidence object or { \"evidence\": {...} } — both are accepted.",
1152
- "name": "data",
1241
+ "gateway-id": {
1242
+ "description": "Filter by gateway ID",
1243
+ "name": "gateway-id",
1153
1244
  "hasDynamicHelp": false,
1154
1245
  "multiple": false,
1155
1246
  "type": "option"
1156
1247
  },
1157
- "file": {
1158
- "description": "Read evidence from JSON file (same shape as --data)",
1159
- "name": "file",
1248
+ "entry-type": {
1249
+ "description": "Filter by audit entry type",
1250
+ "name": "entry-type",
1160
1251
  "hasDynamicHelp": false,
1161
1252
  "multiple": false,
1162
1253
  "type": "option"
1163
1254
  },
1164
- "dry-run": {
1165
- "description": "Show what would be sent without hitting the API",
1166
- "name": "dry-run",
1167
- "allowNo": false,
1168
- "type": "boolean"
1255
+ "mandate-id": {
1256
+ "description": "Filter by mandate ID",
1257
+ "name": "mandate-id",
1258
+ "hasDynamicHelp": false,
1259
+ "multiple": false,
1260
+ "type": "option"
1261
+ },
1262
+ "limit": {
1263
+ "description": "Maximum number of entries to return",
1264
+ "name": "limit",
1265
+ "hasDynamicHelp": false,
1266
+ "multiple": false,
1267
+ "type": "option"
1169
1268
  }
1170
1269
  },
1171
1270
  "hasDynamicHelp": false,
1172
1271
  "hiddenAliases": [],
1173
- "id": "receipt:submit",
1272
+ "id": "federation:audit-log",
1174
1273
  "pluginAlias": "@agledger/cli",
1175
1274
  "pluginName": "@agledger/cli",
1176
1275
  "pluginType": "core",
@@ -1180,20 +1279,14 @@
1180
1279
  "relativePath": [
1181
1280
  "dist",
1182
1281
  "commands",
1183
- "receipt",
1184
- "submit.js"
1282
+ "federation",
1283
+ "audit-log.js"
1185
1284
  ]
1186
1285
  },
1187
- "mandate:accept": {
1286
+ "federation:create-token": {
1188
1287
  "aliases": [],
1189
- "args": {
1190
- "id": {
1191
- "description": "Mandate ID",
1192
- "name": "id",
1193
- "required": true
1194
- }
1195
- },
1196
- "description": "Accept a proposed mandate (as performer)",
1288
+ "args": {},
1289
+ "description": "Create a federation registration token for gateway onboarding.",
1197
1290
  "flags": {
1198
1291
  "json": {
1199
1292
  "description": "Force JSON output (default when stdout is piped)",
@@ -1223,8 +1316,22 @@
1223
1316
  "multiple": false,
1224
1317
  "type": "option"
1225
1318
  },
1319
+ "label": {
1320
+ "description": "Human-readable label for the token",
1321
+ "name": "label",
1322
+ "hasDynamicHelp": false,
1323
+ "multiple": false,
1324
+ "type": "option"
1325
+ },
1326
+ "expires-in-hours": {
1327
+ "description": "Token expiry in hours (default: server-configured)",
1328
+ "name": "expires-in-hours",
1329
+ "hasDynamicHelp": false,
1330
+ "multiple": false,
1331
+ "type": "option"
1332
+ },
1226
1333
  "dry-run": {
1227
- "description": "Show what would be sent without hitting the API",
1334
+ "description": "Show what would be sent without calling the API",
1228
1335
  "name": "dry-run",
1229
1336
  "allowNo": false,
1230
1337
  "type": "boolean"
@@ -1232,7 +1339,7 @@
1232
1339
  },
1233
1340
  "hasDynamicHelp": false,
1234
1341
  "hiddenAliases": [],
1235
- "id": "mandate:accept",
1342
+ "id": "federation:create-token",
1236
1343
  "pluginAlias": "@agledger/cli",
1237
1344
  "pluginName": "@agledger/cli",
1238
1345
  "pluginType": "core",
@@ -1242,14 +1349,14 @@
1242
1349
  "relativePath": [
1243
1350
  "dist",
1244
1351
  "commands",
1245
- "mandate",
1246
- "accept.js"
1352
+ "federation",
1353
+ "create-token.js"
1247
1354
  ]
1248
1355
  },
1249
- "mandate:batch": {
1356
+ "federation:health": {
1250
1357
  "aliases": [],
1251
1358
  "args": {},
1252
- "description": "Fetch multiple mandates by ID (up to 100). Outputs NDJSON.",
1359
+ "description": "Show federation health summary (gateway counts, sync status, uptime).",
1253
1360
  "flags": {
1254
1361
  "json": {
1255
1362
  "description": "Force JSON output (default when stdout is piped)",
@@ -1278,19 +1385,11 @@
1278
1385
  "hasDynamicHelp": false,
1279
1386
  "multiple": false,
1280
1387
  "type": "option"
1281
- },
1282
- "ids": {
1283
- "description": "Comma-separated mandate IDs",
1284
- "name": "ids",
1285
- "required": true,
1286
- "hasDynamicHelp": false,
1287
- "multiple": false,
1288
- "type": "option"
1289
1388
  }
1290
1389
  },
1291
1390
  "hasDynamicHelp": false,
1292
1391
  "hiddenAliases": [],
1293
- "id": "mandate:batch",
1392
+ "id": "federation:health",
1294
1393
  "pluginAlias": "@agledger/cli",
1295
1394
  "pluginName": "@agledger/cli",
1296
1395
  "pluginType": "core",
@@ -1300,20 +1399,14 @@
1300
1399
  "relativePath": [
1301
1400
  "dist",
1302
1401
  "commands",
1303
- "mandate",
1304
- "batch.js"
1402
+ "federation",
1403
+ "health.js"
1305
1404
  ]
1306
1405
  },
1307
- "mandate:cancel": {
1406
+ "federation:list-gateways": {
1308
1407
  "aliases": [],
1309
- "args": {
1310
- "id": {
1311
- "description": "Mandate ID",
1312
- "name": "id",
1313
- "required": true
1314
- }
1315
- },
1316
- "description": "Cancel a mandate",
1408
+ "args": {},
1409
+ "description": "List federation gateways with optional status filter.",
1317
1410
  "flags": {
1318
1411
  "json": {
1319
1412
  "description": "Force JSON output (default when stdout is piped)",
@@ -1343,23 +1436,29 @@
1343
1436
  "multiple": false,
1344
1437
  "type": "option"
1345
1438
  },
1346
- "reason": {
1347
- "description": "Cancellation reason",
1348
- "name": "reason",
1439
+ "status": {
1440
+ "description": "Filter by gateway status",
1441
+ "name": "status",
1349
1442
  "hasDynamicHelp": false,
1350
1443
  "multiple": false,
1444
+ "options": [
1445
+ "active",
1446
+ "suspended",
1447
+ "revoked"
1448
+ ],
1351
1449
  "type": "option"
1352
1450
  },
1353
- "dry-run": {
1354
- "description": "Show what would be sent without hitting the API",
1355
- "name": "dry-run",
1356
- "allowNo": false,
1357
- "type": "boolean"
1451
+ "limit": {
1452
+ "description": "Maximum number of results to return",
1453
+ "name": "limit",
1454
+ "hasDynamicHelp": false,
1455
+ "multiple": false,
1456
+ "type": "option"
1358
1457
  }
1359
1458
  },
1360
1459
  "hasDynamicHelp": false,
1361
1460
  "hiddenAliases": [],
1362
- "id": "mandate:cancel",
1461
+ "id": "federation:list-gateways",
1363
1462
  "pluginAlias": "@agledger/cli",
1364
1463
  "pluginName": "@agledger/cli",
1365
1464
  "pluginType": "core",
@@ -1369,20 +1468,14 @@
1369
1468
  "relativePath": [
1370
1469
  "dist",
1371
1470
  "commands",
1372
- "mandate",
1373
- "cancel.js"
1471
+ "federation",
1472
+ "list-gateways.js"
1374
1473
  ]
1375
1474
  },
1376
- "mandate:chain": {
1475
+ "federation:query-mandates": {
1377
1476
  "aliases": [],
1378
- "args": {
1379
- "id": {
1380
- "description": "Mandate ID",
1381
- "name": "id",
1382
- "required": true
1383
- }
1384
- },
1385
- "description": "Get full delegation chain for a mandate",
1477
+ "args": {},
1478
+ "description": "Query federated mandates across gateways.",
1386
1479
  "flags": {
1387
1480
  "json": {
1388
1481
  "description": "Force JSON output (default when stdout is piped)",
@@ -1411,11 +1504,47 @@
1411
1504
  "hasDynamicHelp": false,
1412
1505
  "multiple": false,
1413
1506
  "type": "option"
1507
+ },
1508
+ "gateway-id": {
1509
+ "description": "Filter by originating gateway ID",
1510
+ "name": "gateway-id",
1511
+ "hasDynamicHelp": false,
1512
+ "multiple": false,
1513
+ "type": "option"
1514
+ },
1515
+ "hub-state": {
1516
+ "description": "Filter by hub-side mandate state",
1517
+ "name": "hub-state",
1518
+ "hasDynamicHelp": false,
1519
+ "multiple": false,
1520
+ "options": [
1521
+ "OFFERED",
1522
+ "ACCEPTED",
1523
+ "ACTIVE",
1524
+ "COMPLETED",
1525
+ "DISPUTED",
1526
+ "TERMINAL"
1527
+ ],
1528
+ "type": "option"
1529
+ },
1530
+ "contract-type": {
1531
+ "description": "Filter by contract type (e.g. ACH-PROC-v1)",
1532
+ "name": "contract-type",
1533
+ "hasDynamicHelp": false,
1534
+ "multiple": false,
1535
+ "type": "option"
1536
+ },
1537
+ "limit": {
1538
+ "description": "Maximum number of results to return",
1539
+ "name": "limit",
1540
+ "hasDynamicHelp": false,
1541
+ "multiple": false,
1542
+ "type": "option"
1414
1543
  }
1415
1544
  },
1416
1545
  "hasDynamicHelp": false,
1417
1546
  "hiddenAliases": [],
1418
- "id": "mandate:chain",
1547
+ "id": "federation:query-mandates",
1419
1548
  "pluginAlias": "@agledger/cli",
1420
1549
  "pluginName": "@agledger/cli",
1421
1550
  "pluginType": "core",
@@ -1425,20 +1554,20 @@
1425
1554
  "relativePath": [
1426
1555
  "dist",
1427
1556
  "commands",
1428
- "mandate",
1429
- "chain.js"
1557
+ "federation",
1558
+ "query-mandates.js"
1430
1559
  ]
1431
1560
  },
1432
- "mandate:counter-propose": {
1561
+ "federation:revoke-gateway": {
1433
1562
  "aliases": [],
1434
1563
  "args": {
1435
- "id": {
1436
- "description": "Mandate ID",
1437
- "name": "id",
1564
+ "gateway_id": {
1565
+ "description": "Gateway ID to revoke",
1566
+ "name": "gateway_id",
1438
1567
  "required": true
1439
1568
  }
1440
1569
  },
1441
- "description": "Counter-propose a mandate with revised terms (as performer)",
1570
+ "description": "Revoke a federation gateway, severing its connection to the hub.",
1442
1571
  "flags": {
1443
1572
  "json": {
1444
1573
  "description": "Force JSON output (default when stdout is piped)",
@@ -1468,22 +1597,16 @@
1468
1597
  "multiple": false,
1469
1598
  "type": "option"
1470
1599
  },
1471
- "data": {
1472
- "description": "Counter-proposal data as JSON string (counterCriteria, message)",
1473
- "name": "data",
1474
- "hasDynamicHelp": false,
1475
- "multiple": false,
1476
- "type": "option"
1477
- },
1478
- "file": {
1479
- "description": "Read counter-proposal data from JSON file",
1480
- "name": "file",
1600
+ "reason": {
1601
+ "description": "Reason for revocation",
1602
+ "name": "reason",
1603
+ "required": true,
1481
1604
  "hasDynamicHelp": false,
1482
1605
  "multiple": false,
1483
1606
  "type": "option"
1484
1607
  },
1485
1608
  "dry-run": {
1486
- "description": "Show what would be sent without hitting the API",
1609
+ "description": "Show what would be sent without calling the API",
1487
1610
  "name": "dry-run",
1488
1611
  "allowNo": false,
1489
1612
  "type": "boolean"
@@ -1491,7 +1614,7 @@
1491
1614
  },
1492
1615
  "hasDynamicHelp": false,
1493
1616
  "hiddenAliases": [],
1494
- "id": "mandate:counter-propose",
1617
+ "id": "federation:revoke-gateway",
1495
1618
  "pluginAlias": "@agledger/cli",
1496
1619
  "pluginName": "@agledger/cli",
1497
1620
  "pluginType": "core",
@@ -1501,14 +1624,20 @@
1501
1624
  "relativePath": [
1502
1625
  "dist",
1503
1626
  "commands",
1504
- "mandate",
1505
- "counter-propose.js"
1627
+ "federation",
1628
+ "revoke-gateway.js"
1506
1629
  ]
1507
1630
  },
1508
- "mandate:create": {
1631
+ "mandate:accept": {
1509
1632
  "aliases": [],
1510
- "args": {},
1511
- "description": "Create a new mandate",
1633
+ "args": {
1634
+ "id": {
1635
+ "description": "Mandate ID",
1636
+ "name": "id",
1637
+ "required": true
1638
+ }
1639
+ },
1640
+ "description": "Accept a proposed mandate (as performer)",
1512
1641
  "flags": {
1513
1642
  "json": {
1514
1643
  "description": "Force JSON output (default when stdout is piped)",
@@ -1538,48 +1667,6 @@
1538
1667
  "multiple": false,
1539
1668
  "type": "option"
1540
1669
  },
1541
- "type": {
1542
- "description": "Contract type (e.g., ACH-PROC-v1)",
1543
- "name": "type",
1544
- "required": true,
1545
- "hasDynamicHelp": false,
1546
- "multiple": false,
1547
- "type": "option"
1548
- },
1549
- "performer": {
1550
- "description": "Performer agent ID",
1551
- "name": "performer",
1552
- "hasDynamicHelp": false,
1553
- "multiple": false,
1554
- "type": "option"
1555
- },
1556
- "data": {
1557
- "description": "Mandate data as JSON string",
1558
- "name": "data",
1559
- "hasDynamicHelp": false,
1560
- "multiple": false,
1561
- "type": "option"
1562
- },
1563
- "file": {
1564
- "description": "Read mandate data from JSON file",
1565
- "name": "file",
1566
- "hasDynamicHelp": false,
1567
- "multiple": false,
1568
- "type": "option"
1569
- },
1570
- "max-submissions": {
1571
- "description": "Max receipt submissions allowed (1-100)",
1572
- "name": "max-submissions",
1573
- "hasDynamicHelp": false,
1574
- "multiple": false,
1575
- "type": "option"
1576
- },
1577
- "activate": {
1578
- "description": "Auto-activate on principal keys (sets autoActivate in body). Not supported on agent keys — agent-created mandates go through PROPOSED → accept → ACTIVE; use `mandate accept` then `mandate transition <id> activate`.",
1579
- "name": "activate",
1580
- "allowNo": false,
1581
- "type": "boolean"
1582
- },
1583
1670
  "dry-run": {
1584
1671
  "description": "Show what would be sent without hitting the API",
1585
1672
  "name": "dry-run",
@@ -1589,7 +1676,7 @@
1589
1676
  },
1590
1677
  "hasDynamicHelp": false,
1591
1678
  "hiddenAliases": [],
1592
- "id": "mandate:create",
1679
+ "id": "mandate:accept",
1593
1680
  "pluginAlias": "@agledger/cli",
1594
1681
  "pluginName": "@agledger/cli",
1595
1682
  "pluginType": "core",
@@ -1600,19 +1687,13 @@
1600
1687
  "dist",
1601
1688
  "commands",
1602
1689
  "mandate",
1603
- "create.js"
1690
+ "accept.js"
1604
1691
  ]
1605
1692
  },
1606
- "mandate:get": {
1693
+ "mandate:batch": {
1607
1694
  "aliases": [],
1608
- "args": {
1609
- "id": {
1610
- "description": "Mandate ID",
1611
- "name": "id",
1612
- "required": true
1613
- }
1614
- },
1615
- "description": "Get mandate details by ID",
1695
+ "args": {},
1696
+ "description": "Fetch multiple mandates by ID (up to 100). Outputs NDJSON.",
1616
1697
  "flags": {
1617
1698
  "json": {
1618
1699
  "description": "Force JSON output (default when stdout is piped)",
@@ -1641,11 +1722,19 @@
1641
1722
  "hasDynamicHelp": false,
1642
1723
  "multiple": false,
1643
1724
  "type": "option"
1725
+ },
1726
+ "ids": {
1727
+ "description": "Comma-separated mandate IDs",
1728
+ "name": "ids",
1729
+ "required": true,
1730
+ "hasDynamicHelp": false,
1731
+ "multiple": false,
1732
+ "type": "option"
1644
1733
  }
1645
1734
  },
1646
1735
  "hasDynamicHelp": false,
1647
1736
  "hiddenAliases": [],
1648
- "id": "mandate:get",
1737
+ "id": "mandate:batch",
1649
1738
  "pluginAlias": "@agledger/cli",
1650
1739
  "pluginName": "@agledger/cli",
1651
1740
  "pluginType": "core",
@@ -1656,13 +1745,19 @@
1656
1745
  "dist",
1657
1746
  "commands",
1658
1747
  "mandate",
1659
- "get.js"
1748
+ "batch.js"
1660
1749
  ]
1661
1750
  },
1662
- "mandate:list": {
1751
+ "mandate:cancel": {
1663
1752
  "aliases": [],
1664
- "args": {},
1665
- "description": "List mandates with optional filters",
1753
+ "args": {
1754
+ "id": {
1755
+ "description": "Mandate ID",
1756
+ "name": "id",
1757
+ "required": true
1758
+ }
1759
+ },
1760
+ "description": "Cancel a mandate",
1666
1761
  "flags": {
1667
1762
  "json": {
1668
1763
  "description": "Force JSON output (default when stdout is piped)",
@@ -1692,45 +1787,23 @@
1692
1787
  "multiple": false,
1693
1788
  "type": "option"
1694
1789
  },
1695
- "status": {
1696
- "description": "Filter by mandate status (PROPOSED, REJECTED, CREATED, ACTIVE, PROCESSING, REVISION_REQUESTED, FULFILLED, FAILED, REMEDIATED, EXPIRED, CANCELLED)",
1697
- "name": "status",
1698
- "hasDynamicHelp": false,
1699
- "multiple": false,
1700
- "type": "option"
1701
- },
1702
- "type": {
1703
- "description": "Filter by contract type (e.g., ACH-PROC-v1)",
1704
- "name": "type",
1705
- "hasDynamicHelp": false,
1706
- "multiple": false,
1707
- "type": "option"
1708
- },
1709
- "limit": {
1710
- "description": "Max results per page",
1711
- "name": "limit",
1712
- "default": 25,
1713
- "hasDynamicHelp": false,
1714
- "multiple": false,
1715
- "type": "option"
1716
- },
1717
- "cursor": {
1718
- "description": "Pagination cursor",
1719
- "name": "cursor",
1790
+ "reason": {
1791
+ "description": "Cancellation reason",
1792
+ "name": "reason",
1720
1793
  "hasDynamicHelp": false,
1721
1794
  "multiple": false,
1722
1795
  "type": "option"
1723
1796
  },
1724
- "all": {
1725
- "description": "Stream all pages as NDJSON",
1726
- "name": "all",
1797
+ "dry-run": {
1798
+ "description": "Show what would be sent without hitting the API",
1799
+ "name": "dry-run",
1727
1800
  "allowNo": false,
1728
1801
  "type": "boolean"
1729
1802
  }
1730
1803
  },
1731
1804
  "hasDynamicHelp": false,
1732
1805
  "hiddenAliases": [],
1733
- "id": "mandate:list",
1806
+ "id": "mandate:cancel",
1734
1807
  "pluginAlias": "@agledger/cli",
1735
1808
  "pluginName": "@agledger/cli",
1736
1809
  "pluginType": "core",
@@ -1741,27 +1814,19 @@
1741
1814
  "dist",
1742
1815
  "commands",
1743
1816
  "mandate",
1744
- "list.js"
1817
+ "cancel.js"
1745
1818
  ]
1746
1819
  },
1747
- "mandate:outcome": {
1820
+ "mandate:chain": {
1748
1821
  "aliases": [],
1749
1822
  "args": {
1750
1823
  "id": {
1751
1824
  "description": "Mandate ID",
1752
1825
  "name": "id",
1753
1826
  "required": true
1754
- },
1755
- "outcome": {
1756
- "description": "PASS or FAIL. Alternative: --outcome",
1757
- "name": "outcome",
1758
- "options": [
1759
- "PASS",
1760
- "FAIL"
1761
- ]
1762
1827
  }
1763
1828
  },
1764
- "description": "Report principal verdict on a receipt (PASS or FAIL with settlement signal). Outcome can be given positionally or via --outcome.",
1829
+ "description": "Get full delegation chain for a mandate",
1765
1830
  "flags": {
1766
1831
  "json": {
1767
1832
  "description": "Force JSON output (default when stdout is piped)",
@@ -1790,50 +1855,11 @@
1790
1855
  "hasDynamicHelp": false,
1791
1856
  "multiple": false,
1792
1857
  "type": "option"
1793
- },
1794
- "receipt-id": {
1795
- "description": "Receipt ID to judge",
1796
- "name": "receipt-id",
1797
- "required": true,
1798
- "hasDynamicHelp": false,
1799
- "multiple": false,
1800
- "type": "option"
1801
- },
1802
- "outcome": {
1803
- "description": "PASS or FAIL — alternative to positional arg",
1804
- "name": "outcome",
1805
- "hasDynamicHelp": false,
1806
- "multiple": false,
1807
- "options": [
1808
- "PASS",
1809
- "FAIL"
1810
- ],
1811
- "type": "option"
1812
- },
1813
- "reason": {
1814
- "description": "Reason for the verdict",
1815
- "name": "reason",
1816
- "hasDynamicHelp": false,
1817
- "multiple": false,
1818
- "type": "option"
1819
- },
1820
- "signal": {
1821
- "description": "Settlement signal (settle, hold, escalate)",
1822
- "name": "signal",
1823
- "hasDynamicHelp": false,
1824
- "multiple": false,
1825
- "type": "option"
1826
- },
1827
- "dry-run": {
1828
- "description": "Show what would be sent without hitting the API",
1829
- "name": "dry-run",
1830
- "allowNo": false,
1831
- "type": "boolean"
1832
1858
  }
1833
1859
  },
1834
1860
  "hasDynamicHelp": false,
1835
1861
  "hiddenAliases": [],
1836
- "id": "mandate:outcome",
1862
+ "id": "mandate:chain",
1837
1863
  "pluginAlias": "@agledger/cli",
1838
1864
  "pluginName": "@agledger/cli",
1839
1865
  "pluginType": "core",
@@ -1844,19 +1870,19 @@
1844
1870
  "dist",
1845
1871
  "commands",
1846
1872
  "mandate",
1847
- "outcome.js"
1873
+ "chain.js"
1848
1874
  ]
1849
1875
  },
1850
- "mandate:receipts": {
1876
+ "mandate:counter-propose": {
1851
1877
  "aliases": [],
1852
1878
  "args": {
1853
- "mandateId": {
1879
+ "id": {
1854
1880
  "description": "Mandate ID",
1855
- "name": "mandateId",
1881
+ "name": "id",
1856
1882
  "required": true
1857
1883
  }
1858
1884
  },
1859
- "description": "List receipts for a mandate (alias of `receipt list`)",
1885
+ "description": "Counter-propose a mandate with revised terms (as performer)",
1860
1886
  "flags": {
1861
1887
  "json": {
1862
1888
  "description": "Force JSON output (default when stdout is piped)",
@@ -1886,16 +1912,30 @@
1886
1912
  "multiple": false,
1887
1913
  "type": "option"
1888
1914
  },
1889
- "all": {
1890
- "description": "Stream all pages as NDJSON",
1891
- "name": "all",
1915
+ "data": {
1916
+ "description": "Counter-proposal data as JSON string (counterCriteria, message)",
1917
+ "name": "data",
1918
+ "hasDynamicHelp": false,
1919
+ "multiple": false,
1920
+ "type": "option"
1921
+ },
1922
+ "file": {
1923
+ "description": "Read counter-proposal data from JSON file",
1924
+ "name": "file",
1925
+ "hasDynamicHelp": false,
1926
+ "multiple": false,
1927
+ "type": "option"
1928
+ },
1929
+ "dry-run": {
1930
+ "description": "Show what would be sent without hitting the API",
1931
+ "name": "dry-run",
1892
1932
  "allowNo": false,
1893
1933
  "type": "boolean"
1894
1934
  }
1895
1935
  },
1896
1936
  "hasDynamicHelp": false,
1897
1937
  "hiddenAliases": [],
1898
- "id": "mandate:receipts",
1938
+ "id": "mandate:counter-propose",
1899
1939
  "pluginAlias": "@agledger/cli",
1900
1940
  "pluginName": "@agledger/cli",
1901
1941
  "pluginType": "core",
@@ -1906,19 +1946,13 @@
1906
1946
  "dist",
1907
1947
  "commands",
1908
1948
  "mandate",
1909
- "receipts.js"
1949
+ "counter-propose.js"
1910
1950
  ]
1911
1951
  },
1912
- "mandate:reject": {
1952
+ "mandate:create": {
1913
1953
  "aliases": [],
1914
- "args": {
1915
- "id": {
1916
- "description": "Mandate ID",
1917
- "name": "id",
1918
- "required": true
1919
- }
1920
- },
1921
- "description": "Reject a proposed mandate (as performer)",
1954
+ "args": {},
1955
+ "description": "Create a new mandate",
1922
1956
  "flags": {
1923
1957
  "json": {
1924
1958
  "description": "Force JSON output (default when stdout is piped)",
@@ -1948,13 +1982,48 @@
1948
1982
  "multiple": false,
1949
1983
  "type": "option"
1950
1984
  },
1951
- "reason": {
1952
- "description": "Rejection reason",
1953
- "name": "reason",
1985
+ "type": {
1986
+ "description": "Contract type (e.g., ACH-PROC-v1)",
1987
+ "name": "type",
1988
+ "required": true,
1989
+ "hasDynamicHelp": false,
1990
+ "multiple": false,
1991
+ "type": "option"
1992
+ },
1993
+ "performer": {
1994
+ "description": "Performer agent ID",
1995
+ "name": "performer",
1996
+ "hasDynamicHelp": false,
1997
+ "multiple": false,
1998
+ "type": "option"
1999
+ },
2000
+ "data": {
2001
+ "description": "Mandate data as JSON string",
2002
+ "name": "data",
2003
+ "hasDynamicHelp": false,
2004
+ "multiple": false,
2005
+ "type": "option"
2006
+ },
2007
+ "file": {
2008
+ "description": "Read mandate data from JSON file",
2009
+ "name": "file",
2010
+ "hasDynamicHelp": false,
2011
+ "multiple": false,
2012
+ "type": "option"
2013
+ },
2014
+ "max-submissions": {
2015
+ "description": "Max receipt submissions allowed (1-100)",
2016
+ "name": "max-submissions",
1954
2017
  "hasDynamicHelp": false,
1955
2018
  "multiple": false,
1956
2019
  "type": "option"
1957
2020
  },
2021
+ "activate": {
2022
+ "description": "Auto-activate on principal keys (sets autoActivate in body). Not supported on agent keys — agent-created mandates go through PROPOSED → accept → ACTIVE; use `mandate accept` then `mandate transition <id> activate`.",
2023
+ "name": "activate",
2024
+ "allowNo": false,
2025
+ "type": "boolean"
2026
+ },
1958
2027
  "dry-run": {
1959
2028
  "description": "Show what would be sent without hitting the API",
1960
2029
  "name": "dry-run",
@@ -1964,7 +2033,7 @@
1964
2033
  },
1965
2034
  "hasDynamicHelp": false,
1966
2035
  "hiddenAliases": [],
1967
- "id": "mandate:reject",
2036
+ "id": "mandate:create",
1968
2037
  "pluginAlias": "@agledger/cli",
1969
2038
  "pluginName": "@agledger/cli",
1970
2039
  "pluginType": "core",
@@ -1975,10 +2044,10 @@
1975
2044
  "dist",
1976
2045
  "commands",
1977
2046
  "mandate",
1978
- "reject.js"
2047
+ "create.js"
1979
2048
  ]
1980
2049
  },
1981
- "mandate:request-revision": {
2050
+ "mandate:get": {
1982
2051
  "aliases": [],
1983
2052
  "args": {
1984
2053
  "id": {
@@ -1987,7 +2056,7 @@
1987
2056
  "required": true
1988
2057
  }
1989
2058
  },
1990
- "description": "Request revision after principal rejection (rework loop)",
2059
+ "description": "Get mandate details by ID",
1991
2060
  "flags": {
1992
2061
  "json": {
1993
2062
  "description": "Force JSON output (default when stdout is piped)",
@@ -2016,24 +2085,11 @@
2016
2085
  "hasDynamicHelp": false,
2017
2086
  "multiple": false,
2018
2087
  "type": "option"
2019
- },
2020
- "reason": {
2021
- "description": "Reason for requesting revision",
2022
- "name": "reason",
2023
- "hasDynamicHelp": false,
2024
- "multiple": false,
2025
- "type": "option"
2026
- },
2027
- "dry-run": {
2028
- "description": "Show what would be sent without hitting the API",
2029
- "name": "dry-run",
2030
- "allowNo": false,
2031
- "type": "boolean"
2032
2088
  }
2033
2089
  },
2034
2090
  "hasDynamicHelp": false,
2035
2091
  "hiddenAliases": [],
2036
- "id": "mandate:request-revision",
2092
+ "id": "mandate:get",
2037
2093
  "pluginAlias": "@agledger/cli",
2038
2094
  "pluginName": "@agledger/cli",
2039
2095
  "pluginType": "core",
@@ -2044,23 +2100,13 @@
2044
2100
  "dist",
2045
2101
  "commands",
2046
2102
  "mandate",
2047
- "request-revision.js"
2103
+ "get.js"
2048
2104
  ]
2049
2105
  },
2050
- "mandate:transition": {
2106
+ "mandate:list": {
2051
2107
  "aliases": [],
2052
- "args": {
2053
- "id": {
2054
- "description": "Mandate ID",
2055
- "name": "id",
2056
- "required": true
2057
- },
2058
- "action": {
2059
- "description": "Transition action (e.g. activate, cancel). Alternative: --action",
2060
- "name": "action"
2061
- }
2062
- },
2063
- "description": "Transition mandate state. Action can be given positionally or via --action. Allowed actions depend on current state — see API schema or call without a valid action to see the error.",
2108
+ "args": {},
2109
+ "description": "List mandates with optional filters",
2064
2110
  "flags": {
2065
2111
  "json": {
2066
2112
  "description": "Force JSON output (default when stdout is piped)",
@@ -2090,30 +2136,45 @@
2090
2136
  "multiple": false,
2091
2137
  "type": "option"
2092
2138
  },
2093
- "action": {
2094
- "description": "Transition action — alternative to positional arg (matches API body field name)",
2095
- "name": "action",
2139
+ "status": {
2140
+ "description": "Filter by mandate status (PROPOSED, REJECTED, CREATED, ACTIVE, PROCESSING, REVISION_REQUESTED, FULFILLED, FAILED, REMEDIATED, EXPIRED, CANCELLED)",
2141
+ "name": "status",
2096
2142
  "hasDynamicHelp": false,
2097
2143
  "multiple": false,
2098
2144
  "type": "option"
2099
2145
  },
2100
- "reason": {
2101
- "description": "Transition reason",
2102
- "name": "reason",
2146
+ "type": {
2147
+ "description": "Filter by contract type (e.g., ACH-PROC-v1)",
2148
+ "name": "type",
2103
2149
  "hasDynamicHelp": false,
2104
2150
  "multiple": false,
2105
2151
  "type": "option"
2106
2152
  },
2107
- "dry-run": {
2108
- "description": "Show what would be sent without hitting the API",
2109
- "name": "dry-run",
2153
+ "limit": {
2154
+ "description": "Max results per page",
2155
+ "name": "limit",
2156
+ "default": 25,
2157
+ "hasDynamicHelp": false,
2158
+ "multiple": false,
2159
+ "type": "option"
2160
+ },
2161
+ "cursor": {
2162
+ "description": "Pagination cursor",
2163
+ "name": "cursor",
2164
+ "hasDynamicHelp": false,
2165
+ "multiple": false,
2166
+ "type": "option"
2167
+ },
2168
+ "all": {
2169
+ "description": "Stream all pages as NDJSON",
2170
+ "name": "all",
2110
2171
  "allowNo": false,
2111
2172
  "type": "boolean"
2112
2173
  }
2113
2174
  },
2114
2175
  "hasDynamicHelp": false,
2115
2176
  "hiddenAliases": [],
2116
- "id": "mandate:transition",
2177
+ "id": "mandate:list",
2117
2178
  "pluginAlias": "@agledger/cli",
2118
2179
  "pluginName": "@agledger/cli",
2119
2180
  "pluginType": "core",
@@ -2124,13 +2185,27 @@
2124
2185
  "dist",
2125
2186
  "commands",
2126
2187
  "mandate",
2127
- "transition.js"
2188
+ "list.js"
2128
2189
  ]
2129
2190
  },
2130
- "federation:audit-log": {
2191
+ "mandate:outcome": {
2131
2192
  "aliases": [],
2132
- "args": {},
2133
- "description": "Query the federation audit log for gateway and mandate events.",
2193
+ "args": {
2194
+ "id": {
2195
+ "description": "Mandate ID",
2196
+ "name": "id",
2197
+ "required": true
2198
+ },
2199
+ "outcome": {
2200
+ "description": "PASS or FAIL. Alternative: --outcome",
2201
+ "name": "outcome",
2202
+ "options": [
2203
+ "PASS",
2204
+ "FAIL"
2205
+ ]
2206
+ }
2207
+ },
2208
+ "description": "Report principal verdict on a receipt (PASS or FAIL with settlement signal). Outcome can be given positionally or via --outcome.",
2134
2209
  "flags": {
2135
2210
  "json": {
2136
2211
  "description": "Force JSON output (default when stdout is piped)",
@@ -2160,38 +2235,49 @@
2160
2235
  "multiple": false,
2161
2236
  "type": "option"
2162
2237
  },
2163
- "gateway-id": {
2164
- "description": "Filter by gateway ID",
2165
- "name": "gateway-id",
2238
+ "receipt-id": {
2239
+ "description": "Receipt ID to judge",
2240
+ "name": "receipt-id",
2241
+ "required": true,
2166
2242
  "hasDynamicHelp": false,
2167
2243
  "multiple": false,
2168
2244
  "type": "option"
2169
2245
  },
2170
- "entry-type": {
2171
- "description": "Filter by audit entry type",
2172
- "name": "entry-type",
2246
+ "outcome": {
2247
+ "description": "PASS or FAIL — alternative to positional arg",
2248
+ "name": "outcome",
2173
2249
  "hasDynamicHelp": false,
2174
2250
  "multiple": false,
2251
+ "options": [
2252
+ "PASS",
2253
+ "FAIL"
2254
+ ],
2175
2255
  "type": "option"
2176
2256
  },
2177
- "mandate-id": {
2178
- "description": "Filter by mandate ID",
2179
- "name": "mandate-id",
2257
+ "reason": {
2258
+ "description": "Reason for the verdict",
2259
+ "name": "reason",
2180
2260
  "hasDynamicHelp": false,
2181
2261
  "multiple": false,
2182
2262
  "type": "option"
2183
2263
  },
2184
- "limit": {
2185
- "description": "Maximum number of entries to return",
2186
- "name": "limit",
2264
+ "signal": {
2265
+ "description": "Settlement signal (settle, hold, escalate)",
2266
+ "name": "signal",
2187
2267
  "hasDynamicHelp": false,
2188
2268
  "multiple": false,
2189
2269
  "type": "option"
2270
+ },
2271
+ "dry-run": {
2272
+ "description": "Show what would be sent without hitting the API",
2273
+ "name": "dry-run",
2274
+ "allowNo": false,
2275
+ "type": "boolean"
2190
2276
  }
2191
2277
  },
2192
2278
  "hasDynamicHelp": false,
2193
2279
  "hiddenAliases": [],
2194
- "id": "federation:audit-log",
2280
+ "id": "mandate:outcome",
2195
2281
  "pluginAlias": "@agledger/cli",
2196
2282
  "pluginName": "@agledger/cli",
2197
2283
  "pluginType": "core",
@@ -2201,14 +2287,20 @@
2201
2287
  "relativePath": [
2202
2288
  "dist",
2203
2289
  "commands",
2204
- "federation",
2205
- "audit-log.js"
2290
+ "mandate",
2291
+ "outcome.js"
2206
2292
  ]
2207
2293
  },
2208
- "federation:create-token": {
2294
+ "mandate:receipts": {
2209
2295
  "aliases": [],
2210
- "args": {},
2211
- "description": "Create a federation registration token for gateway onboarding.",
2296
+ "args": {
2297
+ "mandateId": {
2298
+ "description": "Mandate ID",
2299
+ "name": "mandateId",
2300
+ "required": true
2301
+ }
2302
+ },
2303
+ "description": "List receipts for a mandate (alias of `receipt list`)",
2212
2304
  "flags": {
2213
2305
  "json": {
2214
2306
  "description": "Force JSON output (default when stdout is piped)",
@@ -2238,30 +2330,16 @@
2238
2330
  "multiple": false,
2239
2331
  "type": "option"
2240
2332
  },
2241
- "label": {
2242
- "description": "Human-readable label for the token",
2243
- "name": "label",
2244
- "hasDynamicHelp": false,
2245
- "multiple": false,
2246
- "type": "option"
2247
- },
2248
- "expires-in-hours": {
2249
- "description": "Token expiry in hours (default: server-configured)",
2250
- "name": "expires-in-hours",
2251
- "hasDynamicHelp": false,
2252
- "multiple": false,
2253
- "type": "option"
2254
- },
2255
- "dry-run": {
2256
- "description": "Show what would be sent without calling the API",
2257
- "name": "dry-run",
2333
+ "all": {
2334
+ "description": "Stream all pages as NDJSON",
2335
+ "name": "all",
2258
2336
  "allowNo": false,
2259
2337
  "type": "boolean"
2260
2338
  }
2261
2339
  },
2262
2340
  "hasDynamicHelp": false,
2263
2341
  "hiddenAliases": [],
2264
- "id": "federation:create-token",
2342
+ "id": "mandate:receipts",
2265
2343
  "pluginAlias": "@agledger/cli",
2266
2344
  "pluginName": "@agledger/cli",
2267
2345
  "pluginType": "core",
@@ -2270,15 +2348,21 @@
2270
2348
  "isESM": true,
2271
2349
  "relativePath": [
2272
2350
  "dist",
2273
- "commands",
2274
- "federation",
2275
- "create-token.js"
2351
+ "commands",
2352
+ "mandate",
2353
+ "receipts.js"
2276
2354
  ]
2277
2355
  },
2278
- "federation:health": {
2356
+ "mandate:reject": {
2279
2357
  "aliases": [],
2280
- "args": {},
2281
- "description": "Show federation health summary (gateway counts, sync status, uptime).",
2358
+ "args": {
2359
+ "id": {
2360
+ "description": "Mandate ID",
2361
+ "name": "id",
2362
+ "required": true
2363
+ }
2364
+ },
2365
+ "description": "Reject a proposed mandate (as performer)",
2282
2366
  "flags": {
2283
2367
  "json": {
2284
2368
  "description": "Force JSON output (default when stdout is piped)",
@@ -2307,11 +2391,24 @@
2307
2391
  "hasDynamicHelp": false,
2308
2392
  "multiple": false,
2309
2393
  "type": "option"
2394
+ },
2395
+ "reason": {
2396
+ "description": "Rejection reason",
2397
+ "name": "reason",
2398
+ "hasDynamicHelp": false,
2399
+ "multiple": false,
2400
+ "type": "option"
2401
+ },
2402
+ "dry-run": {
2403
+ "description": "Show what would be sent without hitting the API",
2404
+ "name": "dry-run",
2405
+ "allowNo": false,
2406
+ "type": "boolean"
2310
2407
  }
2311
2408
  },
2312
2409
  "hasDynamicHelp": false,
2313
2410
  "hiddenAliases": [],
2314
- "id": "federation:health",
2411
+ "id": "mandate:reject",
2315
2412
  "pluginAlias": "@agledger/cli",
2316
2413
  "pluginName": "@agledger/cli",
2317
2414
  "pluginType": "core",
@@ -2321,14 +2418,20 @@
2321
2418
  "relativePath": [
2322
2419
  "dist",
2323
2420
  "commands",
2324
- "federation",
2325
- "health.js"
2421
+ "mandate",
2422
+ "reject.js"
2326
2423
  ]
2327
2424
  },
2328
- "federation:list-gateways": {
2425
+ "mandate:request-revision": {
2329
2426
  "aliases": [],
2330
- "args": {},
2331
- "description": "List federation gateways with optional status filter.",
2427
+ "args": {
2428
+ "id": {
2429
+ "description": "Mandate ID",
2430
+ "name": "id",
2431
+ "required": true
2432
+ }
2433
+ },
2434
+ "description": "Request revision after principal rejection (rework loop)",
2332
2435
  "flags": {
2333
2436
  "json": {
2334
2437
  "description": "Force JSON output (default when stdout is piped)",
@@ -2358,29 +2461,23 @@
2358
2461
  "multiple": false,
2359
2462
  "type": "option"
2360
2463
  },
2361
- "status": {
2362
- "description": "Filter by gateway status",
2363
- "name": "status",
2464
+ "reason": {
2465
+ "description": "Reason for requesting revision",
2466
+ "name": "reason",
2364
2467
  "hasDynamicHelp": false,
2365
2468
  "multiple": false,
2366
- "options": [
2367
- "active",
2368
- "suspended",
2369
- "revoked"
2370
- ],
2371
2469
  "type": "option"
2372
2470
  },
2373
- "limit": {
2374
- "description": "Maximum number of results to return",
2375
- "name": "limit",
2376
- "hasDynamicHelp": false,
2377
- "multiple": false,
2378
- "type": "option"
2471
+ "dry-run": {
2472
+ "description": "Show what would be sent without hitting the API",
2473
+ "name": "dry-run",
2474
+ "allowNo": false,
2475
+ "type": "boolean"
2379
2476
  }
2380
2477
  },
2381
2478
  "hasDynamicHelp": false,
2382
2479
  "hiddenAliases": [],
2383
- "id": "federation:list-gateways",
2480
+ "id": "mandate:request-revision",
2384
2481
  "pluginAlias": "@agledger/cli",
2385
2482
  "pluginName": "@agledger/cli",
2386
2483
  "pluginType": "core",
@@ -2390,14 +2487,24 @@
2390
2487
  "relativePath": [
2391
2488
  "dist",
2392
2489
  "commands",
2393
- "federation",
2394
- "list-gateways.js"
2490
+ "mandate",
2491
+ "request-revision.js"
2395
2492
  ]
2396
2493
  },
2397
- "federation:query-mandates": {
2494
+ "mandate:transition": {
2398
2495
  "aliases": [],
2399
- "args": {},
2400
- "description": "Query federated mandates across gateways.",
2496
+ "args": {
2497
+ "id": {
2498
+ "description": "Mandate ID",
2499
+ "name": "id",
2500
+ "required": true
2501
+ },
2502
+ "action": {
2503
+ "description": "Transition action (e.g. activate, cancel). Alternative: --action",
2504
+ "name": "action"
2505
+ }
2506
+ },
2507
+ "description": "Transition mandate state. Action can be given positionally or via --action. Allowed actions depend on current state — see API schema or call without a valid action to see the error.",
2401
2508
  "flags": {
2402
2509
  "json": {
2403
2510
  "description": "Force JSON output (default when stdout is piped)",
@@ -2427,46 +2534,30 @@
2427
2534
  "multiple": false,
2428
2535
  "type": "option"
2429
2536
  },
2430
- "gateway-id": {
2431
- "description": "Filter by originating gateway ID",
2432
- "name": "gateway-id",
2433
- "hasDynamicHelp": false,
2434
- "multiple": false,
2435
- "type": "option"
2436
- },
2437
- "hub-state": {
2438
- "description": "Filter by hub-side mandate state",
2439
- "name": "hub-state",
2537
+ "action": {
2538
+ "description": "Transition action — alternative to positional arg (matches API body field name)",
2539
+ "name": "action",
2440
2540
  "hasDynamicHelp": false,
2441
2541
  "multiple": false,
2442
- "options": [
2443
- "OFFERED",
2444
- "ACCEPTED",
2445
- "ACTIVE",
2446
- "COMPLETED",
2447
- "DISPUTED",
2448
- "TERMINAL"
2449
- ],
2450
2542
  "type": "option"
2451
2543
  },
2452
- "contract-type": {
2453
- "description": "Filter by contract type (e.g. ACH-PROC-v1)",
2454
- "name": "contract-type",
2544
+ "reason": {
2545
+ "description": "Transition reason",
2546
+ "name": "reason",
2455
2547
  "hasDynamicHelp": false,
2456
2548
  "multiple": false,
2457
2549
  "type": "option"
2458
2550
  },
2459
- "limit": {
2460
- "description": "Maximum number of results to return",
2461
- "name": "limit",
2462
- "hasDynamicHelp": false,
2463
- "multiple": false,
2464
- "type": "option"
2551
+ "dry-run": {
2552
+ "description": "Show what would be sent without hitting the API",
2553
+ "name": "dry-run",
2554
+ "allowNo": false,
2555
+ "type": "boolean"
2465
2556
  }
2466
2557
  },
2467
2558
  "hasDynamicHelp": false,
2468
2559
  "hiddenAliases": [],
2469
- "id": "federation:query-mandates",
2560
+ "id": "mandate:transition",
2470
2561
  "pluginAlias": "@agledger/cli",
2471
2562
  "pluginName": "@agledger/cli",
2472
2563
  "pluginType": "core",
@@ -2476,20 +2567,25 @@
2476
2567
  "relativePath": [
2477
2568
  "dist",
2478
2569
  "commands",
2479
- "federation",
2480
- "query-mandates.js"
2570
+ "mandate",
2571
+ "transition.js"
2481
2572
  ]
2482
2573
  },
2483
- "federation:revoke-gateway": {
2574
+ "receipt:get": {
2484
2575
  "aliases": [],
2485
2576
  "args": {
2486
- "gateway_id": {
2487
- "description": "Gateway ID to revoke",
2488
- "name": "gateway_id",
2577
+ "mandateId": {
2578
+ "description": "Mandate ID",
2579
+ "name": "mandateId",
2580
+ "required": true
2581
+ },
2582
+ "receiptId": {
2583
+ "description": "Receipt ID",
2584
+ "name": "receiptId",
2489
2585
  "required": true
2490
2586
  }
2491
2587
  },
2492
- "description": "Revoke a federation gateway, severing its connection to the hub.",
2588
+ "description": "Get receipt details",
2493
2589
  "flags": {
2494
2590
  "json": {
2495
2591
  "description": "Force JSON output (default when stdout is piped)",
@@ -2518,25 +2614,11 @@
2518
2614
  "hasDynamicHelp": false,
2519
2615
  "multiple": false,
2520
2616
  "type": "option"
2521
- },
2522
- "reason": {
2523
- "description": "Reason for revocation",
2524
- "name": "reason",
2525
- "required": true,
2526
- "hasDynamicHelp": false,
2527
- "multiple": false,
2528
- "type": "option"
2529
- },
2530
- "dry-run": {
2531
- "description": "Show what would be sent without calling the API",
2532
- "name": "dry-run",
2533
- "allowNo": false,
2534
- "type": "boolean"
2535
2617
  }
2536
2618
  },
2537
2619
  "hasDynamicHelp": false,
2538
2620
  "hiddenAliases": [],
2539
- "id": "federation:revoke-gateway",
2621
+ "id": "receipt:get",
2540
2622
  "pluginAlias": "@agledger/cli",
2541
2623
  "pluginName": "@agledger/cli",
2542
2624
  "pluginType": "core",
@@ -2546,14 +2628,22 @@
2546
2628
  "relativePath": [
2547
2629
  "dist",
2548
2630
  "commands",
2549
- "federation",
2550
- "revoke-gateway.js"
2631
+ "receipt",
2632
+ "get.js"
2551
2633
  ]
2552
2634
  },
2553
- "audit:events": {
2554
- "aliases": [],
2555
- "args": {},
2556
- "description": "List audit events",
2635
+ "receipt:list": {
2636
+ "aliases": [
2637
+ "mandate:receipts"
2638
+ ],
2639
+ "args": {
2640
+ "mandateId": {
2641
+ "description": "Mandate ID",
2642
+ "name": "mandateId",
2643
+ "required": true
2644
+ }
2645
+ },
2646
+ "description": "List receipts for a mandate",
2557
2647
  "flags": {
2558
2648
  "json": {
2559
2649
  "description": "Force JSON output (default when stdout is piped)",
@@ -2583,41 +2673,6 @@
2583
2673
  "multiple": false,
2584
2674
  "type": "option"
2585
2675
  },
2586
- "since": {
2587
- "description": "ISO 8601 timestamp — list events after this time",
2588
- "name": "since",
2589
- "required": true,
2590
- "hasDynamicHelp": false,
2591
- "multiple": false,
2592
- "type": "option"
2593
- },
2594
- "order": {
2595
- "description": "Sort order",
2596
- "name": "order",
2597
- "default": "desc",
2598
- "hasDynamicHelp": false,
2599
- "multiple": false,
2600
- "options": [
2601
- "asc",
2602
- "desc"
2603
- ],
2604
- "type": "option"
2605
- },
2606
- "limit": {
2607
- "description": "Max results per page",
2608
- "name": "limit",
2609
- "default": 25,
2610
- "hasDynamicHelp": false,
2611
- "multiple": false,
2612
- "type": "option"
2613
- },
2614
- "cursor": {
2615
- "description": "Pagination cursor",
2616
- "name": "cursor",
2617
- "hasDynamicHelp": false,
2618
- "multiple": false,
2619
- "type": "option"
2620
- },
2621
2676
  "all": {
2622
2677
  "description": "Stream all pages as NDJSON",
2623
2678
  "name": "all",
@@ -2627,7 +2682,7 @@
2627
2682
  },
2628
2683
  "hasDynamicHelp": false,
2629
2684
  "hiddenAliases": [],
2630
- "id": "audit:events",
2685
+ "id": "receipt:list",
2631
2686
  "pluginAlias": "@agledger/cli",
2632
2687
  "pluginName": "@agledger/cli",
2633
2688
  "pluginType": "core",
@@ -2637,11 +2692,11 @@
2637
2692
  "relativePath": [
2638
2693
  "dist",
2639
2694
  "commands",
2640
- "audit",
2641
- "events.js"
2695
+ "receipt",
2696
+ "list.js"
2642
2697
  ]
2643
2698
  },
2644
- "audit:trail": {
2699
+ "receipt:submit": {
2645
2700
  "aliases": [],
2646
2701
  "args": {
2647
2702
  "mandateId": {
@@ -2650,7 +2705,7 @@
2650
2705
  "required": true
2651
2706
  }
2652
2707
  },
2653
- "description": "Get the hash-chained audit trail for a mandate",
2708
+ "description": "Submit a receipt (evidence of completion) for a mandate",
2654
2709
  "flags": {
2655
2710
  "json": {
2656
2711
  "description": "Force JSON output (default when stdout is piped)",
@@ -2679,11 +2734,31 @@
2679
2734
  "hasDynamicHelp": false,
2680
2735
  "multiple": false,
2681
2736
  "type": "option"
2737
+ },
2738
+ "data": {
2739
+ "description": "Evidence as JSON string. Either a raw evidence object or { \"evidence\": {...} } — both are accepted.",
2740
+ "name": "data",
2741
+ "hasDynamicHelp": false,
2742
+ "multiple": false,
2743
+ "type": "option"
2744
+ },
2745
+ "file": {
2746
+ "description": "Read evidence from JSON file (same shape as --data)",
2747
+ "name": "file",
2748
+ "hasDynamicHelp": false,
2749
+ "multiple": false,
2750
+ "type": "option"
2751
+ },
2752
+ "dry-run": {
2753
+ "description": "Show what would be sent without hitting the API",
2754
+ "name": "dry-run",
2755
+ "allowNo": false,
2756
+ "type": "boolean"
2682
2757
  }
2683
2758
  },
2684
2759
  "hasDynamicHelp": false,
2685
2760
  "hiddenAliases": [],
2686
- "id": "audit:trail",
2761
+ "id": "receipt:submit",
2687
2762
  "pluginAlias": "@agledger/cli",
2688
2763
  "pluginName": "@agledger/cli",
2689
2764
  "pluginType": "core",
@@ -2693,8 +2768,8 @@
2693
2768
  "relativePath": [
2694
2769
  "dist",
2695
2770
  "commands",
2696
- "audit",
2697
- "trail.js"
2771
+ "receipt",
2772
+ "submit.js"
2698
2773
  ]
2699
2774
  },
2700
2775
  "verdict:render": {
@@ -4019,5 +4094,5 @@
4019
4094
  ]
4020
4095
  }
4021
4096
  },
4022
- "version": "0.5.1"
4097
+ "version": "0.5.3"
4023
4098
  }