@agledger/cli 0.5.2 → 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.
@@ -684,141 +684,6 @@
684
684
  "verify.js"
685
685
  ]
686
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
- },
822
687
  "admin:create-agent": {
823
688
  "aliases": [],
824
689
  "args": {},
@@ -1058,10 +923,10 @@
1058
923
  "set-config.js"
1059
924
  ]
1060
925
  },
1061
- "federation:audit-log": {
926
+ "agent:list": {
1062
927
  "aliases": [],
1063
928
  "args": {},
1064
- "description": "Query the federation audit log for gateway and mandate events.",
929
+ "description": "List agents in an enterprise",
1065
930
  "flags": {
1066
931
  "json": {
1067
932
  "description": "Force JSON output (default when stdout is piped)",
@@ -1091,108 +956,39 @@
1091
956
  "multiple": false,
1092
957
  "type": "option"
1093
958
  },
1094
- "gateway-id": {
1095
- "description": "Filter by gateway ID",
1096
- "name": "gateway-id",
1097
- "hasDynamicHelp": false,
1098
- "multiple": false,
1099
- "type": "option"
1100
- },
1101
- "entry-type": {
1102
- "description": "Filter by audit entry type",
1103
- "name": "entry-type",
1104
- "hasDynamicHelp": false,
1105
- "multiple": false,
1106
- "type": "option"
1107
- },
1108
- "mandate-id": {
1109
- "description": "Filter by mandate ID",
1110
- "name": "mandate-id",
959
+ "enterprise": {
960
+ "description": "Enterprise ID",
961
+ "name": "enterprise",
962
+ "required": true,
1111
963
  "hasDynamicHelp": false,
1112
964
  "multiple": false,
1113
965
  "type": "option"
1114
966
  },
1115
967
  "limit": {
1116
- "description": "Maximum number of entries to return",
968
+ "description": "Max results per page",
1117
969
  "name": "limit",
1118
- "hasDynamicHelp": false,
1119
- "multiple": false,
1120
- "type": "option"
1121
- }
1122
- },
1123
- "hasDynamicHelp": false,
1124
- "hiddenAliases": [],
1125
- "id": "federation:audit-log",
1126
- "pluginAlias": "@agledger/cli",
1127
- "pluginName": "@agledger/cli",
1128
- "pluginType": "core",
1129
- "strict": true,
1130
- "enableJsonFlag": false,
1131
- "isESM": true,
1132
- "relativePath": [
1133
- "dist",
1134
- "commands",
1135
- "federation",
1136
- "audit-log.js"
1137
- ]
1138
- },
1139
- "federation:create-token": {
1140
- "aliases": [],
1141
- "args": {},
1142
- "description": "Create a federation registration token for gateway onboarding.",
1143
- "flags": {
1144
- "json": {
1145
- "description": "Force JSON output (default when stdout is piped)",
1146
- "name": "json",
1147
- "allowNo": false,
1148
- "type": "boolean"
1149
- },
1150
- "quiet": {
1151
- "description": "Suppress output (exit code only)",
1152
- "name": "quiet",
1153
- "allowNo": false,
1154
- "type": "boolean"
1155
- },
1156
- "api-key": {
1157
- "description": "AGLedger API key",
1158
- "env": "AGLEDGER_API_KEY",
1159
- "name": "api-key",
1160
- "hasDynamicHelp": false,
1161
- "multiple": false,
1162
- "type": "option"
1163
- },
1164
- "api-url": {
1165
- "description": "AGLedger API base URL",
1166
- "env": "AGLEDGER_API_URL",
1167
- "name": "api-url",
1168
- "hasDynamicHelp": false,
1169
- "multiple": false,
1170
- "type": "option"
1171
- },
1172
- "label": {
1173
- "description": "Human-readable label for the token",
1174
- "name": "label",
970
+ "default": 25,
1175
971
  "hasDynamicHelp": false,
1176
972
  "multiple": false,
1177
973
  "type": "option"
1178
974
  },
1179
- "expires-in-hours": {
1180
- "description": "Token expiry in hours (default: server-configured)",
1181
- "name": "expires-in-hours",
975
+ "cursor": {
976
+ "description": "Pagination cursor",
977
+ "name": "cursor",
1182
978
  "hasDynamicHelp": false,
1183
979
  "multiple": false,
1184
980
  "type": "option"
1185
981
  },
1186
- "dry-run": {
1187
- "description": "Show what would be sent without calling the API",
1188
- "name": "dry-run",
982
+ "all": {
983
+ "description": "Stream all pages as NDJSON",
984
+ "name": "all",
1189
985
  "allowNo": false,
1190
986
  "type": "boolean"
1191
987
  }
1192
988
  },
1193
989
  "hasDynamicHelp": false,
1194
990
  "hiddenAliases": [],
1195
- "id": "federation:create-token",
991
+ "id": "agent:list",
1196
992
  "pluginAlias": "@agledger/cli",
1197
993
  "pluginName": "@agledger/cli",
1198
994
  "pluginType": "core",
@@ -1202,14 +998,20 @@
1202
998
  "relativePath": [
1203
999
  "dist",
1204
1000
  "commands",
1205
- "federation",
1206
- "create-token.js"
1001
+ "agent",
1002
+ "list.js"
1207
1003
  ]
1208
1004
  },
1209
- "federation:health": {
1005
+ "agent:reputation": {
1210
1006
  "aliases": [],
1211
- "args": {},
1212
- "description": "Show federation health summary (gateway counts, sync status, uptime).",
1007
+ "args": {
1008
+ "agentId": {
1009
+ "description": "Agent ID",
1010
+ "name": "agentId",
1011
+ "required": true
1012
+ }
1013
+ },
1014
+ "description": "Get reputation score for an agent",
1213
1015
  "flags": {
1214
1016
  "json": {
1215
1017
  "description": "Force JSON output (default when stdout is piped)",
@@ -1242,7 +1044,7 @@
1242
1044
  },
1243
1045
  "hasDynamicHelp": false,
1244
1046
  "hiddenAliases": [],
1245
- "id": "federation:health",
1047
+ "id": "agent:reputation",
1246
1048
  "pluginAlias": "@agledger/cli",
1247
1049
  "pluginName": "@agledger/cli",
1248
1050
  "pluginType": "core",
@@ -1252,14 +1054,14 @@
1252
1054
  "relativePath": [
1253
1055
  "dist",
1254
1056
  "commands",
1255
- "federation",
1256
- "health.js"
1057
+ "agent",
1058
+ "reputation.js"
1257
1059
  ]
1258
1060
  },
1259
- "federation:list-gateways": {
1061
+ "audit:events": {
1260
1062
  "aliases": [],
1261
1063
  "args": {},
1262
- "description": "List federation gateways with optional status filter.",
1064
+ "description": "List audit events",
1263
1065
  "flags": {
1264
1066
  "json": {
1265
1067
  "description": "Force JSON output (default when stdout is piped)",
@@ -1289,29 +1091,51 @@
1289
1091
  "multiple": false,
1290
1092
  "type": "option"
1291
1093
  },
1292
- "status": {
1293
- "description": "Filter by gateway status",
1294
- "name": "status",
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",
1295
1106
  "hasDynamicHelp": false,
1296
1107
  "multiple": false,
1297
1108
  "options": [
1298
- "active",
1299
- "suspended",
1300
- "revoked"
1109
+ "asc",
1110
+ "desc"
1301
1111
  ],
1302
1112
  "type": "option"
1303
1113
  },
1304
1114
  "limit": {
1305
- "description": "Maximum number of results to return",
1115
+ "description": "Max results per page",
1306
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",
1307
1125
  "hasDynamicHelp": false,
1308
1126
  "multiple": false,
1309
1127
  "type": "option"
1128
+ },
1129
+ "all": {
1130
+ "description": "Stream all pages as NDJSON",
1131
+ "name": "all",
1132
+ "allowNo": false,
1133
+ "type": "boolean"
1310
1134
  }
1311
1135
  },
1312
1136
  "hasDynamicHelp": false,
1313
1137
  "hiddenAliases": [],
1314
- "id": "federation:list-gateways",
1138
+ "id": "audit:events",
1315
1139
  "pluginAlias": "@agledger/cli",
1316
1140
  "pluginName": "@agledger/cli",
1317
1141
  "pluginType": "core",
@@ -1321,14 +1145,20 @@
1321
1145
  "relativePath": [
1322
1146
  "dist",
1323
1147
  "commands",
1324
- "federation",
1325
- "list-gateways.js"
1148
+ "audit",
1149
+ "events.js"
1326
1150
  ]
1327
1151
  },
1328
- "federation:query-mandates": {
1152
+ "audit:trail": {
1329
1153
  "aliases": [],
1330
- "args": {},
1331
- "description": "Query federated mandates across gateways.",
1154
+ "args": {
1155
+ "mandateId": {
1156
+ "description": "Mandate ID",
1157
+ "name": "mandateId",
1158
+ "required": true
1159
+ }
1160
+ },
1161
+ "description": "Get the hash-chained audit trail for a mandate",
1332
1162
  "flags": {
1333
1163
  "json": {
1334
1164
  "description": "Force JSON output (default when stdout is piped)",
@@ -1357,47 +1187,11 @@
1357
1187
  "hasDynamicHelp": false,
1358
1188
  "multiple": false,
1359
1189
  "type": "option"
1360
- },
1361
- "gateway-id": {
1362
- "description": "Filter by originating gateway ID",
1363
- "name": "gateway-id",
1364
- "hasDynamicHelp": false,
1365
- "multiple": false,
1366
- "type": "option"
1367
- },
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",
1386
- "hasDynamicHelp": false,
1387
- "multiple": false,
1388
- "type": "option"
1389
- },
1390
- "limit": {
1391
- "description": "Maximum number of results to return",
1392
- "name": "limit",
1393
- "hasDynamicHelp": false,
1394
- "multiple": false,
1395
- "type": "option"
1396
1190
  }
1397
1191
  },
1398
1192
  "hasDynamicHelp": false,
1399
1193
  "hiddenAliases": [],
1400
- "id": "federation:query-mandates",
1194
+ "id": "audit:trail",
1401
1195
  "pluginAlias": "@agledger/cli",
1402
1196
  "pluginName": "@agledger/cli",
1403
1197
  "pluginType": "core",
@@ -1407,20 +1201,14 @@
1407
1201
  "relativePath": [
1408
1202
  "dist",
1409
1203
  "commands",
1410
- "federation",
1411
- "query-mandates.js"
1204
+ "audit",
1205
+ "trail.js"
1412
1206
  ]
1413
1207
  },
1414
- "federation:revoke-gateway": {
1208
+ "federation:audit-log": {
1415
1209
  "aliases": [],
1416
- "args": {
1417
- "gateway_id": {
1418
- "description": "Gateway ID to revoke",
1419
- "name": "gateway_id",
1420
- "required": true
1421
- }
1422
- },
1423
- "description": "Revoke a federation gateway, severing its connection to the hub.",
1210
+ "args": {},
1211
+ "description": "Query the federation audit log for gateway and mandate events.",
1424
1212
  "flags": {
1425
1213
  "json": {
1426
1214
  "description": "Force JSON output (default when stdout is piped)",
@@ -1450,24 +1238,38 @@
1450
1238
  "multiple": false,
1451
1239
  "type": "option"
1452
1240
  },
1453
- "reason": {
1454
- "description": "Reason for revocation",
1455
- "name": "reason",
1456
- "required": true,
1241
+ "gateway-id": {
1242
+ "description": "Filter by gateway ID",
1243
+ "name": "gateway-id",
1457
1244
  "hasDynamicHelp": false,
1458
1245
  "multiple": false,
1459
1246
  "type": "option"
1460
1247
  },
1461
- "dry-run": {
1462
- "description": "Show what would be sent without calling the API",
1463
- "name": "dry-run",
1464
- "allowNo": false,
1465
- "type": "boolean"
1248
+ "entry-type": {
1249
+ "description": "Filter by audit entry type",
1250
+ "name": "entry-type",
1251
+ "hasDynamicHelp": false,
1252
+ "multiple": false,
1253
+ "type": "option"
1254
+ },
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"
1466
1268
  }
1467
1269
  },
1468
1270
  "hasDynamicHelp": false,
1469
1271
  "hiddenAliases": [],
1470
- "id": "federation:revoke-gateway",
1272
+ "id": "federation:audit-log",
1471
1273
  "pluginAlias": "@agledger/cli",
1472
1274
  "pluginName": "@agledger/cli",
1473
1275
  "pluginType": "core",
@@ -1478,13 +1280,13 @@
1478
1280
  "dist",
1479
1281
  "commands",
1480
1282
  "federation",
1481
- "revoke-gateway.js"
1283
+ "audit-log.js"
1482
1284
  ]
1483
1285
  },
1484
- "audit:events": {
1286
+ "federation:create-token": {
1485
1287
  "aliases": [],
1486
1288
  "args": {},
1487
- "description": "List audit events",
1289
+ "description": "Create a federation registration token for gateway onboarding.",
1488
1290
  "flags": {
1489
1291
  "json": {
1490
1292
  "description": "Force JSON output (default when stdout is piped)",
@@ -1514,51 +1316,30 @@
1514
1316
  "multiple": false,
1515
1317
  "type": "option"
1516
1318
  },
1517
- "since": {
1518
- "description": "ISO 8601 timestamp — list events after this time",
1519
- "name": "since",
1520
- "required": true,
1521
- "hasDynamicHelp": false,
1522
- "multiple": false,
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,
1319
+ "label": {
1320
+ "description": "Human-readable label for the token",
1321
+ "name": "label",
1541
1322
  "hasDynamicHelp": false,
1542
1323
  "multiple": false,
1543
1324
  "type": "option"
1544
1325
  },
1545
- "cursor": {
1546
- "description": "Pagination cursor",
1547
- "name": "cursor",
1326
+ "expires-in-hours": {
1327
+ "description": "Token expiry in hours (default: server-configured)",
1328
+ "name": "expires-in-hours",
1548
1329
  "hasDynamicHelp": false,
1549
1330
  "multiple": false,
1550
1331
  "type": "option"
1551
1332
  },
1552
- "all": {
1553
- "description": "Stream all pages as NDJSON",
1554
- "name": "all",
1333
+ "dry-run": {
1334
+ "description": "Show what would be sent without calling the API",
1335
+ "name": "dry-run",
1555
1336
  "allowNo": false,
1556
1337
  "type": "boolean"
1557
1338
  }
1558
1339
  },
1559
1340
  "hasDynamicHelp": false,
1560
1341
  "hiddenAliases": [],
1561
- "id": "audit:events",
1342
+ "id": "federation:create-token",
1562
1343
  "pluginAlias": "@agledger/cli",
1563
1344
  "pluginName": "@agledger/cli",
1564
1345
  "pluginType": "core",
@@ -1568,20 +1349,14 @@
1568
1349
  "relativePath": [
1569
1350
  "dist",
1570
1351
  "commands",
1571
- "audit",
1572
- "events.js"
1352
+ "federation",
1353
+ "create-token.js"
1573
1354
  ]
1574
1355
  },
1575
- "audit:trail": {
1356
+ "federation:health": {
1576
1357
  "aliases": [],
1577
- "args": {
1578
- "mandateId": {
1579
- "description": "Mandate ID",
1580
- "name": "mandateId",
1581
- "required": true
1582
- }
1583
- },
1584
- "description": "Get the hash-chained audit trail for a mandate",
1358
+ "args": {},
1359
+ "description": "Show federation health summary (gateway counts, sync status, uptime).",
1585
1360
  "flags": {
1586
1361
  "json": {
1587
1362
  "description": "Force JSON output (default when stdout is piped)",
@@ -1614,7 +1389,7 @@
1614
1389
  },
1615
1390
  "hasDynamicHelp": false,
1616
1391
  "hiddenAliases": [],
1617
- "id": "audit:trail",
1392
+ "id": "federation:health",
1618
1393
  "pluginAlias": "@agledger/cli",
1619
1394
  "pluginName": "@agledger/cli",
1620
1395
  "pluginType": "core",
@@ -1624,25 +1399,14 @@
1624
1399
  "relativePath": [
1625
1400
  "dist",
1626
1401
  "commands",
1627
- "audit",
1628
- "trail.js"
1402
+ "federation",
1403
+ "health.js"
1629
1404
  ]
1630
1405
  },
1631
- "receipt:get": {
1406
+ "federation:list-gateways": {
1632
1407
  "aliases": [],
1633
- "args": {
1634
- "mandateId": {
1635
- "description": "Mandate ID",
1636
- "name": "mandateId",
1637
- "required": true
1638
- },
1639
- "receiptId": {
1640
- "description": "Receipt ID",
1641
- "name": "receiptId",
1642
- "required": true
1643
- }
1644
- },
1645
- "description": "Get receipt details",
1408
+ "args": {},
1409
+ "description": "List federation gateways with optional status filter.",
1646
1410
  "flags": {
1647
1411
  "json": {
1648
1412
  "description": "Force JSON output (default when stdout is piped)",
@@ -1671,11 +1435,30 @@
1671
1435
  "hasDynamicHelp": false,
1672
1436
  "multiple": false,
1673
1437
  "type": "option"
1438
+ },
1439
+ "status": {
1440
+ "description": "Filter by gateway status",
1441
+ "name": "status",
1442
+ "hasDynamicHelp": false,
1443
+ "multiple": false,
1444
+ "options": [
1445
+ "active",
1446
+ "suspended",
1447
+ "revoked"
1448
+ ],
1449
+ "type": "option"
1450
+ },
1451
+ "limit": {
1452
+ "description": "Maximum number of results to return",
1453
+ "name": "limit",
1454
+ "hasDynamicHelp": false,
1455
+ "multiple": false,
1456
+ "type": "option"
1674
1457
  }
1675
1458
  },
1676
1459
  "hasDynamicHelp": false,
1677
1460
  "hiddenAliases": [],
1678
- "id": "receipt:get",
1461
+ "id": "federation:list-gateways",
1679
1462
  "pluginAlias": "@agledger/cli",
1680
1463
  "pluginName": "@agledger/cli",
1681
1464
  "pluginType": "core",
@@ -1685,22 +1468,14 @@
1685
1468
  "relativePath": [
1686
1469
  "dist",
1687
1470
  "commands",
1688
- "receipt",
1689
- "get.js"
1471
+ "federation",
1472
+ "list-gateways.js"
1690
1473
  ]
1691
1474
  },
1692
- "receipt:list": {
1693
- "aliases": [
1694
- "mandate:receipts"
1695
- ],
1696
- "args": {
1697
- "mandateId": {
1698
- "description": "Mandate ID",
1699
- "name": "mandateId",
1700
- "required": true
1701
- }
1702
- },
1703
- "description": "List receipts for a mandate",
1475
+ "federation:query-mandates": {
1476
+ "aliases": [],
1477
+ "args": {},
1478
+ "description": "Query federated mandates across gateways.",
1704
1479
  "flags": {
1705
1480
  "json": {
1706
1481
  "description": "Force JSON output (default when stdout is piped)",
@@ -1730,16 +1505,46 @@
1730
1505
  "multiple": false,
1731
1506
  "type": "option"
1732
1507
  },
1733
- "all": {
1734
- "description": "Stream all pages as NDJSON",
1735
- "name": "all",
1736
- "allowNo": false,
1737
- "type": "boolean"
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"
1738
1543
  }
1739
1544
  },
1740
1545
  "hasDynamicHelp": false,
1741
1546
  "hiddenAliases": [],
1742
- "id": "receipt:list",
1547
+ "id": "federation:query-mandates",
1743
1548
  "pluginAlias": "@agledger/cli",
1744
1549
  "pluginName": "@agledger/cli",
1745
1550
  "pluginType": "core",
@@ -1749,20 +1554,20 @@
1749
1554
  "relativePath": [
1750
1555
  "dist",
1751
1556
  "commands",
1752
- "receipt",
1753
- "list.js"
1557
+ "federation",
1558
+ "query-mandates.js"
1754
1559
  ]
1755
1560
  },
1756
- "receipt:submit": {
1561
+ "federation:revoke-gateway": {
1757
1562
  "aliases": [],
1758
1563
  "args": {
1759
- "mandateId": {
1760
- "description": "Mandate ID",
1761
- "name": "mandateId",
1564
+ "gateway_id": {
1565
+ "description": "Gateway ID to revoke",
1566
+ "name": "gateway_id",
1762
1567
  "required": true
1763
1568
  }
1764
1569
  },
1765
- "description": "Submit a receipt (evidence of completion) for a mandate",
1570
+ "description": "Revoke a federation gateway, severing its connection to the hub.",
1766
1571
  "flags": {
1767
1572
  "json": {
1768
1573
  "description": "Force JSON output (default when stdout is piped)",
@@ -1792,22 +1597,16 @@
1792
1597
  "multiple": false,
1793
1598
  "type": "option"
1794
1599
  },
1795
- "data": {
1796
- "description": "Evidence as JSON string. Either a raw evidence object or { \"evidence\": {...} } — both are accepted.",
1797
- "name": "data",
1798
- "hasDynamicHelp": false,
1799
- "multiple": false,
1800
- "type": "option"
1801
- },
1802
- "file": {
1803
- "description": "Read evidence from JSON file (same shape as --data)",
1804
- "name": "file",
1600
+ "reason": {
1601
+ "description": "Reason for revocation",
1602
+ "name": "reason",
1603
+ "required": true,
1805
1604
  "hasDynamicHelp": false,
1806
1605
  "multiple": false,
1807
1606
  "type": "option"
1808
1607
  },
1809
1608
  "dry-run": {
1810
- "description": "Show what would be sent without hitting the API",
1609
+ "description": "Show what would be sent without calling the API",
1811
1610
  "name": "dry-run",
1812
1611
  "allowNo": false,
1813
1612
  "type": "boolean"
@@ -1815,7 +1614,7 @@
1815
1614
  },
1816
1615
  "hasDynamicHelp": false,
1817
1616
  "hiddenAliases": [],
1818
- "id": "receipt:submit",
1617
+ "id": "federation:revoke-gateway",
1819
1618
  "pluginAlias": "@agledger/cli",
1820
1619
  "pluginName": "@agledger/cli",
1821
1620
  "pluginType": "core",
@@ -1825,8 +1624,8 @@
1825
1624
  "relativePath": [
1826
1625
  "dist",
1827
1626
  "commands",
1828
- "receipt",
1829
- "submit.js"
1627
+ "federation",
1628
+ "revoke-gateway.js"
1830
1629
  ]
1831
1630
  },
1832
1631
  "mandate:accept": {
@@ -2772,10 +2571,21 @@
2772
2571
  "transition.js"
2773
2572
  ]
2774
2573
  },
2775
- "webhook:create": {
2574
+ "receipt:get": {
2776
2575
  "aliases": [],
2777
- "args": {},
2778
- "description": "Create a webhook subscription",
2576
+ "args": {
2577
+ "mandateId": {
2578
+ "description": "Mandate ID",
2579
+ "name": "mandateId",
2580
+ "required": true
2581
+ },
2582
+ "receiptId": {
2583
+ "description": "Receipt ID",
2584
+ "name": "receiptId",
2585
+ "required": true
2586
+ }
2587
+ },
2588
+ "description": "Get receipt details",
2779
2589
  "flags": {
2780
2590
  "json": {
2781
2591
  "description": "Force JSON output (default when stdout is piped)",
@@ -2804,33 +2614,75 @@
2804
2614
  "hasDynamicHelp": false,
2805
2615
  "multiple": false,
2806
2616
  "type": "option"
2617
+ }
2618
+ },
2619
+ "hasDynamicHelp": false,
2620
+ "hiddenAliases": [],
2621
+ "id": "receipt:get",
2622
+ "pluginAlias": "@agledger/cli",
2623
+ "pluginName": "@agledger/cli",
2624
+ "pluginType": "core",
2625
+ "strict": true,
2626
+ "enableJsonFlag": false,
2627
+ "isESM": true,
2628
+ "relativePath": [
2629
+ "dist",
2630
+ "commands",
2631
+ "receipt",
2632
+ "get.js"
2633
+ ]
2634
+ },
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",
2647
+ "flags": {
2648
+ "json": {
2649
+ "description": "Force JSON output (default when stdout is piped)",
2650
+ "name": "json",
2651
+ "allowNo": false,
2652
+ "type": "boolean"
2807
2653
  },
2808
- "url": {
2809
- "description": "Webhook endpoint URL",
2810
- "name": "url",
2811
- "required": true,
2654
+ "quiet": {
2655
+ "description": "Suppress output (exit code only)",
2656
+ "name": "quiet",
2657
+ "allowNo": false,
2658
+ "type": "boolean"
2659
+ },
2660
+ "api-key": {
2661
+ "description": "AGLedger API key",
2662
+ "env": "AGLEDGER_API_KEY",
2663
+ "name": "api-key",
2812
2664
  "hasDynamicHelp": false,
2813
2665
  "multiple": false,
2814
2666
  "type": "option"
2815
2667
  },
2816
- "events": {
2817
- "description": "Comma-separated event types (e.g., mandate.created,receipt.submitted)",
2818
- "name": "events",
2819
- "required": true,
2668
+ "api-url": {
2669
+ "description": "AGLedger API base URL",
2670
+ "env": "AGLEDGER_API_URL",
2671
+ "name": "api-url",
2820
2672
  "hasDynamicHelp": false,
2821
2673
  "multiple": false,
2822
2674
  "type": "option"
2823
2675
  },
2824
- "dry-run": {
2825
- "description": "Show what would be sent without hitting the API",
2826
- "name": "dry-run",
2676
+ "all": {
2677
+ "description": "Stream all pages as NDJSON",
2678
+ "name": "all",
2827
2679
  "allowNo": false,
2828
2680
  "type": "boolean"
2829
2681
  }
2830
2682
  },
2831
2683
  "hasDynamicHelp": false,
2832
2684
  "hiddenAliases": [],
2833
- "id": "webhook:create",
2685
+ "id": "receipt:list",
2834
2686
  "pluginAlias": "@agledger/cli",
2835
2687
  "pluginName": "@agledger/cli",
2836
2688
  "pluginType": "core",
@@ -2840,20 +2692,20 @@
2840
2692
  "relativePath": [
2841
2693
  "dist",
2842
2694
  "commands",
2843
- "webhook",
2844
- "create.js"
2695
+ "receipt",
2696
+ "list.js"
2845
2697
  ]
2846
2698
  },
2847
- "webhook:delete": {
2699
+ "receipt:submit": {
2848
2700
  "aliases": [],
2849
2701
  "args": {
2850
- "id": {
2851
- "description": "Webhook ID",
2852
- "name": "id",
2702
+ "mandateId": {
2703
+ "description": "Mandate ID",
2704
+ "name": "mandateId",
2853
2705
  "required": true
2854
2706
  }
2855
2707
  },
2856
- "description": "Delete a webhook subscription",
2708
+ "description": "Submit a receipt (evidence of completion) for a mandate",
2857
2709
  "flags": {
2858
2710
  "json": {
2859
2711
  "description": "Force JSON output (default when stdout is piped)",
@@ -2883,8 +2735,22 @@
2883
2735
  "multiple": false,
2884
2736
  "type": "option"
2885
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
+ },
2886
2752
  "dry-run": {
2887
- "description": "Show what would be deleted without hitting the API",
2753
+ "description": "Show what would be sent without hitting the API",
2888
2754
  "name": "dry-run",
2889
2755
  "allowNo": false,
2890
2756
  "type": "boolean"
@@ -2892,7 +2758,7 @@
2892
2758
  },
2893
2759
  "hasDynamicHelp": false,
2894
2760
  "hiddenAliases": [],
2895
- "id": "webhook:delete",
2761
+ "id": "receipt:submit",
2896
2762
  "pluginAlias": "@agledger/cli",
2897
2763
  "pluginName": "@agledger/cli",
2898
2764
  "pluginType": "core",
@@ -2902,14 +2768,29 @@
2902
2768
  "relativePath": [
2903
2769
  "dist",
2904
2770
  "commands",
2905
- "webhook",
2906
- "delete.js"
2771
+ "receipt",
2772
+ "submit.js"
2907
2773
  ]
2908
2774
  },
2909
- "webhook:list": {
2775
+ "verdict:render": {
2910
2776
  "aliases": [],
2911
- "args": {},
2912
- "description": "List registered webhooks, optionally filtered by exact URL",
2777
+ "args": {
2778
+ "mandateId": {
2779
+ "description": "Mandate ID",
2780
+ "name": "mandateId",
2781
+ "required": true
2782
+ },
2783
+ "verdict": {
2784
+ "description": "PASS to accept, FAIL to reject",
2785
+ "name": "verdict",
2786
+ "options": [
2787
+ "PASS",
2788
+ "FAIL"
2789
+ ],
2790
+ "required": true
2791
+ }
2792
+ },
2793
+ "description": "Render a verdict on a notarized agreement (accept or reject delivery)",
2913
2794
  "flags": {
2914
2795
  "json": {
2915
2796
  "description": "Force JSON output (default when stdout is piped)",
@@ -2939,38 +2820,23 @@
2939
2820
  "multiple": false,
2940
2821
  "type": "option"
2941
2822
  },
2942
- "url": {
2943
- "description": "Filter by exact webhook URL",
2944
- "name": "url",
2945
- "hasDynamicHelp": false,
2946
- "multiple": false,
2947
- "type": "option"
2948
- },
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",
2823
+ "reason": {
2824
+ "description": "Reason for the verdict",
2825
+ "name": "reason",
2960
2826
  "hasDynamicHelp": false,
2961
2827
  "multiple": false,
2962
2828
  "type": "option"
2963
2829
  },
2964
- "all": {
2965
- "description": "Stream all pages as NDJSON",
2966
- "name": "all",
2830
+ "dry-run": {
2831
+ "description": "Show what would be sent without hitting the API",
2832
+ "name": "dry-run",
2967
2833
  "allowNo": false,
2968
2834
  "type": "boolean"
2969
2835
  }
2970
2836
  },
2971
2837
  "hasDynamicHelp": false,
2972
2838
  "hiddenAliases": [],
2973
- "id": "webhook:list",
2839
+ "id": "verdict:render",
2974
2840
  "pluginAlias": "@agledger/cli",
2975
2841
  "pluginName": "@agledger/cli",
2976
2842
  "pluginType": "core",
@@ -2980,8 +2846,8 @@
2980
2846
  "relativePath": [
2981
2847
  "dist",
2982
2848
  "commands",
2983
- "webhook",
2984
- "list.js"
2849
+ "verdict",
2850
+ "render.js"
2985
2851
  ]
2986
2852
  },
2987
2853
  "schema:blank-template": {
@@ -4015,25 +3881,144 @@
4015
3881
  "versions.js"
4016
3882
  ]
4017
3883
  },
4018
- "verdict:render": {
3884
+ "webhook:create": {
3885
+ "aliases": [],
3886
+ "args": {},
3887
+ "description": "Create a webhook subscription",
3888
+ "flags": {
3889
+ "json": {
3890
+ "description": "Force JSON output (default when stdout is piped)",
3891
+ "name": "json",
3892
+ "allowNo": false,
3893
+ "type": "boolean"
3894
+ },
3895
+ "quiet": {
3896
+ "description": "Suppress output (exit code only)",
3897
+ "name": "quiet",
3898
+ "allowNo": false,
3899
+ "type": "boolean"
3900
+ },
3901
+ "api-key": {
3902
+ "description": "AGLedger API key",
3903
+ "env": "AGLEDGER_API_KEY",
3904
+ "name": "api-key",
3905
+ "hasDynamicHelp": false,
3906
+ "multiple": false,
3907
+ "type": "option"
3908
+ },
3909
+ "api-url": {
3910
+ "description": "AGLedger API base URL",
3911
+ "env": "AGLEDGER_API_URL",
3912
+ "name": "api-url",
3913
+ "hasDynamicHelp": false,
3914
+ "multiple": false,
3915
+ "type": "option"
3916
+ },
3917
+ "url": {
3918
+ "description": "Webhook endpoint URL",
3919
+ "name": "url",
3920
+ "required": true,
3921
+ "hasDynamicHelp": false,
3922
+ "multiple": false,
3923
+ "type": "option"
3924
+ },
3925
+ "events": {
3926
+ "description": "Comma-separated event types (e.g., mandate.created,receipt.submitted)",
3927
+ "name": "events",
3928
+ "required": true,
3929
+ "hasDynamicHelp": false,
3930
+ "multiple": false,
3931
+ "type": "option"
3932
+ },
3933
+ "dry-run": {
3934
+ "description": "Show what would be sent without hitting the API",
3935
+ "name": "dry-run",
3936
+ "allowNo": false,
3937
+ "type": "boolean"
3938
+ }
3939
+ },
3940
+ "hasDynamicHelp": false,
3941
+ "hiddenAliases": [],
3942
+ "id": "webhook:create",
3943
+ "pluginAlias": "@agledger/cli",
3944
+ "pluginName": "@agledger/cli",
3945
+ "pluginType": "core",
3946
+ "strict": true,
3947
+ "enableJsonFlag": false,
3948
+ "isESM": true,
3949
+ "relativePath": [
3950
+ "dist",
3951
+ "commands",
3952
+ "webhook",
3953
+ "create.js"
3954
+ ]
3955
+ },
3956
+ "webhook:delete": {
4019
3957
  "aliases": [],
4020
3958
  "args": {
4021
- "mandateId": {
4022
- "description": "Mandate ID",
4023
- "name": "mandateId",
3959
+ "id": {
3960
+ "description": "Webhook ID",
3961
+ "name": "id",
4024
3962
  "required": true
3963
+ }
3964
+ },
3965
+ "description": "Delete a webhook subscription",
3966
+ "flags": {
3967
+ "json": {
3968
+ "description": "Force JSON output (default when stdout is piped)",
3969
+ "name": "json",
3970
+ "allowNo": false,
3971
+ "type": "boolean"
4025
3972
  },
4026
- "verdict": {
4027
- "description": "PASS to accept, FAIL to reject",
4028
- "name": "verdict",
4029
- "options": [
4030
- "PASS",
4031
- "FAIL"
4032
- ],
4033
- "required": true
3973
+ "quiet": {
3974
+ "description": "Suppress output (exit code only)",
3975
+ "name": "quiet",
3976
+ "allowNo": false,
3977
+ "type": "boolean"
3978
+ },
3979
+ "api-key": {
3980
+ "description": "AGLedger API key",
3981
+ "env": "AGLEDGER_API_KEY",
3982
+ "name": "api-key",
3983
+ "hasDynamicHelp": false,
3984
+ "multiple": false,
3985
+ "type": "option"
3986
+ },
3987
+ "api-url": {
3988
+ "description": "AGLedger API base URL",
3989
+ "env": "AGLEDGER_API_URL",
3990
+ "name": "api-url",
3991
+ "hasDynamicHelp": false,
3992
+ "multiple": false,
3993
+ "type": "option"
3994
+ },
3995
+ "dry-run": {
3996
+ "description": "Show what would be deleted without hitting the API",
3997
+ "name": "dry-run",
3998
+ "allowNo": false,
3999
+ "type": "boolean"
4034
4000
  }
4035
4001
  },
4036
- "description": "Render a verdict on a notarized agreement (accept or reject delivery)",
4002
+ "hasDynamicHelp": false,
4003
+ "hiddenAliases": [],
4004
+ "id": "webhook:delete",
4005
+ "pluginAlias": "@agledger/cli",
4006
+ "pluginName": "@agledger/cli",
4007
+ "pluginType": "core",
4008
+ "strict": true,
4009
+ "enableJsonFlag": false,
4010
+ "isESM": true,
4011
+ "relativePath": [
4012
+ "dist",
4013
+ "commands",
4014
+ "webhook",
4015
+ "delete.js"
4016
+ ]
4017
+ },
4018
+ "webhook:list": {
4019
+ "aliases": [],
4020
+ "args": {},
4021
+ "description": "List registered webhooks, optionally filtered by exact URL",
4037
4022
  "flags": {
4038
4023
  "json": {
4039
4024
  "description": "Force JSON output (default when stdout is piped)",
@@ -4063,23 +4048,38 @@
4063
4048
  "multiple": false,
4064
4049
  "type": "option"
4065
4050
  },
4066
- "reason": {
4067
- "description": "Reason for the verdict",
4068
- "name": "reason",
4051
+ "url": {
4052
+ "description": "Filter by exact webhook URL",
4053
+ "name": "url",
4069
4054
  "hasDynamicHelp": false,
4070
4055
  "multiple": false,
4071
4056
  "type": "option"
4072
4057
  },
4073
- "dry-run": {
4074
- "description": "Show what would be sent without hitting the API",
4075
- "name": "dry-run",
4058
+ "limit": {
4059
+ "description": "Max results per page",
4060
+ "name": "limit",
4061
+ "default": 50,
4062
+ "hasDynamicHelp": false,
4063
+ "multiple": false,
4064
+ "type": "option"
4065
+ },
4066
+ "cursor": {
4067
+ "description": "Pagination cursor",
4068
+ "name": "cursor",
4069
+ "hasDynamicHelp": false,
4070
+ "multiple": false,
4071
+ "type": "option"
4072
+ },
4073
+ "all": {
4074
+ "description": "Stream all pages as NDJSON",
4075
+ "name": "all",
4076
4076
  "allowNo": false,
4077
4077
  "type": "boolean"
4078
4078
  }
4079
4079
  },
4080
4080
  "hasDynamicHelp": false,
4081
4081
  "hiddenAliases": [],
4082
- "id": "verdict:render",
4082
+ "id": "webhook:list",
4083
4083
  "pluginAlias": "@agledger/cli",
4084
4084
  "pluginName": "@agledger/cli",
4085
4085
  "pluginType": "core",
@@ -4089,10 +4089,10 @@
4089
4089
  "relativePath": [
4090
4090
  "dist",
4091
4091
  "commands",
4092
- "verdict",
4093
- "render.js"
4092
+ "webhook",
4093
+ "list.js"
4094
4094
  ]
4095
4095
  }
4096
4096
  },
4097
- "version": "0.5.2"
4097
+ "version": "0.5.3"
4098
4098
  }