@agledger/cli 0.5.1 → 0.5.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.
@@ -609,6 +609,216 @@
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
+ },
687
+ "agent:list": {
688
+ "aliases": [],
689
+ "args": {},
690
+ "description": "List agents in an enterprise",
691
+ "flags": {
692
+ "json": {
693
+ "description": "Force JSON output (default when stdout is piped)",
694
+ "name": "json",
695
+ "allowNo": false,
696
+ "type": "boolean"
697
+ },
698
+ "quiet": {
699
+ "description": "Suppress output (exit code only)",
700
+ "name": "quiet",
701
+ "allowNo": false,
702
+ "type": "boolean"
703
+ },
704
+ "api-key": {
705
+ "description": "AGLedger API key",
706
+ "env": "AGLEDGER_API_KEY",
707
+ "name": "api-key",
708
+ "hasDynamicHelp": false,
709
+ "multiple": false,
710
+ "type": "option"
711
+ },
712
+ "api-url": {
713
+ "description": "AGLedger API base URL",
714
+ "env": "AGLEDGER_API_URL",
715
+ "name": "api-url",
716
+ "hasDynamicHelp": false,
717
+ "multiple": false,
718
+ "type": "option"
719
+ },
720
+ "enterprise": {
721
+ "description": "Enterprise ID",
722
+ "name": "enterprise",
723
+ "required": true,
724
+ "hasDynamicHelp": false,
725
+ "multiple": false,
726
+ "type": "option"
727
+ },
728
+ "limit": {
729
+ "description": "Max results per page",
730
+ "name": "limit",
731
+ "default": 25,
732
+ "hasDynamicHelp": false,
733
+ "multiple": false,
734
+ "type": "option"
735
+ },
736
+ "cursor": {
737
+ "description": "Pagination cursor",
738
+ "name": "cursor",
739
+ "hasDynamicHelp": false,
740
+ "multiple": false,
741
+ "type": "option"
742
+ },
743
+ "all": {
744
+ "description": "Stream all pages as NDJSON",
745
+ "name": "all",
746
+ "allowNo": false,
747
+ "type": "boolean"
748
+ }
749
+ },
750
+ "hasDynamicHelp": false,
751
+ "hiddenAliases": [],
752
+ "id": "agent:list",
753
+ "pluginAlias": "@agledger/cli",
754
+ "pluginName": "@agledger/cli",
755
+ "pluginType": "core",
756
+ "strict": true,
757
+ "enableJsonFlag": false,
758
+ "isESM": true,
759
+ "relativePath": [
760
+ "dist",
761
+ "commands",
762
+ "agent",
763
+ "list.js"
764
+ ]
765
+ },
766
+ "agent:reputation": {
767
+ "aliases": [],
768
+ "args": {
769
+ "agentId": {
770
+ "description": "Agent ID",
771
+ "name": "agentId",
772
+ "required": true
773
+ }
774
+ },
775
+ "description": "Get reputation score for an agent",
776
+ "flags": {
777
+ "json": {
778
+ "description": "Force JSON output (default when stdout is piped)",
779
+ "name": "json",
780
+ "allowNo": false,
781
+ "type": "boolean"
782
+ },
783
+ "quiet": {
784
+ "description": "Suppress output (exit code only)",
785
+ "name": "quiet",
786
+ "allowNo": false,
787
+ "type": "boolean"
788
+ },
789
+ "api-key": {
790
+ "description": "AGLedger API key",
791
+ "env": "AGLEDGER_API_KEY",
792
+ "name": "api-key",
793
+ "hasDynamicHelp": false,
794
+ "multiple": false,
795
+ "type": "option"
796
+ },
797
+ "api-url": {
798
+ "description": "AGLedger API base URL",
799
+ "env": "AGLEDGER_API_URL",
800
+ "name": "api-url",
801
+ "hasDynamicHelp": false,
802
+ "multiple": false,
803
+ "type": "option"
804
+ }
805
+ },
806
+ "hasDynamicHelp": false,
807
+ "hiddenAliases": [],
808
+ "id": "agent:reputation",
809
+ "pluginAlias": "@agledger/cli",
810
+ "pluginName": "@agledger/cli",
811
+ "pluginType": "core",
812
+ "strict": true,
813
+ "enableJsonFlag": false,
814
+ "isESM": true,
815
+ "relativePath": [
816
+ "dist",
817
+ "commands",
818
+ "agent",
819
+ "reputation.js"
820
+ ]
821
+ },
612
822
  "admin:create-agent": {
613
823
  "aliases": [],
614
824
  "args": {},
@@ -848,10 +1058,10 @@
848
1058
  "set-config.js"
849
1059
  ]
850
1060
  },
851
- "agent:list": {
1061
+ "federation:audit-log": {
852
1062
  "aliases": [],
853
1063
  "args": {},
854
- "description": "List agents in an enterprise",
1064
+ "description": "Query the federation audit log for gateway and mandate events.",
855
1065
  "flags": {
856
1066
  "json": {
857
1067
  "description": "Force JSON output (default when stdout is piped)",
@@ -881,39 +1091,38 @@
881
1091
  "multiple": false,
882
1092
  "type": "option"
883
1093
  },
884
- "enterprise": {
885
- "description": "Enterprise ID",
886
- "name": "enterprise",
887
- "required": true,
1094
+ "gateway-id": {
1095
+ "description": "Filter by gateway ID",
1096
+ "name": "gateway-id",
888
1097
  "hasDynamicHelp": false,
889
1098
  "multiple": false,
890
1099
  "type": "option"
891
1100
  },
892
- "limit": {
893
- "description": "Max results per page",
894
- "name": "limit",
895
- "default": 25,
1101
+ "entry-type": {
1102
+ "description": "Filter by audit entry type",
1103
+ "name": "entry-type",
896
1104
  "hasDynamicHelp": false,
897
1105
  "multiple": false,
898
1106
  "type": "option"
899
1107
  },
900
- "cursor": {
901
- "description": "Pagination cursor",
902
- "name": "cursor",
1108
+ "mandate-id": {
1109
+ "description": "Filter by mandate ID",
1110
+ "name": "mandate-id",
903
1111
  "hasDynamicHelp": false,
904
1112
  "multiple": false,
905
1113
  "type": "option"
906
1114
  },
907
- "all": {
908
- "description": "Stream all pages as NDJSON",
909
- "name": "all",
910
- "allowNo": false,
911
- "type": "boolean"
1115
+ "limit": {
1116
+ "description": "Maximum number of entries to return",
1117
+ "name": "limit",
1118
+ "hasDynamicHelp": false,
1119
+ "multiple": false,
1120
+ "type": "option"
912
1121
  }
913
1122
  },
914
1123
  "hasDynamicHelp": false,
915
1124
  "hiddenAliases": [],
916
- "id": "agent:list",
1125
+ "id": "federation:audit-log",
917
1126
  "pluginAlias": "@agledger/cli",
918
1127
  "pluginName": "@agledger/cli",
919
1128
  "pluginType": "core",
@@ -923,20 +1132,14 @@
923
1132
  "relativePath": [
924
1133
  "dist",
925
1134
  "commands",
926
- "agent",
927
- "list.js"
1135
+ "federation",
1136
+ "audit-log.js"
928
1137
  ]
929
1138
  },
930
- "agent:reputation": {
1139
+ "federation:create-token": {
931
1140
  "aliases": [],
932
- "args": {
933
- "agentId": {
934
- "description": "Agent ID",
935
- "name": "agentId",
936
- "required": true
937
- }
938
- },
939
- "description": "Get reputation score for an agent",
1141
+ "args": {},
1142
+ "description": "Create a federation registration token for gateway onboarding.",
940
1143
  "flags": {
941
1144
  "json": {
942
1145
  "description": "Force JSON output (default when stdout is piped)",
@@ -965,39 +1168,48 @@
965
1168
  "hasDynamicHelp": false,
966
1169
  "multiple": false,
967
1170
  "type": "option"
968
- }
969
- },
970
- "hasDynamicHelp": false,
971
- "hiddenAliases": [],
972
- "id": "agent:reputation",
973
- "pluginAlias": "@agledger/cli",
974
- "pluginName": "@agledger/cli",
975
- "pluginType": "core",
1171
+ },
1172
+ "label": {
1173
+ "description": "Human-readable label for the token",
1174
+ "name": "label",
1175
+ "hasDynamicHelp": false,
1176
+ "multiple": false,
1177
+ "type": "option"
1178
+ },
1179
+ "expires-in-hours": {
1180
+ "description": "Token expiry in hours (default: server-configured)",
1181
+ "name": "expires-in-hours",
1182
+ "hasDynamicHelp": false,
1183
+ "multiple": false,
1184
+ "type": "option"
1185
+ },
1186
+ "dry-run": {
1187
+ "description": "Show what would be sent without calling the API",
1188
+ "name": "dry-run",
1189
+ "allowNo": false,
1190
+ "type": "boolean"
1191
+ }
1192
+ },
1193
+ "hasDynamicHelp": false,
1194
+ "hiddenAliases": [],
1195
+ "id": "federation:create-token",
1196
+ "pluginAlias": "@agledger/cli",
1197
+ "pluginName": "@agledger/cli",
1198
+ "pluginType": "core",
976
1199
  "strict": true,
977
1200
  "enableJsonFlag": false,
978
1201
  "isESM": true,
979
1202
  "relativePath": [
980
1203
  "dist",
981
1204
  "commands",
982
- "agent",
983
- "reputation.js"
1205
+ "federation",
1206
+ "create-token.js"
984
1207
  ]
985
1208
  },
986
- "receipt:get": {
1209
+ "federation:health": {
987
1210
  "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",
1211
+ "args": {},
1212
+ "description": "Show federation health summary (gateway counts, sync status, uptime).",
1001
1213
  "flags": {
1002
1214
  "json": {
1003
1215
  "description": "Force JSON output (default when stdout is piped)",
@@ -1030,7 +1242,7 @@
1030
1242
  },
1031
1243
  "hasDynamicHelp": false,
1032
1244
  "hiddenAliases": [],
1033
- "id": "receipt:get",
1245
+ "id": "federation:health",
1034
1246
  "pluginAlias": "@agledger/cli",
1035
1247
  "pluginName": "@agledger/cli",
1036
1248
  "pluginType": "core",
@@ -1040,22 +1252,14 @@
1040
1252
  "relativePath": [
1041
1253
  "dist",
1042
1254
  "commands",
1043
- "receipt",
1044
- "get.js"
1255
+ "federation",
1256
+ "health.js"
1045
1257
  ]
1046
1258
  },
1047
- "receipt:list": {
1048
- "aliases": [
1049
- "mandate:receipts"
1050
- ],
1051
- "args": {
1052
- "mandateId": {
1053
- "description": "Mandate ID",
1054
- "name": "mandateId",
1055
- "required": true
1056
- }
1057
- },
1058
- "description": "List receipts for a mandate",
1259
+ "federation:list-gateways": {
1260
+ "aliases": [],
1261
+ "args": {},
1262
+ "description": "List federation gateways with optional status filter.",
1059
1263
  "flags": {
1060
1264
  "json": {
1061
1265
  "description": "Force JSON output (default when stdout is piped)",
@@ -1085,16 +1289,29 @@
1085
1289
  "multiple": false,
1086
1290
  "type": "option"
1087
1291
  },
1088
- "all": {
1089
- "description": "Stream all pages as NDJSON",
1090
- "name": "all",
1091
- "allowNo": false,
1092
- "type": "boolean"
1292
+ "status": {
1293
+ "description": "Filter by gateway status",
1294
+ "name": "status",
1295
+ "hasDynamicHelp": false,
1296
+ "multiple": false,
1297
+ "options": [
1298
+ "active",
1299
+ "suspended",
1300
+ "revoked"
1301
+ ],
1302
+ "type": "option"
1303
+ },
1304
+ "limit": {
1305
+ "description": "Maximum number of results to return",
1306
+ "name": "limit",
1307
+ "hasDynamicHelp": false,
1308
+ "multiple": false,
1309
+ "type": "option"
1093
1310
  }
1094
1311
  },
1095
1312
  "hasDynamicHelp": false,
1096
1313
  "hiddenAliases": [],
1097
- "id": "receipt:list",
1314
+ "id": "federation:list-gateways",
1098
1315
  "pluginAlias": "@agledger/cli",
1099
1316
  "pluginName": "@agledger/cli",
1100
1317
  "pluginType": "core",
@@ -1104,20 +1321,14 @@
1104
1321
  "relativePath": [
1105
1322
  "dist",
1106
1323
  "commands",
1107
- "receipt",
1108
- "list.js"
1324
+ "federation",
1325
+ "list-gateways.js"
1109
1326
  ]
1110
1327
  },
1111
- "receipt:submit": {
1328
+ "federation:query-mandates": {
1112
1329
  "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",
1330
+ "args": {},
1331
+ "description": "Query federated mandates across gateways.",
1121
1332
  "flags": {
1122
1333
  "json": {
1123
1334
  "description": "Force JSON output (default when stdout is piped)",
@@ -1147,30 +1358,46 @@
1147
1358
  "multiple": false,
1148
1359
  "type": "option"
1149
1360
  },
1150
- "data": {
1151
- "description": "Evidence as JSON string. Either a raw evidence object or { \"evidence\": {...} } — both are accepted.",
1152
- "name": "data",
1361
+ "gateway-id": {
1362
+ "description": "Filter by originating gateway ID",
1363
+ "name": "gateway-id",
1153
1364
  "hasDynamicHelp": false,
1154
1365
  "multiple": false,
1155
1366
  "type": "option"
1156
1367
  },
1157
- "file": {
1158
- "description": "Read evidence from JSON file (same shape as --data)",
1159
- "name": "file",
1368
+ "hub-state": {
1369
+ "description": "Filter by hub-side mandate state",
1370
+ "name": "hub-state",
1371
+ "hasDynamicHelp": false,
1372
+ "multiple": false,
1373
+ "options": [
1374
+ "OFFERED",
1375
+ "ACCEPTED",
1376
+ "ACTIVE",
1377
+ "COMPLETED",
1378
+ "DISPUTED",
1379
+ "TERMINAL"
1380
+ ],
1381
+ "type": "option"
1382
+ },
1383
+ "contract-type": {
1384
+ "description": "Filter by contract type (e.g. ACH-PROC-v1)",
1385
+ "name": "contract-type",
1160
1386
  "hasDynamicHelp": false,
1161
1387
  "multiple": false,
1162
1388
  "type": "option"
1163
1389
  },
1164
- "dry-run": {
1165
- "description": "Show what would be sent without hitting the API",
1166
- "name": "dry-run",
1167
- "allowNo": false,
1168
- "type": "boolean"
1390
+ "limit": {
1391
+ "description": "Maximum number of results to return",
1392
+ "name": "limit",
1393
+ "hasDynamicHelp": false,
1394
+ "multiple": false,
1395
+ "type": "option"
1169
1396
  }
1170
1397
  },
1171
1398
  "hasDynamicHelp": false,
1172
1399
  "hiddenAliases": [],
1173
- "id": "receipt:submit",
1400
+ "id": "federation:query-mandates",
1174
1401
  "pluginAlias": "@agledger/cli",
1175
1402
  "pluginName": "@agledger/cli",
1176
1403
  "pluginType": "core",
@@ -1180,20 +1407,20 @@
1180
1407
  "relativePath": [
1181
1408
  "dist",
1182
1409
  "commands",
1183
- "receipt",
1184
- "submit.js"
1410
+ "federation",
1411
+ "query-mandates.js"
1185
1412
  ]
1186
1413
  },
1187
- "mandate:accept": {
1414
+ "federation:revoke-gateway": {
1188
1415
  "aliases": [],
1189
1416
  "args": {
1190
- "id": {
1191
- "description": "Mandate ID",
1192
- "name": "id",
1417
+ "gateway_id": {
1418
+ "description": "Gateway ID to revoke",
1419
+ "name": "gateway_id",
1193
1420
  "required": true
1194
1421
  }
1195
1422
  },
1196
- "description": "Accept a proposed mandate (as performer)",
1423
+ "description": "Revoke a federation gateway, severing its connection to the hub.",
1197
1424
  "flags": {
1198
1425
  "json": {
1199
1426
  "description": "Force JSON output (default when stdout is piped)",
@@ -1223,8 +1450,16 @@
1223
1450
  "multiple": false,
1224
1451
  "type": "option"
1225
1452
  },
1453
+ "reason": {
1454
+ "description": "Reason for revocation",
1455
+ "name": "reason",
1456
+ "required": true,
1457
+ "hasDynamicHelp": false,
1458
+ "multiple": false,
1459
+ "type": "option"
1460
+ },
1226
1461
  "dry-run": {
1227
- "description": "Show what would be sent without hitting the API",
1462
+ "description": "Show what would be sent without calling the API",
1228
1463
  "name": "dry-run",
1229
1464
  "allowNo": false,
1230
1465
  "type": "boolean"
@@ -1232,7 +1467,7 @@
1232
1467
  },
1233
1468
  "hasDynamicHelp": false,
1234
1469
  "hiddenAliases": [],
1235
- "id": "mandate:accept",
1470
+ "id": "federation:revoke-gateway",
1236
1471
  "pluginAlias": "@agledger/cli",
1237
1472
  "pluginName": "@agledger/cli",
1238
1473
  "pluginType": "core",
@@ -1242,14 +1477,14 @@
1242
1477
  "relativePath": [
1243
1478
  "dist",
1244
1479
  "commands",
1245
- "mandate",
1246
- "accept.js"
1480
+ "federation",
1481
+ "revoke-gateway.js"
1247
1482
  ]
1248
1483
  },
1249
- "mandate:batch": {
1484
+ "audit:events": {
1250
1485
  "aliases": [],
1251
1486
  "args": {},
1252
- "description": "Fetch multiple mandates by ID (up to 100). Outputs NDJSON.",
1487
+ "description": "List audit events",
1253
1488
  "flags": {
1254
1489
  "json": {
1255
1490
  "description": "Force JSON output (default when stdout is piped)",
@@ -1279,18 +1514,51 @@
1279
1514
  "multiple": false,
1280
1515
  "type": "option"
1281
1516
  },
1282
- "ids": {
1283
- "description": "Comma-separated mandate IDs",
1284
- "name": "ids",
1517
+ "since": {
1518
+ "description": "ISO 8601 timestamp — list events after this time",
1519
+ "name": "since",
1285
1520
  "required": true,
1286
1521
  "hasDynamicHelp": false,
1287
1522
  "multiple": false,
1288
1523
  "type": "option"
1524
+ },
1525
+ "order": {
1526
+ "description": "Sort order",
1527
+ "name": "order",
1528
+ "default": "desc",
1529
+ "hasDynamicHelp": false,
1530
+ "multiple": false,
1531
+ "options": [
1532
+ "asc",
1533
+ "desc"
1534
+ ],
1535
+ "type": "option"
1536
+ },
1537
+ "limit": {
1538
+ "description": "Max results per page",
1539
+ "name": "limit",
1540
+ "default": 25,
1541
+ "hasDynamicHelp": false,
1542
+ "multiple": false,
1543
+ "type": "option"
1544
+ },
1545
+ "cursor": {
1546
+ "description": "Pagination cursor",
1547
+ "name": "cursor",
1548
+ "hasDynamicHelp": false,
1549
+ "multiple": false,
1550
+ "type": "option"
1551
+ },
1552
+ "all": {
1553
+ "description": "Stream all pages as NDJSON",
1554
+ "name": "all",
1555
+ "allowNo": false,
1556
+ "type": "boolean"
1289
1557
  }
1290
1558
  },
1291
1559
  "hasDynamicHelp": false,
1292
1560
  "hiddenAliases": [],
1293
- "id": "mandate:batch",
1561
+ "id": "audit:events",
1294
1562
  "pluginAlias": "@agledger/cli",
1295
1563
  "pluginName": "@agledger/cli",
1296
1564
  "pluginType": "core",
@@ -1300,20 +1568,20 @@
1300
1568
  "relativePath": [
1301
1569
  "dist",
1302
1570
  "commands",
1303
- "mandate",
1304
- "batch.js"
1571
+ "audit",
1572
+ "events.js"
1305
1573
  ]
1306
1574
  },
1307
- "mandate:cancel": {
1575
+ "audit:trail": {
1308
1576
  "aliases": [],
1309
1577
  "args": {
1310
- "id": {
1578
+ "mandateId": {
1311
1579
  "description": "Mandate ID",
1312
- "name": "id",
1580
+ "name": "mandateId",
1313
1581
  "required": true
1314
1582
  }
1315
1583
  },
1316
- "description": "Cancel a mandate",
1584
+ "description": "Get the hash-chained audit trail for a mandate",
1317
1585
  "flags": {
1318
1586
  "json": {
1319
1587
  "description": "Force JSON output (default when stdout is piped)",
@@ -1342,24 +1610,11 @@
1342
1610
  "hasDynamicHelp": false,
1343
1611
  "multiple": false,
1344
1612
  "type": "option"
1345
- },
1346
- "reason": {
1347
- "description": "Cancellation reason",
1348
- "name": "reason",
1349
- "hasDynamicHelp": false,
1350
- "multiple": false,
1351
- "type": "option"
1352
- },
1353
- "dry-run": {
1354
- "description": "Show what would be sent without hitting the API",
1355
- "name": "dry-run",
1356
- "allowNo": false,
1357
- "type": "boolean"
1358
1613
  }
1359
1614
  },
1360
1615
  "hasDynamicHelp": false,
1361
1616
  "hiddenAliases": [],
1362
- "id": "mandate:cancel",
1617
+ "id": "audit:trail",
1363
1618
  "pluginAlias": "@agledger/cli",
1364
1619
  "pluginName": "@agledger/cli",
1365
1620
  "pluginType": "core",
@@ -1369,20 +1624,25 @@
1369
1624
  "relativePath": [
1370
1625
  "dist",
1371
1626
  "commands",
1372
- "mandate",
1373
- "cancel.js"
1627
+ "audit",
1628
+ "trail.js"
1374
1629
  ]
1375
1630
  },
1376
- "mandate:chain": {
1631
+ "receipt:get": {
1377
1632
  "aliases": [],
1378
1633
  "args": {
1379
- "id": {
1634
+ "mandateId": {
1380
1635
  "description": "Mandate ID",
1381
- "name": "id",
1636
+ "name": "mandateId",
1637
+ "required": true
1638
+ },
1639
+ "receiptId": {
1640
+ "description": "Receipt ID",
1641
+ "name": "receiptId",
1382
1642
  "required": true
1383
1643
  }
1384
1644
  },
1385
- "description": "Get full delegation chain for a mandate",
1645
+ "description": "Get receipt details",
1386
1646
  "flags": {
1387
1647
  "json": {
1388
1648
  "description": "Force JSON output (default when stdout is piped)",
@@ -1415,7 +1675,7 @@
1415
1675
  },
1416
1676
  "hasDynamicHelp": false,
1417
1677
  "hiddenAliases": [],
1418
- "id": "mandate:chain",
1678
+ "id": "receipt:get",
1419
1679
  "pluginAlias": "@agledger/cli",
1420
1680
  "pluginName": "@agledger/cli",
1421
1681
  "pluginType": "core",
@@ -1425,20 +1685,22 @@
1425
1685
  "relativePath": [
1426
1686
  "dist",
1427
1687
  "commands",
1428
- "mandate",
1429
- "chain.js"
1688
+ "receipt",
1689
+ "get.js"
1430
1690
  ]
1431
1691
  },
1432
- "mandate:counter-propose": {
1433
- "aliases": [],
1692
+ "receipt:list": {
1693
+ "aliases": [
1694
+ "mandate:receipts"
1695
+ ],
1434
1696
  "args": {
1435
- "id": {
1697
+ "mandateId": {
1436
1698
  "description": "Mandate ID",
1437
- "name": "id",
1699
+ "name": "mandateId",
1438
1700
  "required": true
1439
1701
  }
1440
1702
  },
1441
- "description": "Counter-propose a mandate with revised terms (as performer)",
1703
+ "description": "List receipts for a mandate",
1442
1704
  "flags": {
1443
1705
  "json": {
1444
1706
  "description": "Force JSON output (default when stdout is piped)",
@@ -1468,30 +1730,16 @@
1468
1730
  "multiple": false,
1469
1731
  "type": "option"
1470
1732
  },
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",
1481
- "hasDynamicHelp": false,
1482
- "multiple": false,
1483
- "type": "option"
1484
- },
1485
- "dry-run": {
1486
- "description": "Show what would be sent without hitting the API",
1487
- "name": "dry-run",
1733
+ "all": {
1734
+ "description": "Stream all pages as NDJSON",
1735
+ "name": "all",
1488
1736
  "allowNo": false,
1489
1737
  "type": "boolean"
1490
1738
  }
1491
1739
  },
1492
1740
  "hasDynamicHelp": false,
1493
1741
  "hiddenAliases": [],
1494
- "id": "mandate:counter-propose",
1742
+ "id": "receipt:list",
1495
1743
  "pluginAlias": "@agledger/cli",
1496
1744
  "pluginName": "@agledger/cli",
1497
1745
  "pluginType": "core",
@@ -1501,14 +1749,20 @@
1501
1749
  "relativePath": [
1502
1750
  "dist",
1503
1751
  "commands",
1504
- "mandate",
1505
- "counter-propose.js"
1752
+ "receipt",
1753
+ "list.js"
1506
1754
  ]
1507
1755
  },
1508
- "mandate:create": {
1756
+ "receipt:submit": {
1509
1757
  "aliases": [],
1510
- "args": {},
1511
- "description": "Create a new mandate",
1758
+ "args": {
1759
+ "mandateId": {
1760
+ "description": "Mandate ID",
1761
+ "name": "mandateId",
1762
+ "required": true
1763
+ }
1764
+ },
1765
+ "description": "Submit a receipt (evidence of completion) for a mandate",
1512
1766
  "flags": {
1513
1767
  "json": {
1514
1768
  "description": "Force JSON output (default when stdout is piped)",
@@ -1538,48 +1792,20 @@
1538
1792
  "multiple": false,
1539
1793
  "type": "option"
1540
1794
  },
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
1795
  "data": {
1557
- "description": "Mandate data as JSON string",
1796
+ "description": "Evidence as JSON string. Either a raw evidence object or { \"evidence\": {...} } — both are accepted.",
1558
1797
  "name": "data",
1559
1798
  "hasDynamicHelp": false,
1560
1799
  "multiple": false,
1561
1800
  "type": "option"
1562
1801
  },
1563
1802
  "file": {
1564
- "description": "Read mandate data from JSON file",
1803
+ "description": "Read evidence from JSON file (same shape as --data)",
1565
1804
  "name": "file",
1566
1805
  "hasDynamicHelp": false,
1567
1806
  "multiple": false,
1568
1807
  "type": "option"
1569
1808
  },
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
1809
  "dry-run": {
1584
1810
  "description": "Show what would be sent without hitting the API",
1585
1811
  "name": "dry-run",
@@ -1589,7 +1815,7 @@
1589
1815
  },
1590
1816
  "hasDynamicHelp": false,
1591
1817
  "hiddenAliases": [],
1592
- "id": "mandate:create",
1818
+ "id": "receipt:submit",
1593
1819
  "pluginAlias": "@agledger/cli",
1594
1820
  "pluginName": "@agledger/cli",
1595
1821
  "pluginType": "core",
@@ -1599,11 +1825,11 @@
1599
1825
  "relativePath": [
1600
1826
  "dist",
1601
1827
  "commands",
1602
- "mandate",
1603
- "create.js"
1828
+ "receipt",
1829
+ "submit.js"
1604
1830
  ]
1605
1831
  },
1606
- "mandate:get": {
1832
+ "mandate:accept": {
1607
1833
  "aliases": [],
1608
1834
  "args": {
1609
1835
  "id": {
@@ -1612,7 +1838,7 @@
1612
1838
  "required": true
1613
1839
  }
1614
1840
  },
1615
- "description": "Get mandate details by ID",
1841
+ "description": "Accept a proposed mandate (as performer)",
1616
1842
  "flags": {
1617
1843
  "json": {
1618
1844
  "description": "Force JSON output (default when stdout is piped)",
@@ -1641,11 +1867,17 @@
1641
1867
  "hasDynamicHelp": false,
1642
1868
  "multiple": false,
1643
1869
  "type": "option"
1870
+ },
1871
+ "dry-run": {
1872
+ "description": "Show what would be sent without hitting the API",
1873
+ "name": "dry-run",
1874
+ "allowNo": false,
1875
+ "type": "boolean"
1644
1876
  }
1645
1877
  },
1646
1878
  "hasDynamicHelp": false,
1647
1879
  "hiddenAliases": [],
1648
- "id": "mandate:get",
1880
+ "id": "mandate:accept",
1649
1881
  "pluginAlias": "@agledger/cli",
1650
1882
  "pluginName": "@agledger/cli",
1651
1883
  "pluginType": "core",
@@ -1656,13 +1888,13 @@
1656
1888
  "dist",
1657
1889
  "commands",
1658
1890
  "mandate",
1659
- "get.js"
1891
+ "accept.js"
1660
1892
  ]
1661
1893
  },
1662
- "mandate:list": {
1894
+ "mandate:batch": {
1663
1895
  "aliases": [],
1664
1896
  "args": {},
1665
- "description": "List mandates with optional filters",
1897
+ "description": "Fetch multiple mandates by ID (up to 100). Outputs NDJSON.",
1666
1898
  "flags": {
1667
1899
  "json": {
1668
1900
  "description": "Force JSON output (default when stdout is piped)",
@@ -1670,67 +1902,40 @@
1670
1902
  "allowNo": false,
1671
1903
  "type": "boolean"
1672
1904
  },
1673
- "quiet": {
1674
- "description": "Suppress output (exit code only)",
1675
- "name": "quiet",
1676
- "allowNo": false,
1677
- "type": "boolean"
1678
- },
1679
- "api-key": {
1680
- "description": "AGLedger API key",
1681
- "env": "AGLEDGER_API_KEY",
1682
- "name": "api-key",
1683
- "hasDynamicHelp": false,
1684
- "multiple": false,
1685
- "type": "option"
1686
- },
1687
- "api-url": {
1688
- "description": "AGLedger API base URL",
1689
- "env": "AGLEDGER_API_URL",
1690
- "name": "api-url",
1691
- "hasDynamicHelp": false,
1692
- "multiple": false,
1693
- "type": "option"
1694
- },
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",
1905
+ "quiet": {
1906
+ "description": "Suppress output (exit code only)",
1907
+ "name": "quiet",
1908
+ "allowNo": false,
1909
+ "type": "boolean"
1910
+ },
1911
+ "api-key": {
1912
+ "description": "AGLedger API key",
1913
+ "env": "AGLEDGER_API_KEY",
1914
+ "name": "api-key",
1705
1915
  "hasDynamicHelp": false,
1706
1916
  "multiple": false,
1707
1917
  "type": "option"
1708
1918
  },
1709
- "limit": {
1710
- "description": "Max results per page",
1711
- "name": "limit",
1712
- "default": 25,
1919
+ "api-url": {
1920
+ "description": "AGLedger API base URL",
1921
+ "env": "AGLEDGER_API_URL",
1922
+ "name": "api-url",
1713
1923
  "hasDynamicHelp": false,
1714
1924
  "multiple": false,
1715
1925
  "type": "option"
1716
1926
  },
1717
- "cursor": {
1718
- "description": "Pagination cursor",
1719
- "name": "cursor",
1927
+ "ids": {
1928
+ "description": "Comma-separated mandate IDs",
1929
+ "name": "ids",
1930
+ "required": true,
1720
1931
  "hasDynamicHelp": false,
1721
1932
  "multiple": false,
1722
1933
  "type": "option"
1723
- },
1724
- "all": {
1725
- "description": "Stream all pages as NDJSON",
1726
- "name": "all",
1727
- "allowNo": false,
1728
- "type": "boolean"
1729
1934
  }
1730
1935
  },
1731
1936
  "hasDynamicHelp": false,
1732
1937
  "hiddenAliases": [],
1733
- "id": "mandate:list",
1938
+ "id": "mandate:batch",
1734
1939
  "pluginAlias": "@agledger/cli",
1735
1940
  "pluginName": "@agledger/cli",
1736
1941
  "pluginType": "core",
@@ -1741,27 +1946,19 @@
1741
1946
  "dist",
1742
1947
  "commands",
1743
1948
  "mandate",
1744
- "list.js"
1949
+ "batch.js"
1745
1950
  ]
1746
1951
  },
1747
- "mandate:outcome": {
1952
+ "mandate:cancel": {
1748
1953
  "aliases": [],
1749
1954
  "args": {
1750
1955
  "id": {
1751
1956
  "description": "Mandate ID",
1752
1957
  "name": "id",
1753
1958
  "required": true
1754
- },
1755
- "outcome": {
1756
- "description": "PASS or FAIL. Alternative: --outcome",
1757
- "name": "outcome",
1758
- "options": [
1759
- "PASS",
1760
- "FAIL"
1761
- ]
1762
1959
  }
1763
1960
  },
1764
- "description": "Report principal verdict on a receipt (PASS or FAIL with settlement signal). Outcome can be given positionally or via --outcome.",
1961
+ "description": "Cancel a mandate",
1765
1962
  "flags": {
1766
1963
  "json": {
1767
1964
  "description": "Force JSON output (default when stdout is piped)",
@@ -1791,39 +1988,13 @@
1791
1988
  "multiple": false,
1792
1989
  "type": "option"
1793
1990
  },
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
1991
  "reason": {
1814
- "description": "Reason for the verdict",
1992
+ "description": "Cancellation reason",
1815
1993
  "name": "reason",
1816
1994
  "hasDynamicHelp": false,
1817
1995
  "multiple": false,
1818
1996
  "type": "option"
1819
1997
  },
1820
- "signal": {
1821
- "description": "Settlement signal (settle, hold, escalate)",
1822
- "name": "signal",
1823
- "hasDynamicHelp": false,
1824
- "multiple": false,
1825
- "type": "option"
1826
- },
1827
1998
  "dry-run": {
1828
1999
  "description": "Show what would be sent without hitting the API",
1829
2000
  "name": "dry-run",
@@ -1833,7 +2004,7 @@
1833
2004
  },
1834
2005
  "hasDynamicHelp": false,
1835
2006
  "hiddenAliases": [],
1836
- "id": "mandate:outcome",
2007
+ "id": "mandate:cancel",
1837
2008
  "pluginAlias": "@agledger/cli",
1838
2009
  "pluginName": "@agledger/cli",
1839
2010
  "pluginType": "core",
@@ -1844,19 +2015,19 @@
1844
2015
  "dist",
1845
2016
  "commands",
1846
2017
  "mandate",
1847
- "outcome.js"
2018
+ "cancel.js"
1848
2019
  ]
1849
2020
  },
1850
- "mandate:receipts": {
2021
+ "mandate:chain": {
1851
2022
  "aliases": [],
1852
2023
  "args": {
1853
- "mandateId": {
2024
+ "id": {
1854
2025
  "description": "Mandate ID",
1855
- "name": "mandateId",
2026
+ "name": "id",
1856
2027
  "required": true
1857
2028
  }
1858
2029
  },
1859
- "description": "List receipts for a mandate (alias of `receipt list`)",
2030
+ "description": "Get full delegation chain for a mandate",
1860
2031
  "flags": {
1861
2032
  "json": {
1862
2033
  "description": "Force JSON output (default when stdout is piped)",
@@ -1885,17 +2056,11 @@
1885
2056
  "hasDynamicHelp": false,
1886
2057
  "multiple": false,
1887
2058
  "type": "option"
1888
- },
1889
- "all": {
1890
- "description": "Stream all pages as NDJSON",
1891
- "name": "all",
1892
- "allowNo": false,
1893
- "type": "boolean"
1894
2059
  }
1895
2060
  },
1896
2061
  "hasDynamicHelp": false,
1897
2062
  "hiddenAliases": [],
1898
- "id": "mandate:receipts",
2063
+ "id": "mandate:chain",
1899
2064
  "pluginAlias": "@agledger/cli",
1900
2065
  "pluginName": "@agledger/cli",
1901
2066
  "pluginType": "core",
@@ -1906,10 +2071,10 @@
1906
2071
  "dist",
1907
2072
  "commands",
1908
2073
  "mandate",
1909
- "receipts.js"
2074
+ "chain.js"
1910
2075
  ]
1911
2076
  },
1912
- "mandate:reject": {
2077
+ "mandate:counter-propose": {
1913
2078
  "aliases": [],
1914
2079
  "args": {
1915
2080
  "id": {
@@ -1918,7 +2083,7 @@
1918
2083
  "required": true
1919
2084
  }
1920
2085
  },
1921
- "description": "Reject a proposed mandate (as performer)",
2086
+ "description": "Counter-propose a mandate with revised terms (as performer)",
1922
2087
  "flags": {
1923
2088
  "json": {
1924
2089
  "description": "Force JSON output (default when stdout is piped)",
@@ -1948,9 +2113,16 @@
1948
2113
  "multiple": false,
1949
2114
  "type": "option"
1950
2115
  },
1951
- "reason": {
1952
- "description": "Rejection reason",
1953
- "name": "reason",
2116
+ "data": {
2117
+ "description": "Counter-proposal data as JSON string (counterCriteria, message)",
2118
+ "name": "data",
2119
+ "hasDynamicHelp": false,
2120
+ "multiple": false,
2121
+ "type": "option"
2122
+ },
2123
+ "file": {
2124
+ "description": "Read counter-proposal data from JSON file",
2125
+ "name": "file",
1954
2126
  "hasDynamicHelp": false,
1955
2127
  "multiple": false,
1956
2128
  "type": "option"
@@ -1964,7 +2136,7 @@
1964
2136
  },
1965
2137
  "hasDynamicHelp": false,
1966
2138
  "hiddenAliases": [],
1967
- "id": "mandate:reject",
2139
+ "id": "mandate:counter-propose",
1968
2140
  "pluginAlias": "@agledger/cli",
1969
2141
  "pluginName": "@agledger/cli",
1970
2142
  "pluginType": "core",
@@ -1975,19 +2147,13 @@
1975
2147
  "dist",
1976
2148
  "commands",
1977
2149
  "mandate",
1978
- "reject.js"
2150
+ "counter-propose.js"
1979
2151
  ]
1980
2152
  },
1981
- "mandate:request-revision": {
2153
+ "mandate:create": {
1982
2154
  "aliases": [],
1983
- "args": {
1984
- "id": {
1985
- "description": "Mandate ID",
1986
- "name": "id",
1987
- "required": true
1988
- }
1989
- },
1990
- "description": "Request revision after principal rejection (rework loop)",
2155
+ "args": {},
2156
+ "description": "Create a new mandate",
1991
2157
  "flags": {
1992
2158
  "json": {
1993
2159
  "description": "Force JSON output (default when stdout is piped)",
@@ -2017,13 +2183,48 @@
2017
2183
  "multiple": false,
2018
2184
  "type": "option"
2019
2185
  },
2020
- "reason": {
2021
- "description": "Reason for requesting revision",
2022
- "name": "reason",
2186
+ "type": {
2187
+ "description": "Contract type (e.g., ACH-PROC-v1)",
2188
+ "name": "type",
2189
+ "required": true,
2190
+ "hasDynamicHelp": false,
2191
+ "multiple": false,
2192
+ "type": "option"
2193
+ },
2194
+ "performer": {
2195
+ "description": "Performer agent ID",
2196
+ "name": "performer",
2197
+ "hasDynamicHelp": false,
2198
+ "multiple": false,
2199
+ "type": "option"
2200
+ },
2201
+ "data": {
2202
+ "description": "Mandate data as JSON string",
2203
+ "name": "data",
2204
+ "hasDynamicHelp": false,
2205
+ "multiple": false,
2206
+ "type": "option"
2207
+ },
2208
+ "file": {
2209
+ "description": "Read mandate data from JSON file",
2210
+ "name": "file",
2211
+ "hasDynamicHelp": false,
2212
+ "multiple": false,
2213
+ "type": "option"
2214
+ },
2215
+ "max-submissions": {
2216
+ "description": "Max receipt submissions allowed (1-100)",
2217
+ "name": "max-submissions",
2023
2218
  "hasDynamicHelp": false,
2024
2219
  "multiple": false,
2025
2220
  "type": "option"
2026
2221
  },
2222
+ "activate": {
2223
+ "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`.",
2224
+ "name": "activate",
2225
+ "allowNo": false,
2226
+ "type": "boolean"
2227
+ },
2027
2228
  "dry-run": {
2028
2229
  "description": "Show what would be sent without hitting the API",
2029
2230
  "name": "dry-run",
@@ -2033,7 +2234,7 @@
2033
2234
  },
2034
2235
  "hasDynamicHelp": false,
2035
2236
  "hiddenAliases": [],
2036
- "id": "mandate:request-revision",
2237
+ "id": "mandate:create",
2037
2238
  "pluginAlias": "@agledger/cli",
2038
2239
  "pluginName": "@agledger/cli",
2039
2240
  "pluginType": "core",
@@ -2044,23 +2245,19 @@
2044
2245
  "dist",
2045
2246
  "commands",
2046
2247
  "mandate",
2047
- "request-revision.js"
2248
+ "create.js"
2048
2249
  ]
2049
2250
  },
2050
- "mandate:transition": {
2251
+ "mandate:get": {
2051
2252
  "aliases": [],
2052
2253
  "args": {
2053
2254
  "id": {
2054
2255
  "description": "Mandate ID",
2055
2256
  "name": "id",
2056
2257
  "required": true
2057
- },
2058
- "action": {
2059
- "description": "Transition action (e.g. activate, cancel). Alternative: --action",
2060
- "name": "action"
2061
2258
  }
2062
2259
  },
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.",
2260
+ "description": "Get mandate details by ID",
2064
2261
  "flags": {
2065
2262
  "json": {
2066
2263
  "description": "Force JSON output (default when stdout is piped)",
@@ -2089,31 +2286,11 @@
2089
2286
  "hasDynamicHelp": false,
2090
2287
  "multiple": false,
2091
2288
  "type": "option"
2092
- },
2093
- "action": {
2094
- "description": "Transition action — alternative to positional arg (matches API body field name)",
2095
- "name": "action",
2096
- "hasDynamicHelp": false,
2097
- "multiple": false,
2098
- "type": "option"
2099
- },
2100
- "reason": {
2101
- "description": "Transition reason",
2102
- "name": "reason",
2103
- "hasDynamicHelp": false,
2104
- "multiple": false,
2105
- "type": "option"
2106
- },
2107
- "dry-run": {
2108
- "description": "Show what would be sent without hitting the API",
2109
- "name": "dry-run",
2110
- "allowNo": false,
2111
- "type": "boolean"
2112
2289
  }
2113
2290
  },
2114
2291
  "hasDynamicHelp": false,
2115
2292
  "hiddenAliases": [],
2116
- "id": "mandate:transition",
2293
+ "id": "mandate:get",
2117
2294
  "pluginAlias": "@agledger/cli",
2118
2295
  "pluginName": "@agledger/cli",
2119
2296
  "pluginType": "core",
@@ -2124,13 +2301,13 @@
2124
2301
  "dist",
2125
2302
  "commands",
2126
2303
  "mandate",
2127
- "transition.js"
2304
+ "get.js"
2128
2305
  ]
2129
2306
  },
2130
- "federation:audit-log": {
2307
+ "mandate:list": {
2131
2308
  "aliases": [],
2132
2309
  "args": {},
2133
- "description": "Query the federation audit log for gateway and mandate events.",
2310
+ "description": "List mandates with optional filters",
2134
2311
  "flags": {
2135
2312
  "json": {
2136
2313
  "description": "Force JSON output (default when stdout is piped)",
@@ -2160,38 +2337,45 @@
2160
2337
  "multiple": false,
2161
2338
  "type": "option"
2162
2339
  },
2163
- "gateway-id": {
2164
- "description": "Filter by gateway ID",
2165
- "name": "gateway-id",
2340
+ "status": {
2341
+ "description": "Filter by mandate status (PROPOSED, REJECTED, CREATED, ACTIVE, PROCESSING, REVISION_REQUESTED, FULFILLED, FAILED, REMEDIATED, EXPIRED, CANCELLED)",
2342
+ "name": "status",
2166
2343
  "hasDynamicHelp": false,
2167
2344
  "multiple": false,
2168
2345
  "type": "option"
2169
2346
  },
2170
- "entry-type": {
2171
- "description": "Filter by audit entry type",
2172
- "name": "entry-type",
2347
+ "type": {
2348
+ "description": "Filter by contract type (e.g., ACH-PROC-v1)",
2349
+ "name": "type",
2173
2350
  "hasDynamicHelp": false,
2174
2351
  "multiple": false,
2175
2352
  "type": "option"
2176
2353
  },
2177
- "mandate-id": {
2178
- "description": "Filter by mandate ID",
2179
- "name": "mandate-id",
2354
+ "limit": {
2355
+ "description": "Max results per page",
2356
+ "name": "limit",
2357
+ "default": 25,
2180
2358
  "hasDynamicHelp": false,
2181
2359
  "multiple": false,
2182
2360
  "type": "option"
2183
2361
  },
2184
- "limit": {
2185
- "description": "Maximum number of entries to return",
2186
- "name": "limit",
2362
+ "cursor": {
2363
+ "description": "Pagination cursor",
2364
+ "name": "cursor",
2187
2365
  "hasDynamicHelp": false,
2188
2366
  "multiple": false,
2189
2367
  "type": "option"
2368
+ },
2369
+ "all": {
2370
+ "description": "Stream all pages as NDJSON",
2371
+ "name": "all",
2372
+ "allowNo": false,
2373
+ "type": "boolean"
2190
2374
  }
2191
2375
  },
2192
2376
  "hasDynamicHelp": false,
2193
2377
  "hiddenAliases": [],
2194
- "id": "federation:audit-log",
2378
+ "id": "mandate:list",
2195
2379
  "pluginAlias": "@agledger/cli",
2196
2380
  "pluginName": "@agledger/cli",
2197
2381
  "pluginType": "core",
@@ -2201,14 +2385,28 @@
2201
2385
  "relativePath": [
2202
2386
  "dist",
2203
2387
  "commands",
2204
- "federation",
2205
- "audit-log.js"
2388
+ "mandate",
2389
+ "list.js"
2206
2390
  ]
2207
2391
  },
2208
- "federation:create-token": {
2209
- "aliases": [],
2210
- "args": {},
2211
- "description": "Create a federation registration token for gateway onboarding.",
2392
+ "mandate:outcome": {
2393
+ "aliases": [],
2394
+ "args": {
2395
+ "id": {
2396
+ "description": "Mandate ID",
2397
+ "name": "id",
2398
+ "required": true
2399
+ },
2400
+ "outcome": {
2401
+ "description": "PASS or FAIL. Alternative: --outcome",
2402
+ "name": "outcome",
2403
+ "options": [
2404
+ "PASS",
2405
+ "FAIL"
2406
+ ]
2407
+ }
2408
+ },
2409
+ "description": "Report principal verdict on a receipt (PASS or FAIL with settlement signal). Outcome can be given positionally or via --outcome.",
2212
2410
  "flags": {
2213
2411
  "json": {
2214
2412
  "description": "Force JSON output (default when stdout is piped)",
@@ -2238,22 +2436,41 @@
2238
2436
  "multiple": false,
2239
2437
  "type": "option"
2240
2438
  },
2241
- "label": {
2242
- "description": "Human-readable label for the token",
2243
- "name": "label",
2439
+ "receipt-id": {
2440
+ "description": "Receipt ID to judge",
2441
+ "name": "receipt-id",
2442
+ "required": true,
2244
2443
  "hasDynamicHelp": false,
2245
2444
  "multiple": false,
2246
2445
  "type": "option"
2247
2446
  },
2248
- "expires-in-hours": {
2249
- "description": "Token expiry in hours (default: server-configured)",
2250
- "name": "expires-in-hours",
2447
+ "outcome": {
2448
+ "description": "PASS or FAIL — alternative to positional arg",
2449
+ "name": "outcome",
2450
+ "hasDynamicHelp": false,
2451
+ "multiple": false,
2452
+ "options": [
2453
+ "PASS",
2454
+ "FAIL"
2455
+ ],
2456
+ "type": "option"
2457
+ },
2458
+ "reason": {
2459
+ "description": "Reason for the verdict",
2460
+ "name": "reason",
2461
+ "hasDynamicHelp": false,
2462
+ "multiple": false,
2463
+ "type": "option"
2464
+ },
2465
+ "signal": {
2466
+ "description": "Settlement signal (settle, hold, escalate)",
2467
+ "name": "signal",
2251
2468
  "hasDynamicHelp": false,
2252
2469
  "multiple": false,
2253
2470
  "type": "option"
2254
2471
  },
2255
2472
  "dry-run": {
2256
- "description": "Show what would be sent without calling the API",
2473
+ "description": "Show what would be sent without hitting the API",
2257
2474
  "name": "dry-run",
2258
2475
  "allowNo": false,
2259
2476
  "type": "boolean"
@@ -2261,7 +2478,7 @@
2261
2478
  },
2262
2479
  "hasDynamicHelp": false,
2263
2480
  "hiddenAliases": [],
2264
- "id": "federation:create-token",
2481
+ "id": "mandate:outcome",
2265
2482
  "pluginAlias": "@agledger/cli",
2266
2483
  "pluginName": "@agledger/cli",
2267
2484
  "pluginType": "core",
@@ -2271,14 +2488,20 @@
2271
2488
  "relativePath": [
2272
2489
  "dist",
2273
2490
  "commands",
2274
- "federation",
2275
- "create-token.js"
2491
+ "mandate",
2492
+ "outcome.js"
2276
2493
  ]
2277
2494
  },
2278
- "federation:health": {
2495
+ "mandate:receipts": {
2279
2496
  "aliases": [],
2280
- "args": {},
2281
- "description": "Show federation health summary (gateway counts, sync status, uptime).",
2497
+ "args": {
2498
+ "mandateId": {
2499
+ "description": "Mandate ID",
2500
+ "name": "mandateId",
2501
+ "required": true
2502
+ }
2503
+ },
2504
+ "description": "List receipts for a mandate (alias of `receipt list`)",
2282
2505
  "flags": {
2283
2506
  "json": {
2284
2507
  "description": "Force JSON output (default when stdout is piped)",
@@ -2307,11 +2530,17 @@
2307
2530
  "hasDynamicHelp": false,
2308
2531
  "multiple": false,
2309
2532
  "type": "option"
2533
+ },
2534
+ "all": {
2535
+ "description": "Stream all pages as NDJSON",
2536
+ "name": "all",
2537
+ "allowNo": false,
2538
+ "type": "boolean"
2310
2539
  }
2311
2540
  },
2312
2541
  "hasDynamicHelp": false,
2313
2542
  "hiddenAliases": [],
2314
- "id": "federation:health",
2543
+ "id": "mandate:receipts",
2315
2544
  "pluginAlias": "@agledger/cli",
2316
2545
  "pluginName": "@agledger/cli",
2317
2546
  "pluginType": "core",
@@ -2321,14 +2550,20 @@
2321
2550
  "relativePath": [
2322
2551
  "dist",
2323
2552
  "commands",
2324
- "federation",
2325
- "health.js"
2553
+ "mandate",
2554
+ "receipts.js"
2326
2555
  ]
2327
2556
  },
2328
- "federation:list-gateways": {
2557
+ "mandate:reject": {
2329
2558
  "aliases": [],
2330
- "args": {},
2331
- "description": "List federation gateways with optional status filter.",
2559
+ "args": {
2560
+ "id": {
2561
+ "description": "Mandate ID",
2562
+ "name": "id",
2563
+ "required": true
2564
+ }
2565
+ },
2566
+ "description": "Reject a proposed mandate (as performer)",
2332
2567
  "flags": {
2333
2568
  "json": {
2334
2569
  "description": "Force JSON output (default when stdout is piped)",
@@ -2358,29 +2593,23 @@
2358
2593
  "multiple": false,
2359
2594
  "type": "option"
2360
2595
  },
2361
- "status": {
2362
- "description": "Filter by gateway status",
2363
- "name": "status",
2596
+ "reason": {
2597
+ "description": "Rejection reason",
2598
+ "name": "reason",
2364
2599
  "hasDynamicHelp": false,
2365
2600
  "multiple": false,
2366
- "options": [
2367
- "active",
2368
- "suspended",
2369
- "revoked"
2370
- ],
2371
2601
  "type": "option"
2372
2602
  },
2373
- "limit": {
2374
- "description": "Maximum number of results to return",
2375
- "name": "limit",
2376
- "hasDynamicHelp": false,
2377
- "multiple": false,
2378
- "type": "option"
2603
+ "dry-run": {
2604
+ "description": "Show what would be sent without hitting the API",
2605
+ "name": "dry-run",
2606
+ "allowNo": false,
2607
+ "type": "boolean"
2379
2608
  }
2380
2609
  },
2381
2610
  "hasDynamicHelp": false,
2382
2611
  "hiddenAliases": [],
2383
- "id": "federation:list-gateways",
2612
+ "id": "mandate:reject",
2384
2613
  "pluginAlias": "@agledger/cli",
2385
2614
  "pluginName": "@agledger/cli",
2386
2615
  "pluginType": "core",
@@ -2390,14 +2619,20 @@
2390
2619
  "relativePath": [
2391
2620
  "dist",
2392
2621
  "commands",
2393
- "federation",
2394
- "list-gateways.js"
2622
+ "mandate",
2623
+ "reject.js"
2395
2624
  ]
2396
2625
  },
2397
- "federation:query-mandates": {
2626
+ "mandate:request-revision": {
2398
2627
  "aliases": [],
2399
- "args": {},
2400
- "description": "Query federated mandates across gateways.",
2628
+ "args": {
2629
+ "id": {
2630
+ "description": "Mandate ID",
2631
+ "name": "id",
2632
+ "required": true
2633
+ }
2634
+ },
2635
+ "description": "Request revision after principal rejection (rework loop)",
2401
2636
  "flags": {
2402
2637
  "json": {
2403
2638
  "description": "Force JSON output (default when stdout is piped)",
@@ -2427,46 +2662,23 @@
2427
2662
  "multiple": false,
2428
2663
  "type": "option"
2429
2664
  },
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",
2440
- "hasDynamicHelp": false,
2441
- "multiple": false,
2442
- "options": [
2443
- "OFFERED",
2444
- "ACCEPTED",
2445
- "ACTIVE",
2446
- "COMPLETED",
2447
- "DISPUTED",
2448
- "TERMINAL"
2449
- ],
2450
- "type": "option"
2451
- },
2452
- "contract-type": {
2453
- "description": "Filter by contract type (e.g. ACH-PROC-v1)",
2454
- "name": "contract-type",
2665
+ "reason": {
2666
+ "description": "Reason for requesting revision",
2667
+ "name": "reason",
2455
2668
  "hasDynamicHelp": false,
2456
2669
  "multiple": false,
2457
2670
  "type": "option"
2458
2671
  },
2459
- "limit": {
2460
- "description": "Maximum number of results to return",
2461
- "name": "limit",
2462
- "hasDynamicHelp": false,
2463
- "multiple": false,
2464
- "type": "option"
2672
+ "dry-run": {
2673
+ "description": "Show what would be sent without hitting the API",
2674
+ "name": "dry-run",
2675
+ "allowNo": false,
2676
+ "type": "boolean"
2465
2677
  }
2466
2678
  },
2467
2679
  "hasDynamicHelp": false,
2468
2680
  "hiddenAliases": [],
2469
- "id": "federation:query-mandates",
2681
+ "id": "mandate:request-revision",
2470
2682
  "pluginAlias": "@agledger/cli",
2471
2683
  "pluginName": "@agledger/cli",
2472
2684
  "pluginType": "core",
@@ -2476,20 +2688,24 @@
2476
2688
  "relativePath": [
2477
2689
  "dist",
2478
2690
  "commands",
2479
- "federation",
2480
- "query-mandates.js"
2691
+ "mandate",
2692
+ "request-revision.js"
2481
2693
  ]
2482
2694
  },
2483
- "federation:revoke-gateway": {
2695
+ "mandate:transition": {
2484
2696
  "aliases": [],
2485
2697
  "args": {
2486
- "gateway_id": {
2487
- "description": "Gateway ID to revoke",
2488
- "name": "gateway_id",
2698
+ "id": {
2699
+ "description": "Mandate ID",
2700
+ "name": "id",
2489
2701
  "required": true
2702
+ },
2703
+ "action": {
2704
+ "description": "Transition action (e.g. activate, cancel). Alternative: --action",
2705
+ "name": "action"
2490
2706
  }
2491
2707
  },
2492
- "description": "Revoke a federation gateway, severing its connection to the hub.",
2708
+ "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.",
2493
2709
  "flags": {
2494
2710
  "json": {
2495
2711
  "description": "Force JSON output (default when stdout is piped)",
@@ -2519,16 +2735,22 @@
2519
2735
  "multiple": false,
2520
2736
  "type": "option"
2521
2737
  },
2738
+ "action": {
2739
+ "description": "Transition action — alternative to positional arg (matches API body field name)",
2740
+ "name": "action",
2741
+ "hasDynamicHelp": false,
2742
+ "multiple": false,
2743
+ "type": "option"
2744
+ },
2522
2745
  "reason": {
2523
- "description": "Reason for revocation",
2746
+ "description": "Transition reason",
2524
2747
  "name": "reason",
2525
- "required": true,
2526
2748
  "hasDynamicHelp": false,
2527
2749
  "multiple": false,
2528
2750
  "type": "option"
2529
2751
  },
2530
2752
  "dry-run": {
2531
- "description": "Show what would be sent without calling the API",
2753
+ "description": "Show what would be sent without hitting the API",
2532
2754
  "name": "dry-run",
2533
2755
  "allowNo": false,
2534
2756
  "type": "boolean"
@@ -2536,7 +2758,7 @@
2536
2758
  },
2537
2759
  "hasDynamicHelp": false,
2538
2760
  "hiddenAliases": [],
2539
- "id": "federation:revoke-gateway",
2761
+ "id": "mandate:transition",
2540
2762
  "pluginAlias": "@agledger/cli",
2541
2763
  "pluginName": "@agledger/cli",
2542
2764
  "pluginType": "core",
@@ -2546,14 +2768,14 @@
2546
2768
  "relativePath": [
2547
2769
  "dist",
2548
2770
  "commands",
2549
- "federation",
2550
- "revoke-gateway.js"
2771
+ "mandate",
2772
+ "transition.js"
2551
2773
  ]
2552
2774
  },
2553
- "audit:events": {
2775
+ "webhook:create": {
2554
2776
  "aliases": [],
2555
2777
  "args": {},
2556
- "description": "List audit events",
2778
+ "description": "Create a webhook subscription",
2557
2779
  "flags": {
2558
2780
  "json": {
2559
2781
  "description": "Force JSON output (default when stdout is piped)",
@@ -2583,51 +2805,32 @@
2583
2805
  "multiple": false,
2584
2806
  "type": "option"
2585
2807
  },
2586
- "since": {
2587
- "description": "ISO 8601 timestamp — list events after this time",
2588
- "name": "since",
2808
+ "url": {
2809
+ "description": "Webhook endpoint URL",
2810
+ "name": "url",
2589
2811
  "required": true,
2590
2812
  "hasDynamicHelp": false,
2591
2813
  "multiple": false,
2592
2814
  "type": "option"
2593
2815
  },
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",
2816
+ "events": {
2817
+ "description": "Comma-separated event types (e.g., mandate.created,receipt.submitted)",
2818
+ "name": "events",
2819
+ "required": true,
2617
2820
  "hasDynamicHelp": false,
2618
2821
  "multiple": false,
2619
2822
  "type": "option"
2620
2823
  },
2621
- "all": {
2622
- "description": "Stream all pages as NDJSON",
2623
- "name": "all",
2824
+ "dry-run": {
2825
+ "description": "Show what would be sent without hitting the API",
2826
+ "name": "dry-run",
2624
2827
  "allowNo": false,
2625
2828
  "type": "boolean"
2626
2829
  }
2627
2830
  },
2628
2831
  "hasDynamicHelp": false,
2629
2832
  "hiddenAliases": [],
2630
- "id": "audit:events",
2833
+ "id": "webhook:create",
2631
2834
  "pluginAlias": "@agledger/cli",
2632
2835
  "pluginName": "@agledger/cli",
2633
2836
  "pluginType": "core",
@@ -2637,20 +2840,20 @@
2637
2840
  "relativePath": [
2638
2841
  "dist",
2639
2842
  "commands",
2640
- "audit",
2641
- "events.js"
2843
+ "webhook",
2844
+ "create.js"
2642
2845
  ]
2643
2846
  },
2644
- "audit:trail": {
2847
+ "webhook:delete": {
2645
2848
  "aliases": [],
2646
2849
  "args": {
2647
- "mandateId": {
2648
- "description": "Mandate ID",
2649
- "name": "mandateId",
2850
+ "id": {
2851
+ "description": "Webhook ID",
2852
+ "name": "id",
2650
2853
  "required": true
2651
2854
  }
2652
2855
  },
2653
- "description": "Get the hash-chained audit trail for a mandate",
2856
+ "description": "Delete a webhook subscription",
2654
2857
  "flags": {
2655
2858
  "json": {
2656
2859
  "description": "Force JSON output (default when stdout is piped)",
@@ -2679,11 +2882,17 @@
2679
2882
  "hasDynamicHelp": false,
2680
2883
  "multiple": false,
2681
2884
  "type": "option"
2885
+ },
2886
+ "dry-run": {
2887
+ "description": "Show what would be deleted without hitting the API",
2888
+ "name": "dry-run",
2889
+ "allowNo": false,
2890
+ "type": "boolean"
2682
2891
  }
2683
2892
  },
2684
2893
  "hasDynamicHelp": false,
2685
2894
  "hiddenAliases": [],
2686
- "id": "audit:trail",
2895
+ "id": "webhook:delete",
2687
2896
  "pluginAlias": "@agledger/cli",
2688
2897
  "pluginName": "@agledger/cli",
2689
2898
  "pluginType": "core",
@@ -2693,29 +2902,14 @@
2693
2902
  "relativePath": [
2694
2903
  "dist",
2695
2904
  "commands",
2696
- "audit",
2697
- "trail.js"
2905
+ "webhook",
2906
+ "delete.js"
2698
2907
  ]
2699
2908
  },
2700
- "verdict:render": {
2909
+ "webhook:list": {
2701
2910
  "aliases": [],
2702
- "args": {
2703
- "mandateId": {
2704
- "description": "Mandate ID",
2705
- "name": "mandateId",
2706
- "required": true
2707
- },
2708
- "verdict": {
2709
- "description": "PASS to accept, FAIL to reject",
2710
- "name": "verdict",
2711
- "options": [
2712
- "PASS",
2713
- "FAIL"
2714
- ],
2715
- "required": true
2716
- }
2717
- },
2718
- "description": "Render a verdict on a notarized agreement (accept or reject delivery)",
2911
+ "args": {},
2912
+ "description": "List registered webhooks, optionally filtered by exact URL",
2719
2913
  "flags": {
2720
2914
  "json": {
2721
2915
  "description": "Force JSON output (default when stdout is piped)",
@@ -2745,23 +2939,38 @@
2745
2939
  "multiple": false,
2746
2940
  "type": "option"
2747
2941
  },
2748
- "reason": {
2749
- "description": "Reason for the verdict",
2750
- "name": "reason",
2942
+ "url": {
2943
+ "description": "Filter by exact webhook URL",
2944
+ "name": "url",
2751
2945
  "hasDynamicHelp": false,
2752
2946
  "multiple": false,
2753
2947
  "type": "option"
2754
2948
  },
2755
- "dry-run": {
2756
- "description": "Show what would be sent without hitting the API",
2757
- "name": "dry-run",
2949
+ "limit": {
2950
+ "description": "Max results per page",
2951
+ "name": "limit",
2952
+ "default": 50,
2953
+ "hasDynamicHelp": false,
2954
+ "multiple": false,
2955
+ "type": "option"
2956
+ },
2957
+ "cursor": {
2958
+ "description": "Pagination cursor",
2959
+ "name": "cursor",
2960
+ "hasDynamicHelp": false,
2961
+ "multiple": false,
2962
+ "type": "option"
2963
+ },
2964
+ "all": {
2965
+ "description": "Stream all pages as NDJSON",
2966
+ "name": "all",
2758
2967
  "allowNo": false,
2759
2968
  "type": "boolean"
2760
2969
  }
2761
2970
  },
2762
2971
  "hasDynamicHelp": false,
2763
2972
  "hiddenAliases": [],
2764
- "id": "verdict:render",
2973
+ "id": "webhook:list",
2765
2974
  "pluginAlias": "@agledger/cli",
2766
2975
  "pluginName": "@agledger/cli",
2767
2976
  "pluginType": "core",
@@ -2771,8 +2980,8 @@
2771
2980
  "relativePath": [
2772
2981
  "dist",
2773
2982
  "commands",
2774
- "verdict",
2775
- "render.js"
2983
+ "webhook",
2984
+ "list.js"
2776
2985
  ]
2777
2986
  },
2778
2987
  "schema:blank-template": {
@@ -3806,144 +4015,25 @@
3806
4015
  "versions.js"
3807
4016
  ]
3808
4017
  },
3809
- "webhook:create": {
3810
- "aliases": [],
3811
- "args": {},
3812
- "description": "Create a webhook subscription",
3813
- "flags": {
3814
- "json": {
3815
- "description": "Force JSON output (default when stdout is piped)",
3816
- "name": "json",
3817
- "allowNo": false,
3818
- "type": "boolean"
3819
- },
3820
- "quiet": {
3821
- "description": "Suppress output (exit code only)",
3822
- "name": "quiet",
3823
- "allowNo": false,
3824
- "type": "boolean"
3825
- },
3826
- "api-key": {
3827
- "description": "AGLedger API key",
3828
- "env": "AGLEDGER_API_KEY",
3829
- "name": "api-key",
3830
- "hasDynamicHelp": false,
3831
- "multiple": false,
3832
- "type": "option"
3833
- },
3834
- "api-url": {
3835
- "description": "AGLedger API base URL",
3836
- "env": "AGLEDGER_API_URL",
3837
- "name": "api-url",
3838
- "hasDynamicHelp": false,
3839
- "multiple": false,
3840
- "type": "option"
3841
- },
3842
- "url": {
3843
- "description": "Webhook endpoint URL",
3844
- "name": "url",
3845
- "required": true,
3846
- "hasDynamicHelp": false,
3847
- "multiple": false,
3848
- "type": "option"
3849
- },
3850
- "events": {
3851
- "description": "Comma-separated event types (e.g., mandate.created,receipt.submitted)",
3852
- "name": "events",
3853
- "required": true,
3854
- "hasDynamicHelp": false,
3855
- "multiple": false,
3856
- "type": "option"
3857
- },
3858
- "dry-run": {
3859
- "description": "Show what would be sent without hitting the API",
3860
- "name": "dry-run",
3861
- "allowNo": false,
3862
- "type": "boolean"
3863
- }
3864
- },
3865
- "hasDynamicHelp": false,
3866
- "hiddenAliases": [],
3867
- "id": "webhook:create",
3868
- "pluginAlias": "@agledger/cli",
3869
- "pluginName": "@agledger/cli",
3870
- "pluginType": "core",
3871
- "strict": true,
3872
- "enableJsonFlag": false,
3873
- "isESM": true,
3874
- "relativePath": [
3875
- "dist",
3876
- "commands",
3877
- "webhook",
3878
- "create.js"
3879
- ]
3880
- },
3881
- "webhook:delete": {
4018
+ "verdict:render": {
3882
4019
  "aliases": [],
3883
4020
  "args": {
3884
- "id": {
3885
- "description": "Webhook ID",
3886
- "name": "id",
4021
+ "mandateId": {
4022
+ "description": "Mandate ID",
4023
+ "name": "mandateId",
3887
4024
  "required": true
3888
- }
3889
- },
3890
- "description": "Delete a webhook subscription",
3891
- "flags": {
3892
- "json": {
3893
- "description": "Force JSON output (default when stdout is piped)",
3894
- "name": "json",
3895
- "allowNo": false,
3896
- "type": "boolean"
3897
- },
3898
- "quiet": {
3899
- "description": "Suppress output (exit code only)",
3900
- "name": "quiet",
3901
- "allowNo": false,
3902
- "type": "boolean"
3903
- },
3904
- "api-key": {
3905
- "description": "AGLedger API key",
3906
- "env": "AGLEDGER_API_KEY",
3907
- "name": "api-key",
3908
- "hasDynamicHelp": false,
3909
- "multiple": false,
3910
- "type": "option"
3911
- },
3912
- "api-url": {
3913
- "description": "AGLedger API base URL",
3914
- "env": "AGLEDGER_API_URL",
3915
- "name": "api-url",
3916
- "hasDynamicHelp": false,
3917
- "multiple": false,
3918
- "type": "option"
3919
4025
  },
3920
- "dry-run": {
3921
- "description": "Show what would be deleted without hitting the API",
3922
- "name": "dry-run",
3923
- "allowNo": false,
3924
- "type": "boolean"
4026
+ "verdict": {
4027
+ "description": "PASS to accept, FAIL to reject",
4028
+ "name": "verdict",
4029
+ "options": [
4030
+ "PASS",
4031
+ "FAIL"
4032
+ ],
4033
+ "required": true
3925
4034
  }
3926
4035
  },
3927
- "hasDynamicHelp": false,
3928
- "hiddenAliases": [],
3929
- "id": "webhook:delete",
3930
- "pluginAlias": "@agledger/cli",
3931
- "pluginName": "@agledger/cli",
3932
- "pluginType": "core",
3933
- "strict": true,
3934
- "enableJsonFlag": false,
3935
- "isESM": true,
3936
- "relativePath": [
3937
- "dist",
3938
- "commands",
3939
- "webhook",
3940
- "delete.js"
3941
- ]
3942
- },
3943
- "webhook:list": {
3944
- "aliases": [],
3945
- "args": {},
3946
- "description": "List registered webhooks, optionally filtered by exact URL",
4036
+ "description": "Render a verdict on a notarized agreement (accept or reject delivery)",
3947
4037
  "flags": {
3948
4038
  "json": {
3949
4039
  "description": "Force JSON output (default when stdout is piped)",
@@ -3973,38 +4063,23 @@
3973
4063
  "multiple": false,
3974
4064
  "type": "option"
3975
4065
  },
3976
- "url": {
3977
- "description": "Filter by exact webhook URL",
3978
- "name": "url",
3979
- "hasDynamicHelp": false,
3980
- "multiple": false,
3981
- "type": "option"
3982
- },
3983
- "limit": {
3984
- "description": "Max results per page",
3985
- "name": "limit",
3986
- "default": 50,
3987
- "hasDynamicHelp": false,
3988
- "multiple": false,
3989
- "type": "option"
3990
- },
3991
- "cursor": {
3992
- "description": "Pagination cursor",
3993
- "name": "cursor",
4066
+ "reason": {
4067
+ "description": "Reason for the verdict",
4068
+ "name": "reason",
3994
4069
  "hasDynamicHelp": false,
3995
4070
  "multiple": false,
3996
4071
  "type": "option"
3997
4072
  },
3998
- "all": {
3999
- "description": "Stream all pages as NDJSON",
4000
- "name": "all",
4073
+ "dry-run": {
4074
+ "description": "Show what would be sent without hitting the API",
4075
+ "name": "dry-run",
4001
4076
  "allowNo": false,
4002
4077
  "type": "boolean"
4003
4078
  }
4004
4079
  },
4005
4080
  "hasDynamicHelp": false,
4006
4081
  "hiddenAliases": [],
4007
- "id": "webhook:list",
4082
+ "id": "verdict:render",
4008
4083
  "pluginAlias": "@agledger/cli",
4009
4084
  "pluginName": "@agledger/cli",
4010
4085
  "pluginType": "core",
@@ -4014,10 +4089,10 @@
4014
4089
  "relativePath": [
4015
4090
  "dist",
4016
4091
  "commands",
4017
- "webhook",
4018
- "list.js"
4092
+ "verdict",
4093
+ "render.js"
4019
4094
  ]
4020
4095
  }
4021
4096
  },
4022
- "version": "0.5.1"
4097
+ "version": "0.5.2"
4023
4098
  }