@agledger/cli 0.4.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.
Files changed (172) hide show
  1. package/LICENSE +115 -22
  2. package/README.md +74 -42
  3. package/SKILL.md +51 -17
  4. package/dist/api-client.js +1 -1
  5. package/dist/base.d.ts +43 -22
  6. package/dist/base.d.ts.map +1 -1
  7. package/dist/base.js +76 -87
  8. package/dist/base.js.map +1 -1
  9. package/dist/commands/admin/create-agent.d.ts.map +1 -1
  10. package/dist/commands/admin/create-agent.js +1 -2
  11. package/dist/commands/admin/create-agent.js.map +1 -1
  12. package/dist/commands/admin/create-enterprise.d.ts.map +1 -1
  13. package/dist/commands/admin/create-enterprise.js +1 -2
  14. package/dist/commands/admin/create-enterprise.js.map +1 -1
  15. package/dist/commands/admin/set-config.d.ts.map +1 -1
  16. package/dist/commands/admin/set-config.js +6 -8
  17. package/dist/commands/admin/set-config.js.map +1 -1
  18. package/dist/commands/agent/list.d.ts +3 -0
  19. package/dist/commands/agent/list.d.ts.map +1 -1
  20. package/dist/commands/agent/list.js +10 -2
  21. package/dist/commands/agent/list.js.map +1 -1
  22. package/dist/commands/api.d.ts +42 -0
  23. package/dist/commands/api.d.ts.map +1 -0
  24. package/dist/commands/api.js +174 -0
  25. package/dist/commands/api.js.map +1 -0
  26. package/dist/commands/auth.d.ts +5 -0
  27. package/dist/commands/auth.d.ts.map +1 -1
  28. package/dist/commands/auth.js +12 -4
  29. package/dist/commands/auth.js.map +1 -1
  30. package/dist/commands/config.d.ts +24 -0
  31. package/dist/commands/config.d.ts.map +1 -0
  32. package/dist/commands/config.js +75 -0
  33. package/dist/commands/config.js.map +1 -0
  34. package/dist/commands/discover.d.ts +20 -0
  35. package/dist/commands/discover.d.ts.map +1 -0
  36. package/dist/commands/discover.js +44 -0
  37. package/dist/commands/discover.js.map +1 -0
  38. package/dist/commands/federation/create-token.d.ts.map +1 -1
  39. package/dist/commands/federation/create-token.js +1 -2
  40. package/dist/commands/federation/create-token.js.map +1 -1
  41. package/dist/commands/federation/revoke-gateway.d.ts.map +1 -1
  42. package/dist/commands/federation/revoke-gateway.js +1 -2
  43. package/dist/commands/federation/revoke-gateway.js.map +1 -1
  44. package/dist/commands/help-json.d.ts.map +1 -1
  45. package/dist/commands/help-json.js +4 -4
  46. package/dist/commands/help-json.js.map +1 -1
  47. package/dist/commands/list-commands.d.ts +8 -1
  48. package/dist/commands/list-commands.d.ts.map +1 -1
  49. package/dist/commands/list-commands.js +22 -57
  50. package/dist/commands/list-commands.js.map +1 -1
  51. package/dist/commands/login.d.ts +5 -0
  52. package/dist/commands/login.d.ts.map +1 -1
  53. package/dist/commands/login.js +16 -14
  54. package/dist/commands/login.js.map +1 -1
  55. package/dist/commands/logout.d.ts +14 -0
  56. package/dist/commands/logout.d.ts.map +1 -0
  57. package/dist/commands/logout.js +33 -0
  58. package/dist/commands/logout.js.map +1 -0
  59. package/dist/commands/mandate/accept.d.ts +1 -0
  60. package/dist/commands/mandate/accept.d.ts.map +1 -1
  61. package/dist/commands/mandate/accept.js +9 -2
  62. package/dist/commands/mandate/accept.js.map +1 -1
  63. package/dist/commands/mandate/cancel.d.ts +1 -0
  64. package/dist/commands/mandate/cancel.d.ts.map +1 -1
  65. package/dist/commands/mandate/cancel.js +5 -0
  66. package/dist/commands/mandate/cancel.js.map +1 -1
  67. package/dist/commands/mandate/counter-propose.d.ts +3 -1
  68. package/dist/commands/mandate/counter-propose.d.ts.map +1 -1
  69. package/dist/commands/mandate/counter-propose.js +18 -3
  70. package/dist/commands/mandate/counter-propose.js.map +1 -1
  71. package/dist/commands/mandate/create.d.ts.map +1 -1
  72. package/dist/commands/mandate/create.js +14 -10
  73. package/dist/commands/mandate/create.js.map +1 -1
  74. package/dist/commands/mandate/list.js +1 -1
  75. package/dist/commands/mandate/list.js.map +1 -1
  76. package/dist/commands/mandate/outcome.d.ts +3 -1
  77. package/dist/commands/mandate/outcome.d.ts.map +1 -1
  78. package/dist/commands/mandate/outcome.js +21 -4
  79. package/dist/commands/mandate/outcome.js.map +1 -1
  80. package/dist/commands/mandate/receipts.d.ts +20 -0
  81. package/dist/commands/mandate/receipts.d.ts.map +1 -0
  82. package/dist/commands/mandate/receipts.js +29 -0
  83. package/dist/commands/mandate/receipts.js.map +1 -0
  84. package/dist/commands/mandate/reject.d.ts +1 -0
  85. package/dist/commands/mandate/reject.d.ts.map +1 -1
  86. package/dist/commands/mandate/reject.js +5 -0
  87. package/dist/commands/mandate/reject.js.map +1 -1
  88. package/dist/commands/mandate/request-revision.d.ts +1 -0
  89. package/dist/commands/mandate/request-revision.d.ts.map +1 -1
  90. package/dist/commands/mandate/request-revision.js +5 -0
  91. package/dist/commands/mandate/request-revision.js.map +1 -1
  92. package/dist/commands/mandate/transition.d.ts +3 -1
  93. package/dist/commands/mandate/transition.d.ts.map +1 -1
  94. package/dist/commands/mandate/transition.js +15 -4
  95. package/dist/commands/mandate/transition.js.map +1 -1
  96. package/dist/commands/receipt/list.d.ts +1 -0
  97. package/dist/commands/receipt/list.d.ts.map +1 -1
  98. package/dist/commands/receipt/list.js +1 -0
  99. package/dist/commands/receipt/list.js.map +1 -1
  100. package/dist/commands/receipt/submit.d.ts.map +1 -1
  101. package/dist/commands/receipt/submit.js +7 -16
  102. package/dist/commands/receipt/submit.js.map +1 -1
  103. package/dist/commands/schema/blank-template.d.ts.map +1 -1
  104. package/dist/commands/schema/blank-template.js +5 -3
  105. package/dist/commands/schema/blank-template.js.map +1 -1
  106. package/dist/commands/schema/check-compatibility.d.ts.map +1 -1
  107. package/dist/commands/schema/check-compatibility.js +2 -3
  108. package/dist/commands/schema/check-compatibility.js.map +1 -1
  109. package/dist/commands/schema/deprecate.d.ts.map +1 -1
  110. package/dist/commands/schema/deprecate.js +1 -2
  111. package/dist/commands/schema/deprecate.js.map +1 -1
  112. package/dist/commands/schema/diff.d.ts.map +1 -1
  113. package/dist/commands/schema/diff.js +2 -0
  114. package/dist/commands/schema/diff.js.map +1 -1
  115. package/dist/commands/schema/export.d.ts.map +1 -1
  116. package/dist/commands/schema/export.js +5 -3
  117. package/dist/commands/schema/export.js.map +1 -1
  118. package/dist/commands/schema/import.d.ts.map +1 -1
  119. package/dist/commands/schema/import.js +2 -4
  120. package/dist/commands/schema/import.js.map +1 -1
  121. package/dist/commands/schema/list.d.ts +3 -0
  122. package/dist/commands/schema/list.d.ts.map +1 -1
  123. package/dist/commands/schema/list.js +14 -3
  124. package/dist/commands/schema/list.js.map +1 -1
  125. package/dist/commands/schema/meta-schema.d.ts.map +1 -1
  126. package/dist/commands/schema/meta-schema.js +5 -3
  127. package/dist/commands/schema/meta-schema.js.map +1 -1
  128. package/dist/commands/schema/preview.d.ts.map +1 -1
  129. package/dist/commands/schema/preview.js +3 -2
  130. package/dist/commands/schema/preview.js.map +1 -1
  131. package/dist/commands/schema/register.d.ts.map +1 -1
  132. package/dist/commands/schema/register.js +2 -4
  133. package/dist/commands/schema/register.js.map +1 -1
  134. package/dist/commands/schema/template.d.ts.map +1 -1
  135. package/dist/commands/schema/template.js +5 -3
  136. package/dist/commands/schema/template.js.map +1 -1
  137. package/dist/commands/schema/validate.d.ts.map +1 -1
  138. package/dist/commands/schema/validate.js +3 -2
  139. package/dist/commands/schema/validate.js.map +1 -1
  140. package/dist/commands/schema/versions.d.ts +3 -0
  141. package/dist/commands/schema/versions.d.ts.map +1 -1
  142. package/dist/commands/schema/versions.js +14 -4
  143. package/dist/commands/schema/versions.js.map +1 -1
  144. package/dist/commands/verdict/render.d.ts +1 -0
  145. package/dist/commands/verdict/render.d.ts.map +1 -1
  146. package/dist/commands/verdict/render.js +5 -0
  147. package/dist/commands/verdict/render.js.map +1 -1
  148. package/dist/commands/verify.d.ts +27 -0
  149. package/dist/commands/verify.d.ts.map +1 -0
  150. package/dist/commands/verify.js +85 -0
  151. package/dist/commands/verify.js.map +1 -0
  152. package/dist/commands/webhook/create.d.ts.map +1 -1
  153. package/dist/commands/webhook/create.js +1 -2
  154. package/dist/commands/webhook/create.js.map +1 -1
  155. package/dist/commands/webhook/delete.d.ts +1 -0
  156. package/dist/commands/webhook/delete.d.ts.map +1 -1
  157. package/dist/commands/webhook/delete.js +9 -2
  158. package/dist/commands/webhook/delete.js.map +1 -1
  159. package/dist/commands/webhook/list.d.ts +3 -0
  160. package/dist/commands/webhook/list.d.ts.map +1 -1
  161. package/dist/commands/webhook/list.js +10 -3
  162. package/dist/commands/webhook/list.js.map +1 -1
  163. package/dist/util/config.d.ts +17 -0
  164. package/dist/util/config.d.ts.map +1 -0
  165. package/dist/util/config.js +37 -0
  166. package/dist/util/config.js.map +1 -0
  167. package/dist/util/field-parser.d.ts +28 -0
  168. package/dist/util/field-parser.d.ts.map +1 -0
  169. package/dist/util/field-parser.js +138 -0
  170. package/dist/util/field-parser.js.map +1 -0
  171. package/oclif.manifest.json +1167 -570
  172. package/package.json +2 -1
@@ -1,12 +1,32 @@
1
1
  {
2
2
  "commands": {
3
- "auth": {
3
+ "api": {
4
4
  "aliases": [],
5
- "args": {},
6
- "description": "Check current authentication status",
5
+ "args": {
6
+ "method": {
7
+ "description": "HTTP method (GET, POST, PUT, PATCH, DELETE)",
8
+ "name": "method",
9
+ "required": true
10
+ },
11
+ "path": {
12
+ "description": "Full API path including version prefix (e.g. /v1/mandates, /health, /federation/v1/register)",
13
+ "name": "path",
14
+ "required": true
15
+ }
16
+ },
17
+ "description": "Call any AGLedger API endpoint. Pass-through with zero flag translation — use the exact path and body shape documented in the API (see `agledger discover` or GET /openapi.json).",
18
+ "examples": [
19
+ "agledger api GET /health",
20
+ "agledger api GET /v1/mandates -F status=ACTIVE -F limit=50",
21
+ "agledger api POST /v1/mandates --data '{\"contractType\":\"ACH-PROC-v1\",\"criteria\":{\"item_spec\":\"...\"}}'",
22
+ "agledger api POST /v1/mandates -F contractType=ACH-PROC-v1 -F criteria.item_spec=widgets -F criteria.quantity.target=500",
23
+ "agledger api POST /v1/mandates --input payload.json",
24
+ "cat payload.json | agledger api POST /v1/mandates --input -",
25
+ "agledger api GET /v1/mandates --paginate # streams all pages as NDJSON"
26
+ ],
7
27
  "flags": {
8
28
  "json": {
9
- "description": "Output as JSON",
29
+ "description": "Force JSON output (default when stdout is piped)",
10
30
  "name": "json",
11
31
  "allowNo": false,
12
32
  "type": "boolean"
@@ -32,11 +52,52 @@
32
52
  "hasDynamicHelp": false,
33
53
  "multiple": false,
34
54
  "type": "option"
55
+ },
56
+ "data": {
57
+ "description": "Request body as a JSON string. For GET/DELETE, used as query parameters.",
58
+ "name": "data",
59
+ "hasDynamicHelp": false,
60
+ "multiple": false,
61
+ "type": "option"
62
+ },
63
+ "input": {
64
+ "description": "Read body JSON from file (or \"-\" for stdin). Shape matches --data.",
65
+ "name": "input",
66
+ "hasDynamicHelp": false,
67
+ "multiple": false,
68
+ "type": "option"
69
+ },
70
+ "field": {
71
+ "char": "F",
72
+ "description": "Set a field as key=value. Values are typed: true/false/null, numbers, or JSON for {...}/[...]. Supports nested (a.b.c=v) and array append (arr[]=v). Repeatable.",
73
+ "name": "field",
74
+ "hasDynamicHelp": false,
75
+ "multiple": true,
76
+ "type": "option"
77
+ },
78
+ "query": {
79
+ "description": "Extra query parameters as JSON. Merges over -F fields and --data for GET/DELETE routing.",
80
+ "name": "query",
81
+ "hasDynamicHelp": false,
82
+ "multiple": false,
83
+ "type": "option"
84
+ },
85
+ "paginate": {
86
+ "description": "Follow cursor pagination, stream all results as NDJSON. Requires GET on a paginated route.",
87
+ "name": "paginate",
88
+ "allowNo": false,
89
+ "type": "boolean"
90
+ },
91
+ "dry-run": {
92
+ "description": "Show the request that would be sent without calling the API.",
93
+ "name": "dry-run",
94
+ "allowNo": false,
95
+ "type": "boolean"
35
96
  }
36
97
  },
37
98
  "hasDynamicHelp": false,
38
99
  "hiddenAliases": [],
39
- "id": "auth",
100
+ "id": "api",
40
101
  "pluginAlias": "@agledger/cli",
41
102
  "pluginName": "@agledger/cli",
42
103
  "pluginType": "core",
@@ -46,22 +107,16 @@
46
107
  "relativePath": [
47
108
  "dist",
48
109
  "commands",
49
- "auth.js"
110
+ "api.js"
50
111
  ]
51
112
  },
52
- "help-json": {
113
+ "auth": {
53
114
  "aliases": [],
54
- "args": {
55
- "command": {
56
- "description": "Command name (e.g., \"mandate create\")",
57
- "name": "command",
58
- "required": true
59
- }
60
- },
61
- "description": "Get JSON schema for a specific command (agent discovery)",
115
+ "args": {},
116
+ "description": "Check current authentication status. Returns `authenticated: false` when no key is configured (exit 0).",
62
117
  "flags": {
63
118
  "json": {
64
- "description": "Output as JSON",
119
+ "description": "Force JSON output (default when stdout is piped)",
65
120
  "name": "json",
66
121
  "allowNo": false,
67
122
  "type": "boolean"
@@ -91,7 +146,7 @@
91
146
  },
92
147
  "hasDynamicHelp": false,
93
148
  "hiddenAliases": [],
94
- "id": "help-json",
149
+ "id": "auth",
95
150
  "pluginAlias": "@agledger/cli",
96
151
  "pluginName": "@agledger/cli",
97
152
  "pluginType": "core",
@@ -101,16 +156,39 @@
101
156
  "relativePath": [
102
157
  "dist",
103
158
  "commands",
104
- "help-json.js"
159
+ "auth.js"
105
160
  ]
106
161
  },
107
- "list-commands": {
162
+ "config": {
108
163
  "aliases": [],
109
- "args": {},
110
- "description": "List all available commands (agent discovery)",
164
+ "args": {
165
+ "action": {
166
+ "description": "Action: list, get, use, path",
167
+ "name": "action",
168
+ "options": [
169
+ "list",
170
+ "get",
171
+ "use",
172
+ "path"
173
+ ],
174
+ "required": true
175
+ },
176
+ "profile": {
177
+ "description": "Profile name (for `use`)",
178
+ "name": "profile"
179
+ }
180
+ },
181
+ "description": "Inspect or switch between stored profiles in ~/.agledger/config.json",
182
+ "examples": [
183
+ "agledger config list # list all profiles",
184
+ "agledger config get # show active profile",
185
+ "agledger config get --profile prod # show a specific profile",
186
+ "agledger config use prod # set prod as the active profile",
187
+ "agledger config path # print the config file path"
188
+ ],
111
189
  "flags": {
112
190
  "json": {
113
- "description": "Output as JSON",
191
+ "description": "Force JSON output (default when stdout is piped)",
114
192
  "name": "json",
115
193
  "allowNo": false,
116
194
  "type": "boolean"
@@ -136,11 +214,18 @@
136
214
  "hasDynamicHelp": false,
137
215
  "multiple": false,
138
216
  "type": "option"
217
+ },
218
+ "profile": {
219
+ "description": "Profile name to inspect (for `get`)",
220
+ "name": "profile",
221
+ "hasDynamicHelp": false,
222
+ "multiple": false,
223
+ "type": "option"
139
224
  }
140
225
  },
141
226
  "hasDynamicHelp": false,
142
227
  "hiddenAliases": [],
143
- "id": "list-commands",
228
+ "id": "config",
144
229
  "pluginAlias": "@agledger/cli",
145
230
  "pluginName": "@agledger/cli",
146
231
  "pluginType": "core",
@@ -150,16 +235,16 @@
150
235
  "relativePath": [
151
236
  "dist",
152
237
  "commands",
153
- "list-commands.js"
238
+ "config.js"
154
239
  ]
155
240
  },
156
- "login": {
241
+ "discover": {
157
242
  "aliases": [],
158
243
  "args": {},
159
- "description": "Authenticate and store credentials in ~/.agledger/",
244
+ "description": "Check API health and current identity, and return the quickstart workflow. Call this first.",
160
245
  "flags": {
161
246
  "json": {
162
- "description": "Output as JSON",
247
+ "description": "Force JSON output (default when stdout is piped)",
163
248
  "name": "json",
164
249
  "allowNo": false,
165
250
  "type": "boolean"
@@ -185,19 +270,11 @@
185
270
  "hasDynamicHelp": false,
186
271
  "multiple": false,
187
272
  "type": "option"
188
- },
189
- "profile": {
190
- "description": "Profile name",
191
- "name": "profile",
192
- "default": "default",
193
- "hasDynamicHelp": false,
194
- "multiple": false,
195
- "type": "option"
196
273
  }
197
274
  },
198
275
  "hasDynamicHelp": false,
199
276
  "hiddenAliases": [],
200
- "id": "login",
277
+ "id": "discover",
201
278
  "pluginAlias": "@agledger/cli",
202
279
  "pluginName": "@agledger/cli",
203
280
  "pluginType": "core",
@@ -207,16 +284,22 @@
207
284
  "relativePath": [
208
285
  "dist",
209
286
  "commands",
210
- "login.js"
287
+ "discover.js"
211
288
  ]
212
289
  },
213
- "status": {
290
+ "help-json": {
214
291
  "aliases": [],
215
- "args": {},
216
- "description": "Check AGLedger API health and status",
292
+ "args": {
293
+ "command": {
294
+ "description": "CLI command name (e.g., \"api\", \"discover\", \"login\")",
295
+ "name": "command",
296
+ "required": true
297
+ }
298
+ },
299
+ "description": "Get JSON schema for a specific command (agent discovery)",
217
300
  "flags": {
218
301
  "json": {
219
- "description": "Output as JSON",
302
+ "description": "Force JSON output (default when stdout is piped)",
220
303
  "name": "json",
221
304
  "allowNo": false,
222
305
  "type": "boolean"
@@ -246,7 +329,7 @@
246
329
  },
247
330
  "hasDynamicHelp": false,
248
331
  "hiddenAliases": [],
249
- "id": "status",
332
+ "id": "help-json",
250
333
  "pluginAlias": "@agledger/cli",
251
334
  "pluginName": "@agledger/cli",
252
335
  "pluginType": "core",
@@ -256,16 +339,16 @@
256
339
  "relativePath": [
257
340
  "dist",
258
341
  "commands",
259
- "status.js"
342
+ "help-json.js"
260
343
  ]
261
344
  },
262
- "verify-keys": {
345
+ "list-commands": {
263
346
  "aliases": [],
264
347
  "args": {},
265
- "description": "List vault signing public keys for independent audit chain verification",
348
+ "description": "List all CLI commands (for agent discovery). Most API work goes through `agledger api`.",
266
349
  "flags": {
267
350
  "json": {
268
- "description": "Output as JSON",
351
+ "description": "Force JSON output (default when stdout is piped)",
269
352
  "name": "json",
270
353
  "allowNo": false,
271
354
  "type": "boolean"
@@ -295,7 +378,7 @@
295
378
  },
296
379
  "hasDynamicHelp": false,
297
380
  "hiddenAliases": [],
298
- "id": "verify-keys",
381
+ "id": "list-commands",
299
382
  "pluginAlias": "@agledger/cli",
300
383
  "pluginName": "@agledger/cli",
301
384
  "pluginType": "core",
@@ -305,16 +388,16 @@
305
388
  "relativePath": [
306
389
  "dist",
307
390
  "commands",
308
- "verify-keys.js"
391
+ "list-commands.js"
309
392
  ]
310
393
  },
311
- "admin:create-agent": {
394
+ "login": {
312
395
  "aliases": [],
313
396
  "args": {},
314
- "description": "Create a new agent (platform admin). Slug is auto-generated if omitted.",
397
+ "description": "Verify an API key and store it in ~/.agledger/config.json (0600)",
315
398
  "flags": {
316
399
  "json": {
317
- "description": "Output as JSON",
400
+ "description": "Force JSON output (default when stdout is piped)",
318
401
  "name": "json",
319
402
  "allowNo": false,
320
403
  "type": "boolean"
@@ -341,38 +424,18 @@
341
424
  "multiple": false,
342
425
  "type": "option"
343
426
  },
344
- "name": {
345
- "description": "Display name for the agent",
346
- "name": "name",
347
- "required": true,
348
- "hasDynamicHelp": false,
349
- "multiple": false,
350
- "type": "option"
351
- },
352
- "slug": {
353
- "description": "URL-safe slug (auto-generated from name if omitted)",
354
- "name": "slug",
355
- "hasDynamicHelp": false,
356
- "multiple": false,
357
- "type": "option"
358
- },
359
- "email": {
360
- "description": "Contact email",
361
- "name": "email",
427
+ "profile": {
428
+ "description": "Profile name",
429
+ "name": "profile",
430
+ "default": "default",
362
431
  "hasDynamicHelp": false,
363
432
  "multiple": false,
364
433
  "type": "option"
365
- },
366
- "dry-run": {
367
- "description": "Show what would be sent without calling the API",
368
- "name": "dry-run",
369
- "allowNo": false,
370
- "type": "boolean"
371
434
  }
372
435
  },
373
436
  "hasDynamicHelp": false,
374
437
  "hiddenAliases": [],
375
- "id": "admin:create-agent",
438
+ "id": "login",
376
439
  "pluginAlias": "@agledger/cli",
377
440
  "pluginName": "@agledger/cli",
378
441
  "pluginType": "core",
@@ -382,17 +445,16 @@
382
445
  "relativePath": [
383
446
  "dist",
384
447
  "commands",
385
- "admin",
386
- "create-agent.js"
448
+ "login.js"
387
449
  ]
388
450
  },
389
- "admin:create-enterprise": {
451
+ "logout": {
390
452
  "aliases": [],
391
453
  "args": {},
392
- "description": "Create a new enterprise (platform admin). Slug is auto-generated if omitted.",
454
+ "description": "Remove a stored profile from ~/.agledger/config.json",
393
455
  "flags": {
394
456
  "json": {
395
- "description": "Output as JSON",
457
+ "description": "Force JSON output (default when stdout is piped)",
396
458
  "name": "json",
397
459
  "allowNo": false,
398
460
  "type": "boolean"
@@ -419,45 +481,24 @@
419
481
  "multiple": false,
420
482
  "type": "option"
421
483
  },
422
- "name": {
423
- "description": "Legal or display name for the enterprise",
424
- "name": "name",
425
- "required": true,
426
- "hasDynamicHelp": false,
427
- "multiple": false,
428
- "type": "option"
429
- },
430
- "slug": {
431
- "description": "URL-safe slug (auto-generated from name if omitted)",
432
- "name": "slug",
433
- "hasDynamicHelp": false,
434
- "multiple": false,
435
- "type": "option"
436
- },
437
- "email": {
438
- "description": "Contact email",
439
- "name": "email",
440
- "hasDynamicHelp": false,
441
- "multiple": false,
442
- "type": "option"
443
- },
444
- "trust-level": {
445
- "description": "Initial trust level (sandbox, active, verified)",
446
- "name": "trust-level",
484
+ "profile": {
485
+ "description": "Profile name to remove",
486
+ "name": "profile",
487
+ "default": "default",
447
488
  "hasDynamicHelp": false,
448
489
  "multiple": false,
449
490
  "type": "option"
450
491
  },
451
- "dry-run": {
452
- "description": "Show what would be sent without calling the API",
453
- "name": "dry-run",
492
+ "all": {
493
+ "description": "Remove all profiles",
494
+ "name": "all",
454
495
  "allowNo": false,
455
496
  "type": "boolean"
456
497
  }
457
498
  },
458
499
  "hasDynamicHelp": false,
459
500
  "hiddenAliases": [],
460
- "id": "admin:create-enterprise",
501
+ "id": "logout",
461
502
  "pluginAlias": "@agledger/cli",
462
503
  "pluginName": "@agledger/cli",
463
504
  "pluginType": "core",
@@ -467,23 +508,16 @@
467
508
  "relativePath": [
468
509
  "dist",
469
510
  "commands",
470
- "admin",
471
- "create-enterprise.js"
511
+ "logout.js"
472
512
  ]
473
513
  },
474
- "admin:set-config": {
514
+ "status": {
475
515
  "aliases": [],
476
- "args": {
477
- "enterpriseId": {
478
- "description": "Enterprise ID to configure",
479
- "name": "enterpriseId",
480
- "required": true
481
- }
482
- },
483
- "description": "Set an enterprise's approval configuration (PUT). Omitted fields are removed.",
516
+ "args": {},
517
+ "description": "Check AGLedger API health and status",
484
518
  "flags": {
485
519
  "json": {
486
- "description": "Output as JSON",
520
+ "description": "Force JSON output (default when stdout is piped)",
487
521
  "name": "json",
488
522
  "allowNo": false,
489
523
  "type": "boolean"
@@ -509,31 +543,11 @@
509
543
  "hasDynamicHelp": false,
510
544
  "multiple": false,
511
545
  "type": "option"
512
- },
513
- "data": {
514
- "description": "Config as JSON string",
515
- "name": "data",
516
- "hasDynamicHelp": false,
517
- "multiple": false,
518
- "type": "option"
519
- },
520
- "file": {
521
- "description": "Read config from JSON file",
522
- "name": "file",
523
- "hasDynamicHelp": false,
524
- "multiple": false,
525
- "type": "option"
526
- },
527
- "dry-run": {
528
- "description": "Show what would be sent without calling the API",
529
- "name": "dry-run",
530
- "allowNo": false,
531
- "type": "boolean"
532
546
  }
533
547
  },
534
548
  "hasDynamicHelp": false,
535
549
  "hiddenAliases": [],
536
- "id": "admin:set-config",
550
+ "id": "status",
537
551
  "pluginAlias": "@agledger/cli",
538
552
  "pluginName": "@agledger/cli",
539
553
  "pluginType": "core",
@@ -543,17 +557,16 @@
543
557
  "relativePath": [
544
558
  "dist",
545
559
  "commands",
546
- "admin",
547
- "set-config.js"
560
+ "status.js"
548
561
  ]
549
562
  },
550
- "agent:list": {
563
+ "verify-keys": {
551
564
  "aliases": [],
552
565
  "args": {},
553
- "description": "List agents in an enterprise",
566
+ "description": "List vault signing public keys for independent audit chain verification",
554
567
  "flags": {
555
568
  "json": {
556
- "description": "Output as JSON",
569
+ "description": "Force JSON output (default when stdout is piped)",
557
570
  "name": "json",
558
571
  "allowNo": false,
559
572
  "type": "boolean"
@@ -579,19 +592,11 @@
579
592
  "hasDynamicHelp": false,
580
593
  "multiple": false,
581
594
  "type": "option"
582
- },
583
- "enterprise": {
584
- "description": "Enterprise ID",
585
- "name": "enterprise",
586
- "required": true,
587
- "hasDynamicHelp": false,
588
- "multiple": false,
589
- "type": "option"
590
595
  }
591
596
  },
592
597
  "hasDynamicHelp": false,
593
598
  "hiddenAliases": [],
594
- "id": "agent:list",
599
+ "id": "verify-keys",
595
600
  "pluginAlias": "@agledger/cli",
596
601
  "pluginName": "@agledger/cli",
597
602
  "pluginType": "core",
@@ -601,23 +606,28 @@
601
606
  "relativePath": [
602
607
  "dist",
603
608
  "commands",
604
- "agent",
605
- "list.js"
609
+ "verify-keys.js"
606
610
  ]
607
611
  },
608
- "agent:reputation": {
612
+ "verify": {
609
613
  "aliases": [],
610
614
  "args": {
611
- "agentId": {
612
- "description": "Agent ID",
613
- "name": "agentId",
615
+ "file": {
616
+ "description": "Path to the audit export JSON file (or \"-\" for stdin).",
617
+ "name": "file",
614
618
  "required": true
615
619
  }
616
620
  },
617
- "description": "Get reputation score for an agent",
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
+ ],
618
628
  "flags": {
619
629
  "json": {
620
- "description": "Output as JSON",
630
+ "description": "Force JSON output (default when stdout is piped)",
621
631
  "name": "json",
622
632
  "allowNo": false,
623
633
  "type": "boolean"
@@ -643,11 +653,25 @@
643
653
  "hasDynamicHelp": false,
644
654
  "multiple": false,
645
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"
646
670
  }
647
671
  },
648
672
  "hasDynamicHelp": false,
649
673
  "hiddenAliases": [],
650
- "id": "agent:reputation",
674
+ "id": "verify",
651
675
  "pluginAlias": "@agledger/cli",
652
676
  "pluginName": "@agledger/cli",
653
677
  "pluginType": "core",
@@ -657,17 +681,16 @@
657
681
  "relativePath": [
658
682
  "dist",
659
683
  "commands",
660
- "agent",
661
- "reputation.js"
684
+ "verify.js"
662
685
  ]
663
686
  },
664
- "audit:events": {
687
+ "agent:list": {
665
688
  "aliases": [],
666
689
  "args": {},
667
- "description": "List audit events",
690
+ "description": "List agents in an enterprise",
668
691
  "flags": {
669
692
  "json": {
670
- "description": "Output as JSON",
693
+ "description": "Force JSON output (default when stdout is piped)",
671
694
  "name": "json",
672
695
  "allowNo": false,
673
696
  "type": "boolean"
@@ -694,24 +717,12 @@
694
717
  "multiple": false,
695
718
  "type": "option"
696
719
  },
697
- "since": {
698
- "description": "ISO 8601 timestamp — list events after this time",
699
- "name": "since",
700
- "required": true,
701
- "hasDynamicHelp": false,
702
- "multiple": false,
703
- "type": "option"
704
- },
705
- "order": {
706
- "description": "Sort order",
707
- "name": "order",
708
- "default": "desc",
720
+ "enterprise": {
721
+ "description": "Enterprise ID",
722
+ "name": "enterprise",
723
+ "required": true,
709
724
  "hasDynamicHelp": false,
710
725
  "multiple": false,
711
- "options": [
712
- "asc",
713
- "desc"
714
- ],
715
726
  "type": "option"
716
727
  },
717
728
  "limit": {
@@ -738,7 +749,7 @@
738
749
  },
739
750
  "hasDynamicHelp": false,
740
751
  "hiddenAliases": [],
741
- "id": "audit:events",
752
+ "id": "agent:list",
742
753
  "pluginAlias": "@agledger/cli",
743
754
  "pluginName": "@agledger/cli",
744
755
  "pluginType": "core",
@@ -748,23 +759,23 @@
748
759
  "relativePath": [
749
760
  "dist",
750
761
  "commands",
751
- "audit",
752
- "events.js"
762
+ "agent",
763
+ "list.js"
753
764
  ]
754
765
  },
755
- "audit:trail": {
766
+ "agent:reputation": {
756
767
  "aliases": [],
757
768
  "args": {
758
- "mandateId": {
759
- "description": "Mandate ID",
760
- "name": "mandateId",
769
+ "agentId": {
770
+ "description": "Agent ID",
771
+ "name": "agentId",
761
772
  "required": true
762
773
  }
763
774
  },
764
- "description": "Get the hash-chained audit trail for a mandate",
775
+ "description": "Get reputation score for an agent",
765
776
  "flags": {
766
777
  "json": {
767
- "description": "Output as JSON",
778
+ "description": "Force JSON output (default when stdout is piped)",
768
779
  "name": "json",
769
780
  "allowNo": false,
770
781
  "type": "boolean"
@@ -794,7 +805,7 @@
794
805
  },
795
806
  "hasDynamicHelp": false,
796
807
  "hiddenAliases": [],
797
- "id": "audit:trail",
808
+ "id": "agent:reputation",
798
809
  "pluginAlias": "@agledger/cli",
799
810
  "pluginName": "@agledger/cli",
800
811
  "pluginType": "core",
@@ -804,17 +815,17 @@
804
815
  "relativePath": [
805
816
  "dist",
806
817
  "commands",
807
- "audit",
808
- "trail.js"
818
+ "agent",
819
+ "reputation.js"
809
820
  ]
810
821
  },
811
- "federation:audit-log": {
822
+ "admin:create-agent": {
812
823
  "aliases": [],
813
824
  "args": {},
814
- "description": "Query the federation audit log for gateway and mandate events.",
825
+ "description": "Create a new agent (platform admin). Slug is auto-generated if omitted.",
815
826
  "flags": {
816
827
  "json": {
817
- "description": "Output as JSON",
828
+ "description": "Force JSON output (default when stdout is piped)",
818
829
  "name": "json",
819
830
  "allowNo": false,
820
831
  "type": "boolean"
@@ -841,38 +852,38 @@
841
852
  "multiple": false,
842
853
  "type": "option"
843
854
  },
844
- "gateway-id": {
845
- "description": "Filter by gateway ID",
846
- "name": "gateway-id",
855
+ "name": {
856
+ "description": "Display name for the agent",
857
+ "name": "name",
858
+ "required": true,
847
859
  "hasDynamicHelp": false,
848
860
  "multiple": false,
849
861
  "type": "option"
850
862
  },
851
- "entry-type": {
852
- "description": "Filter by audit entry type",
853
- "name": "entry-type",
863
+ "slug": {
864
+ "description": "URL-safe slug (auto-generated from name if omitted)",
865
+ "name": "slug",
854
866
  "hasDynamicHelp": false,
855
867
  "multiple": false,
856
868
  "type": "option"
857
869
  },
858
- "mandate-id": {
859
- "description": "Filter by mandate ID",
860
- "name": "mandate-id",
870
+ "email": {
871
+ "description": "Contact email",
872
+ "name": "email",
861
873
  "hasDynamicHelp": false,
862
874
  "multiple": false,
863
875
  "type": "option"
864
876
  },
865
- "limit": {
866
- "description": "Maximum number of entries to return",
867
- "name": "limit",
868
- "hasDynamicHelp": false,
869
- "multiple": false,
870
- "type": "option"
877
+ "dry-run": {
878
+ "description": "Show what would be sent without calling the API",
879
+ "name": "dry-run",
880
+ "allowNo": false,
881
+ "type": "boolean"
871
882
  }
872
883
  },
873
884
  "hasDynamicHelp": false,
874
885
  "hiddenAliases": [],
875
- "id": "federation:audit-log",
886
+ "id": "admin:create-agent",
876
887
  "pluginAlias": "@agledger/cli",
877
888
  "pluginName": "@agledger/cli",
878
889
  "pluginType": "core",
@@ -882,17 +893,17 @@
882
893
  "relativePath": [
883
894
  "dist",
884
895
  "commands",
885
- "federation",
886
- "audit-log.js"
896
+ "admin",
897
+ "create-agent.js"
887
898
  ]
888
899
  },
889
- "federation:create-token": {
900
+ "admin:create-enterprise": {
890
901
  "aliases": [],
891
902
  "args": {},
892
- "description": "Create a federation registration token for gateway onboarding.",
903
+ "description": "Create a new enterprise (platform admin). Slug is auto-generated if omitted.",
893
904
  "flags": {
894
905
  "json": {
895
- "description": "Output as JSON",
906
+ "description": "Force JSON output (default when stdout is piped)",
896
907
  "name": "json",
897
908
  "allowNo": false,
898
909
  "type": "boolean"
@@ -919,16 +930,31 @@
919
930
  "multiple": false,
920
931
  "type": "option"
921
932
  },
922
- "label": {
923
- "description": "Human-readable label for the token",
924
- "name": "label",
933
+ "name": {
934
+ "description": "Legal or display name for the enterprise",
935
+ "name": "name",
936
+ "required": true,
925
937
  "hasDynamicHelp": false,
926
938
  "multiple": false,
927
939
  "type": "option"
928
940
  },
929
- "expires-in-hours": {
930
- "description": "Token expiry in hours (default: server-configured)",
931
- "name": "expires-in-hours",
941
+ "slug": {
942
+ "description": "URL-safe slug (auto-generated from name if omitted)",
943
+ "name": "slug",
944
+ "hasDynamicHelp": false,
945
+ "multiple": false,
946
+ "type": "option"
947
+ },
948
+ "email": {
949
+ "description": "Contact email",
950
+ "name": "email",
951
+ "hasDynamicHelp": false,
952
+ "multiple": false,
953
+ "type": "option"
954
+ },
955
+ "trust-level": {
956
+ "description": "Initial trust level (sandbox, active, verified)",
957
+ "name": "trust-level",
932
958
  "hasDynamicHelp": false,
933
959
  "multiple": false,
934
960
  "type": "option"
@@ -942,7 +968,7 @@
942
968
  },
943
969
  "hasDynamicHelp": false,
944
970
  "hiddenAliases": [],
945
- "id": "federation:create-token",
971
+ "id": "admin:create-enterprise",
946
972
  "pluginAlias": "@agledger/cli",
947
973
  "pluginName": "@agledger/cli",
948
974
  "pluginType": "core",
@@ -952,17 +978,23 @@
952
978
  "relativePath": [
953
979
  "dist",
954
980
  "commands",
955
- "federation",
956
- "create-token.js"
981
+ "admin",
982
+ "create-enterprise.js"
957
983
  ]
958
984
  },
959
- "federation:health": {
985
+ "admin:set-config": {
960
986
  "aliases": [],
961
- "args": {},
962
- "description": "Show federation health summary (gateway counts, sync status, uptime).",
987
+ "args": {
988
+ "enterpriseId": {
989
+ "description": "Enterprise ID to configure",
990
+ "name": "enterpriseId",
991
+ "required": true
992
+ }
993
+ },
994
+ "description": "Set an enterprise's approval configuration (PUT). Omitted fields are removed.",
963
995
  "flags": {
964
996
  "json": {
965
- "description": "Output as JSON",
997
+ "description": "Force JSON output (default when stdout is piped)",
966
998
  "name": "json",
967
999
  "allowNo": false,
968
1000
  "type": "boolean"
@@ -988,11 +1020,31 @@
988
1020
  "hasDynamicHelp": false,
989
1021
  "multiple": false,
990
1022
  "type": "option"
1023
+ },
1024
+ "data": {
1025
+ "description": "Config as JSON string",
1026
+ "name": "data",
1027
+ "hasDynamicHelp": false,
1028
+ "multiple": false,
1029
+ "type": "option"
1030
+ },
1031
+ "file": {
1032
+ "description": "Read config from JSON file",
1033
+ "name": "file",
1034
+ "hasDynamicHelp": false,
1035
+ "multiple": false,
1036
+ "type": "option"
1037
+ },
1038
+ "dry-run": {
1039
+ "description": "Show what would be sent without calling the API",
1040
+ "name": "dry-run",
1041
+ "allowNo": false,
1042
+ "type": "boolean"
991
1043
  }
992
1044
  },
993
1045
  "hasDynamicHelp": false,
994
1046
  "hiddenAliases": [],
995
- "id": "federation:health",
1047
+ "id": "admin:set-config",
996
1048
  "pluginAlias": "@agledger/cli",
997
1049
  "pluginName": "@agledger/cli",
998
1050
  "pluginType": "core",
@@ -1002,17 +1054,17 @@
1002
1054
  "relativePath": [
1003
1055
  "dist",
1004
1056
  "commands",
1005
- "federation",
1006
- "health.js"
1057
+ "admin",
1058
+ "set-config.js"
1007
1059
  ]
1008
1060
  },
1009
- "federation:list-gateways": {
1061
+ "federation:audit-log": {
1010
1062
  "aliases": [],
1011
1063
  "args": {},
1012
- "description": "List federation gateways with optional status filter.",
1064
+ "description": "Query the federation audit log for gateway and mandate events.",
1013
1065
  "flags": {
1014
1066
  "json": {
1015
- "description": "Output as JSON",
1067
+ "description": "Force JSON output (default when stdout is piped)",
1016
1068
  "name": "json",
1017
1069
  "allowNo": false,
1018
1070
  "type": "boolean"
@@ -1039,20 +1091,29 @@
1039
1091
  "multiple": false,
1040
1092
  "type": "option"
1041
1093
  },
1042
- "status": {
1043
- "description": "Filter by gateway status",
1044
- "name": "status",
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",
1045
1111
  "hasDynamicHelp": false,
1046
1112
  "multiple": false,
1047
- "options": [
1048
- "active",
1049
- "suspended",
1050
- "revoked"
1051
- ],
1052
1113
  "type": "option"
1053
1114
  },
1054
1115
  "limit": {
1055
- "description": "Maximum number of results to return",
1116
+ "description": "Maximum number of entries to return",
1056
1117
  "name": "limit",
1057
1118
  "hasDynamicHelp": false,
1058
1119
  "multiple": false,
@@ -1061,7 +1122,7 @@
1061
1122
  },
1062
1123
  "hasDynamicHelp": false,
1063
1124
  "hiddenAliases": [],
1064
- "id": "federation:list-gateways",
1125
+ "id": "federation:audit-log",
1065
1126
  "pluginAlias": "@agledger/cli",
1066
1127
  "pluginName": "@agledger/cli",
1067
1128
  "pluginType": "core",
@@ -1072,16 +1133,16 @@
1072
1133
  "dist",
1073
1134
  "commands",
1074
1135
  "federation",
1075
- "list-gateways.js"
1136
+ "audit-log.js"
1076
1137
  ]
1077
1138
  },
1078
- "federation:query-mandates": {
1139
+ "federation:create-token": {
1079
1140
  "aliases": [],
1080
1141
  "args": {},
1081
- "description": "Query federated mandates across gateways.",
1142
+ "description": "Create a federation registration token for gateway onboarding.",
1082
1143
  "flags": {
1083
1144
  "json": {
1084
- "description": "Output as JSON",
1145
+ "description": "Force JSON output (default when stdout is piped)",
1085
1146
  "name": "json",
1086
1147
  "allowNo": false,
1087
1148
  "type": "boolean"
@@ -1108,46 +1169,577 @@
1108
1169
  "multiple": false,
1109
1170
  "type": "option"
1110
1171
  },
1111
- "gateway-id": {
1112
- "description": "Filter by originating gateway ID",
1113
- "name": "gateway-id",
1172
+ "label": {
1173
+ "description": "Human-readable label for the token",
1174
+ "name": "label",
1114
1175
  "hasDynamicHelp": false,
1115
1176
  "multiple": false,
1116
1177
  "type": "option"
1117
1178
  },
1118
- "hub-state": {
1119
- "description": "Filter by hub-side mandate state",
1120
- "name": "hub-state",
1179
+ "expires-in-hours": {
1180
+ "description": "Token expiry in hours (default: server-configured)",
1181
+ "name": "expires-in-hours",
1121
1182
  "hasDynamicHelp": false,
1122
1183
  "multiple": false,
1123
- "options": [
1124
- "OFFERED",
1125
- "ACCEPTED",
1126
- "ACTIVE",
1127
- "COMPLETED",
1128
- "DISPUTED",
1129
- "TERMINAL"
1130
- ],
1131
1184
  "type": "option"
1132
1185
  },
1133
- "contract-type": {
1134
- "description": "Filter by contract type (e.g. ACH-PROC-v1)",
1135
- "name": "contract-type",
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",
1199
+ "strict": true,
1200
+ "enableJsonFlag": false,
1201
+ "isESM": true,
1202
+ "relativePath": [
1203
+ "dist",
1204
+ "commands",
1205
+ "federation",
1206
+ "create-token.js"
1207
+ ]
1208
+ },
1209
+ "federation:health": {
1210
+ "aliases": [],
1211
+ "args": {},
1212
+ "description": "Show federation health summary (gateway counts, sync status, uptime).",
1213
+ "flags": {
1214
+ "json": {
1215
+ "description": "Force JSON output (default when stdout is piped)",
1216
+ "name": "json",
1217
+ "allowNo": false,
1218
+ "type": "boolean"
1219
+ },
1220
+ "quiet": {
1221
+ "description": "Suppress output (exit code only)",
1222
+ "name": "quiet",
1223
+ "allowNo": false,
1224
+ "type": "boolean"
1225
+ },
1226
+ "api-key": {
1227
+ "description": "AGLedger API key",
1228
+ "env": "AGLEDGER_API_KEY",
1229
+ "name": "api-key",
1230
+ "hasDynamicHelp": false,
1231
+ "multiple": false,
1232
+ "type": "option"
1233
+ },
1234
+ "api-url": {
1235
+ "description": "AGLedger API base URL",
1236
+ "env": "AGLEDGER_API_URL",
1237
+ "name": "api-url",
1238
+ "hasDynamicHelp": false,
1239
+ "multiple": false,
1240
+ "type": "option"
1241
+ }
1242
+ },
1243
+ "hasDynamicHelp": false,
1244
+ "hiddenAliases": [],
1245
+ "id": "federation:health",
1246
+ "pluginAlias": "@agledger/cli",
1247
+ "pluginName": "@agledger/cli",
1248
+ "pluginType": "core",
1249
+ "strict": true,
1250
+ "enableJsonFlag": false,
1251
+ "isESM": true,
1252
+ "relativePath": [
1253
+ "dist",
1254
+ "commands",
1255
+ "federation",
1256
+ "health.js"
1257
+ ]
1258
+ },
1259
+ "federation:list-gateways": {
1260
+ "aliases": [],
1261
+ "args": {},
1262
+ "description": "List federation gateways with optional status filter.",
1263
+ "flags": {
1264
+ "json": {
1265
+ "description": "Force JSON output (default when stdout is piped)",
1266
+ "name": "json",
1267
+ "allowNo": false,
1268
+ "type": "boolean"
1269
+ },
1270
+ "quiet": {
1271
+ "description": "Suppress output (exit code only)",
1272
+ "name": "quiet",
1273
+ "allowNo": false,
1274
+ "type": "boolean"
1275
+ },
1276
+ "api-key": {
1277
+ "description": "AGLedger API key",
1278
+ "env": "AGLEDGER_API_KEY",
1279
+ "name": "api-key",
1280
+ "hasDynamicHelp": false,
1281
+ "multiple": false,
1282
+ "type": "option"
1283
+ },
1284
+ "api-url": {
1285
+ "description": "AGLedger API base URL",
1286
+ "env": "AGLEDGER_API_URL",
1287
+ "name": "api-url",
1288
+ "hasDynamicHelp": false,
1289
+ "multiple": false,
1290
+ "type": "option"
1291
+ },
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"
1310
+ }
1311
+ },
1312
+ "hasDynamicHelp": false,
1313
+ "hiddenAliases": [],
1314
+ "id": "federation:list-gateways",
1315
+ "pluginAlias": "@agledger/cli",
1316
+ "pluginName": "@agledger/cli",
1317
+ "pluginType": "core",
1318
+ "strict": true,
1319
+ "enableJsonFlag": false,
1320
+ "isESM": true,
1321
+ "relativePath": [
1322
+ "dist",
1323
+ "commands",
1324
+ "federation",
1325
+ "list-gateways.js"
1326
+ ]
1327
+ },
1328
+ "federation:query-mandates": {
1329
+ "aliases": [],
1330
+ "args": {},
1331
+ "description": "Query federated mandates across gateways.",
1332
+ "flags": {
1333
+ "json": {
1334
+ "description": "Force JSON output (default when stdout is piped)",
1335
+ "name": "json",
1336
+ "allowNo": false,
1337
+ "type": "boolean"
1338
+ },
1339
+ "quiet": {
1340
+ "description": "Suppress output (exit code only)",
1341
+ "name": "quiet",
1342
+ "allowNo": false,
1343
+ "type": "boolean"
1344
+ },
1345
+ "api-key": {
1346
+ "description": "AGLedger API key",
1347
+ "env": "AGLEDGER_API_KEY",
1348
+ "name": "api-key",
1349
+ "hasDynamicHelp": false,
1350
+ "multiple": false,
1351
+ "type": "option"
1352
+ },
1353
+ "api-url": {
1354
+ "description": "AGLedger API base URL",
1355
+ "env": "AGLEDGER_API_URL",
1356
+ "name": "api-url",
1357
+ "hasDynamicHelp": false,
1358
+ "multiple": false,
1359
+ "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
+ }
1397
+ },
1398
+ "hasDynamicHelp": false,
1399
+ "hiddenAliases": [],
1400
+ "id": "federation:query-mandates",
1401
+ "pluginAlias": "@agledger/cli",
1402
+ "pluginName": "@agledger/cli",
1403
+ "pluginType": "core",
1404
+ "strict": true,
1405
+ "enableJsonFlag": false,
1406
+ "isESM": true,
1407
+ "relativePath": [
1408
+ "dist",
1409
+ "commands",
1410
+ "federation",
1411
+ "query-mandates.js"
1412
+ ]
1413
+ },
1414
+ "federation:revoke-gateway": {
1415
+ "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.",
1424
+ "flags": {
1425
+ "json": {
1426
+ "description": "Force JSON output (default when stdout is piped)",
1427
+ "name": "json",
1428
+ "allowNo": false,
1429
+ "type": "boolean"
1430
+ },
1431
+ "quiet": {
1432
+ "description": "Suppress output (exit code only)",
1433
+ "name": "quiet",
1434
+ "allowNo": false,
1435
+ "type": "boolean"
1436
+ },
1437
+ "api-key": {
1438
+ "description": "AGLedger API key",
1439
+ "env": "AGLEDGER_API_KEY",
1440
+ "name": "api-key",
1441
+ "hasDynamicHelp": false,
1442
+ "multiple": false,
1443
+ "type": "option"
1444
+ },
1445
+ "api-url": {
1446
+ "description": "AGLedger API base URL",
1447
+ "env": "AGLEDGER_API_URL",
1448
+ "name": "api-url",
1449
+ "hasDynamicHelp": false,
1450
+ "multiple": false,
1451
+ "type": "option"
1452
+ },
1453
+ "reason": {
1454
+ "description": "Reason for revocation",
1455
+ "name": "reason",
1456
+ "required": true,
1457
+ "hasDynamicHelp": false,
1458
+ "multiple": false,
1459
+ "type": "option"
1460
+ },
1461
+ "dry-run": {
1462
+ "description": "Show what would be sent without calling the API",
1463
+ "name": "dry-run",
1464
+ "allowNo": false,
1465
+ "type": "boolean"
1466
+ }
1467
+ },
1468
+ "hasDynamicHelp": false,
1469
+ "hiddenAliases": [],
1470
+ "id": "federation:revoke-gateway",
1471
+ "pluginAlias": "@agledger/cli",
1472
+ "pluginName": "@agledger/cli",
1473
+ "pluginType": "core",
1474
+ "strict": true,
1475
+ "enableJsonFlag": false,
1476
+ "isESM": true,
1477
+ "relativePath": [
1478
+ "dist",
1479
+ "commands",
1480
+ "federation",
1481
+ "revoke-gateway.js"
1482
+ ]
1483
+ },
1484
+ "audit:events": {
1485
+ "aliases": [],
1486
+ "args": {},
1487
+ "description": "List audit events",
1488
+ "flags": {
1489
+ "json": {
1490
+ "description": "Force JSON output (default when stdout is piped)",
1491
+ "name": "json",
1492
+ "allowNo": false,
1493
+ "type": "boolean"
1494
+ },
1495
+ "quiet": {
1496
+ "description": "Suppress output (exit code only)",
1497
+ "name": "quiet",
1498
+ "allowNo": false,
1499
+ "type": "boolean"
1500
+ },
1501
+ "api-key": {
1502
+ "description": "AGLedger API key",
1503
+ "env": "AGLEDGER_API_KEY",
1504
+ "name": "api-key",
1505
+ "hasDynamicHelp": false,
1506
+ "multiple": false,
1507
+ "type": "option"
1508
+ },
1509
+ "api-url": {
1510
+ "description": "AGLedger API base URL",
1511
+ "env": "AGLEDGER_API_URL",
1512
+ "name": "api-url",
1513
+ "hasDynamicHelp": false,
1514
+ "multiple": false,
1515
+ "type": "option"
1516
+ },
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,
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"
1557
+ }
1558
+ },
1559
+ "hasDynamicHelp": false,
1560
+ "hiddenAliases": [],
1561
+ "id": "audit:events",
1562
+ "pluginAlias": "@agledger/cli",
1563
+ "pluginName": "@agledger/cli",
1564
+ "pluginType": "core",
1565
+ "strict": true,
1566
+ "enableJsonFlag": false,
1567
+ "isESM": true,
1568
+ "relativePath": [
1569
+ "dist",
1570
+ "commands",
1571
+ "audit",
1572
+ "events.js"
1573
+ ]
1574
+ },
1575
+ "audit:trail": {
1576
+ "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",
1585
+ "flags": {
1586
+ "json": {
1587
+ "description": "Force JSON output (default when stdout is piped)",
1588
+ "name": "json",
1589
+ "allowNo": false,
1590
+ "type": "boolean"
1591
+ },
1592
+ "quiet": {
1593
+ "description": "Suppress output (exit code only)",
1594
+ "name": "quiet",
1595
+ "allowNo": false,
1596
+ "type": "boolean"
1597
+ },
1598
+ "api-key": {
1599
+ "description": "AGLedger API key",
1600
+ "env": "AGLEDGER_API_KEY",
1601
+ "name": "api-key",
1602
+ "hasDynamicHelp": false,
1603
+ "multiple": false,
1604
+ "type": "option"
1605
+ },
1606
+ "api-url": {
1607
+ "description": "AGLedger API base URL",
1608
+ "env": "AGLEDGER_API_URL",
1609
+ "name": "api-url",
1610
+ "hasDynamicHelp": false,
1611
+ "multiple": false,
1612
+ "type": "option"
1613
+ }
1614
+ },
1615
+ "hasDynamicHelp": false,
1616
+ "hiddenAliases": [],
1617
+ "id": "audit:trail",
1618
+ "pluginAlias": "@agledger/cli",
1619
+ "pluginName": "@agledger/cli",
1620
+ "pluginType": "core",
1621
+ "strict": true,
1622
+ "enableJsonFlag": false,
1623
+ "isESM": true,
1624
+ "relativePath": [
1625
+ "dist",
1626
+ "commands",
1627
+ "audit",
1628
+ "trail.js"
1629
+ ]
1630
+ },
1631
+ "receipt:get": {
1632
+ "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",
1646
+ "flags": {
1647
+ "json": {
1648
+ "description": "Force JSON output (default when stdout is piped)",
1649
+ "name": "json",
1650
+ "allowNo": false,
1651
+ "type": "boolean"
1652
+ },
1653
+ "quiet": {
1654
+ "description": "Suppress output (exit code only)",
1655
+ "name": "quiet",
1656
+ "allowNo": false,
1657
+ "type": "boolean"
1658
+ },
1659
+ "api-key": {
1660
+ "description": "AGLedger API key",
1661
+ "env": "AGLEDGER_API_KEY",
1662
+ "name": "api-key",
1663
+ "hasDynamicHelp": false,
1664
+ "multiple": false,
1665
+ "type": "option"
1666
+ },
1667
+ "api-url": {
1668
+ "description": "AGLedger API base URL",
1669
+ "env": "AGLEDGER_API_URL",
1670
+ "name": "api-url",
1671
+ "hasDynamicHelp": false,
1672
+ "multiple": false,
1673
+ "type": "option"
1674
+ }
1675
+ },
1676
+ "hasDynamicHelp": false,
1677
+ "hiddenAliases": [],
1678
+ "id": "receipt:get",
1679
+ "pluginAlias": "@agledger/cli",
1680
+ "pluginName": "@agledger/cli",
1681
+ "pluginType": "core",
1682
+ "strict": true,
1683
+ "enableJsonFlag": false,
1684
+ "isESM": true,
1685
+ "relativePath": [
1686
+ "dist",
1687
+ "commands",
1688
+ "receipt",
1689
+ "get.js"
1690
+ ]
1691
+ },
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",
1704
+ "flags": {
1705
+ "json": {
1706
+ "description": "Force JSON output (default when stdout is piped)",
1707
+ "name": "json",
1708
+ "allowNo": false,
1709
+ "type": "boolean"
1710
+ },
1711
+ "quiet": {
1712
+ "description": "Suppress output (exit code only)",
1713
+ "name": "quiet",
1714
+ "allowNo": false,
1715
+ "type": "boolean"
1716
+ },
1717
+ "api-key": {
1718
+ "description": "AGLedger API key",
1719
+ "env": "AGLEDGER_API_KEY",
1720
+ "name": "api-key",
1136
1721
  "hasDynamicHelp": false,
1137
1722
  "multiple": false,
1138
1723
  "type": "option"
1139
1724
  },
1140
- "limit": {
1141
- "description": "Maximum number of results to return",
1142
- "name": "limit",
1725
+ "api-url": {
1726
+ "description": "AGLedger API base URL",
1727
+ "env": "AGLEDGER_API_URL",
1728
+ "name": "api-url",
1143
1729
  "hasDynamicHelp": false,
1144
1730
  "multiple": false,
1145
1731
  "type": "option"
1732
+ },
1733
+ "all": {
1734
+ "description": "Stream all pages as NDJSON",
1735
+ "name": "all",
1736
+ "allowNo": false,
1737
+ "type": "boolean"
1146
1738
  }
1147
1739
  },
1148
1740
  "hasDynamicHelp": false,
1149
1741
  "hiddenAliases": [],
1150
- "id": "federation:query-mandates",
1742
+ "id": "receipt:list",
1151
1743
  "pluginAlias": "@agledger/cli",
1152
1744
  "pluginName": "@agledger/cli",
1153
1745
  "pluginType": "core",
@@ -1157,23 +1749,23 @@
1157
1749
  "relativePath": [
1158
1750
  "dist",
1159
1751
  "commands",
1160
- "federation",
1161
- "query-mandates.js"
1752
+ "receipt",
1753
+ "list.js"
1162
1754
  ]
1163
1755
  },
1164
- "federation:revoke-gateway": {
1756
+ "receipt:submit": {
1165
1757
  "aliases": [],
1166
1758
  "args": {
1167
- "gateway_id": {
1168
- "description": "Gateway ID to revoke",
1169
- "name": "gateway_id",
1759
+ "mandateId": {
1760
+ "description": "Mandate ID",
1761
+ "name": "mandateId",
1170
1762
  "required": true
1171
1763
  }
1172
1764
  },
1173
- "description": "Revoke a federation gateway, severing its connection to the hub.",
1765
+ "description": "Submit a receipt (evidence of completion) for a mandate",
1174
1766
  "flags": {
1175
1767
  "json": {
1176
- "description": "Output as JSON",
1768
+ "description": "Force JSON output (default when stdout is piped)",
1177
1769
  "name": "json",
1178
1770
  "allowNo": false,
1179
1771
  "type": "boolean"
@@ -1200,16 +1792,22 @@
1200
1792
  "multiple": false,
1201
1793
  "type": "option"
1202
1794
  },
1203
- "reason": {
1204
- "description": "Reason for revocation",
1205
- "name": "reason",
1206
- "required": true,
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",
1207
1805
  "hasDynamicHelp": false,
1208
1806
  "multiple": false,
1209
1807
  "type": "option"
1210
1808
  },
1211
1809
  "dry-run": {
1212
- "description": "Show what would be sent without calling the API",
1810
+ "description": "Show what would be sent without hitting the API",
1213
1811
  "name": "dry-run",
1214
1812
  "allowNo": false,
1215
1813
  "type": "boolean"
@@ -1217,7 +1815,7 @@
1217
1815
  },
1218
1816
  "hasDynamicHelp": false,
1219
1817
  "hiddenAliases": [],
1220
- "id": "federation:revoke-gateway",
1818
+ "id": "receipt:submit",
1221
1819
  "pluginAlias": "@agledger/cli",
1222
1820
  "pluginName": "@agledger/cli",
1223
1821
  "pluginType": "core",
@@ -1227,8 +1825,8 @@
1227
1825
  "relativePath": [
1228
1826
  "dist",
1229
1827
  "commands",
1230
- "federation",
1231
- "revoke-gateway.js"
1828
+ "receipt",
1829
+ "submit.js"
1232
1830
  ]
1233
1831
  },
1234
1832
  "mandate:accept": {
@@ -1243,7 +1841,7 @@
1243
1841
  "description": "Accept a proposed mandate (as performer)",
1244
1842
  "flags": {
1245
1843
  "json": {
1246
- "description": "Output as JSON",
1844
+ "description": "Force JSON output (default when stdout is piped)",
1247
1845
  "name": "json",
1248
1846
  "allowNo": false,
1249
1847
  "type": "boolean"
@@ -1269,6 +1867,12 @@
1269
1867
  "hasDynamicHelp": false,
1270
1868
  "multiple": false,
1271
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"
1272
1876
  }
1273
1877
  },
1274
1878
  "hasDynamicHelp": false,
@@ -1293,7 +1897,7 @@
1293
1897
  "description": "Fetch multiple mandates by ID (up to 100). Outputs NDJSON.",
1294
1898
  "flags": {
1295
1899
  "json": {
1296
- "description": "Output as JSON",
1900
+ "description": "Force JSON output (default when stdout is piped)",
1297
1901
  "name": "json",
1298
1902
  "allowNo": false,
1299
1903
  "type": "boolean"
@@ -1357,7 +1961,7 @@
1357
1961
  "description": "Cancel a mandate",
1358
1962
  "flags": {
1359
1963
  "json": {
1360
- "description": "Output as JSON",
1964
+ "description": "Force JSON output (default when stdout is piped)",
1361
1965
  "name": "json",
1362
1966
  "allowNo": false,
1363
1967
  "type": "boolean"
@@ -1390,6 +1994,12 @@
1390
1994
  "hasDynamicHelp": false,
1391
1995
  "multiple": false,
1392
1996
  "type": "option"
1997
+ },
1998
+ "dry-run": {
1999
+ "description": "Show what would be sent without hitting the API",
2000
+ "name": "dry-run",
2001
+ "allowNo": false,
2002
+ "type": "boolean"
1393
2003
  }
1394
2004
  },
1395
2005
  "hasDynamicHelp": false,
@@ -1420,7 +2030,7 @@
1420
2030
  "description": "Get full delegation chain for a mandate",
1421
2031
  "flags": {
1422
2032
  "json": {
1423
- "description": "Output as JSON",
2033
+ "description": "Force JSON output (default when stdout is piped)",
1424
2034
  "name": "json",
1425
2035
  "allowNo": false,
1426
2036
  "type": "boolean"
@@ -1476,7 +2086,7 @@
1476
2086
  "description": "Counter-propose a mandate with revised terms (as performer)",
1477
2087
  "flags": {
1478
2088
  "json": {
1479
- "description": "Output as JSON",
2089
+ "description": "Force JSON output (default when stdout is piped)",
1480
2090
  "name": "json",
1481
2091
  "allowNo": false,
1482
2092
  "type": "boolean"
@@ -1506,10 +2116,22 @@
1506
2116
  "data": {
1507
2117
  "description": "Counter-proposal data as JSON string (counterCriteria, message)",
1508
2118
  "name": "data",
1509
- "required": true,
1510
2119
  "hasDynamicHelp": false,
1511
2120
  "multiple": false,
1512
2121
  "type": "option"
2122
+ },
2123
+ "file": {
2124
+ "description": "Read counter-proposal data from JSON file",
2125
+ "name": "file",
2126
+ "hasDynamicHelp": false,
2127
+ "multiple": false,
2128
+ "type": "option"
2129
+ },
2130
+ "dry-run": {
2131
+ "description": "Show what would be sent without hitting the API",
2132
+ "name": "dry-run",
2133
+ "allowNo": false,
2134
+ "type": "boolean"
1513
2135
  }
1514
2136
  },
1515
2137
  "hasDynamicHelp": false,
@@ -1534,7 +2156,7 @@
1534
2156
  "description": "Create a new mandate",
1535
2157
  "flags": {
1536
2158
  "json": {
1537
- "description": "Output as JSON",
2159
+ "description": "Force JSON output (default when stdout is piped)",
1538
2160
  "name": "json",
1539
2161
  "allowNo": false,
1540
2162
  "type": "boolean"
@@ -1598,7 +2220,7 @@
1598
2220
  "type": "option"
1599
2221
  },
1600
2222
  "activate": {
1601
- "description": "Auto-activate the mandate (CREATED → ACTIVE)",
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`.",
1602
2224
  "name": "activate",
1603
2225
  "allowNo": false,
1604
2226
  "type": "boolean"
@@ -1638,7 +2260,7 @@
1638
2260
  "description": "Get mandate details by ID",
1639
2261
  "flags": {
1640
2262
  "json": {
1641
- "description": "Output as JSON",
2263
+ "description": "Force JSON output (default when stdout is piped)",
1642
2264
  "name": "json",
1643
2265
  "allowNo": false,
1644
2266
  "type": "boolean"
@@ -1688,7 +2310,7 @@
1688
2310
  "description": "List mandates with optional filters",
1689
2311
  "flags": {
1690
2312
  "json": {
1691
- "description": "Output as JSON",
2313
+ "description": "Force JSON output (default when stdout is piped)",
1692
2314
  "name": "json",
1693
2315
  "allowNo": false,
1694
2316
  "type": "boolean"
@@ -1716,7 +2338,7 @@
1716
2338
  "type": "option"
1717
2339
  },
1718
2340
  "status": {
1719
- "description": "Filter by mandate status (CREATED, ACTIVE, PROCESSING, REVISION_REQUESTED, FULFILLED, FAILED, REMEDIATED, EXPIRED, CANCELLED)",
2341
+ "description": "Filter by mandate status (PROPOSED, REJECTED, CREATED, ACTIVE, PROCESSING, REVISION_REQUESTED, FULFILLED, FAILED, REMEDIATED, EXPIRED, CANCELLED)",
1720
2342
  "name": "status",
1721
2343
  "hasDynamicHelp": false,
1722
2344
  "multiple": false,
@@ -1774,12 +2396,20 @@
1774
2396
  "description": "Mandate ID",
1775
2397
  "name": "id",
1776
2398
  "required": true
2399
+ },
2400
+ "outcome": {
2401
+ "description": "PASS or FAIL. Alternative: --outcome",
2402
+ "name": "outcome",
2403
+ "options": [
2404
+ "PASS",
2405
+ "FAIL"
2406
+ ]
1777
2407
  }
1778
2408
  },
1779
- "description": "Report principal verdict on a receipt (PASS or FAIL with settlement signal)",
2409
+ "description": "Report principal verdict on a receipt (PASS or FAIL with settlement signal). Outcome can be given positionally or via --outcome.",
1780
2410
  "flags": {
1781
2411
  "json": {
1782
- "description": "Output as JSON",
2412
+ "description": "Force JSON output (default when stdout is piped)",
1783
2413
  "name": "json",
1784
2414
  "allowNo": false,
1785
2415
  "type": "boolean"
@@ -1815,9 +2445,8 @@
1815
2445
  "type": "option"
1816
2446
  },
1817
2447
  "outcome": {
1818
- "description": "PASS or FAIL",
2448
+ "description": "PASS or FAIL — alternative to positional arg",
1819
2449
  "name": "outcome",
1820
- "required": true,
1821
2450
  "hasDynamicHelp": false,
1822
2451
  "multiple": false,
1823
2452
  "options": [
@@ -1839,6 +2468,12 @@
1839
2468
  "hasDynamicHelp": false,
1840
2469
  "multiple": false,
1841
2470
  "type": "option"
2471
+ },
2472
+ "dry-run": {
2473
+ "description": "Show what would be sent without hitting the API",
2474
+ "name": "dry-run",
2475
+ "allowNo": false,
2476
+ "type": "boolean"
1842
2477
  }
1843
2478
  },
1844
2479
  "hasDynamicHelp": false,
@@ -1857,6 +2492,68 @@
1857
2492
  "outcome.js"
1858
2493
  ]
1859
2494
  },
2495
+ "mandate:receipts": {
2496
+ "aliases": [],
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`)",
2505
+ "flags": {
2506
+ "json": {
2507
+ "description": "Force JSON output (default when stdout is piped)",
2508
+ "name": "json",
2509
+ "allowNo": false,
2510
+ "type": "boolean"
2511
+ },
2512
+ "quiet": {
2513
+ "description": "Suppress output (exit code only)",
2514
+ "name": "quiet",
2515
+ "allowNo": false,
2516
+ "type": "boolean"
2517
+ },
2518
+ "api-key": {
2519
+ "description": "AGLedger API key",
2520
+ "env": "AGLEDGER_API_KEY",
2521
+ "name": "api-key",
2522
+ "hasDynamicHelp": false,
2523
+ "multiple": false,
2524
+ "type": "option"
2525
+ },
2526
+ "api-url": {
2527
+ "description": "AGLedger API base URL",
2528
+ "env": "AGLEDGER_API_URL",
2529
+ "name": "api-url",
2530
+ "hasDynamicHelp": false,
2531
+ "multiple": false,
2532
+ "type": "option"
2533
+ },
2534
+ "all": {
2535
+ "description": "Stream all pages as NDJSON",
2536
+ "name": "all",
2537
+ "allowNo": false,
2538
+ "type": "boolean"
2539
+ }
2540
+ },
2541
+ "hasDynamicHelp": false,
2542
+ "hiddenAliases": [],
2543
+ "id": "mandate:receipts",
2544
+ "pluginAlias": "@agledger/cli",
2545
+ "pluginName": "@agledger/cli",
2546
+ "pluginType": "core",
2547
+ "strict": true,
2548
+ "enableJsonFlag": false,
2549
+ "isESM": true,
2550
+ "relativePath": [
2551
+ "dist",
2552
+ "commands",
2553
+ "mandate",
2554
+ "receipts.js"
2555
+ ]
2556
+ },
1860
2557
  "mandate:reject": {
1861
2558
  "aliases": [],
1862
2559
  "args": {
@@ -1869,7 +2566,7 @@
1869
2566
  "description": "Reject a proposed mandate (as performer)",
1870
2567
  "flags": {
1871
2568
  "json": {
1872
- "description": "Output as JSON",
2569
+ "description": "Force JSON output (default when stdout is piped)",
1873
2570
  "name": "json",
1874
2571
  "allowNo": false,
1875
2572
  "type": "boolean"
@@ -1902,6 +2599,12 @@
1902
2599
  "hasDynamicHelp": false,
1903
2600
  "multiple": false,
1904
2601
  "type": "option"
2602
+ },
2603
+ "dry-run": {
2604
+ "description": "Show what would be sent without hitting the API",
2605
+ "name": "dry-run",
2606
+ "allowNo": false,
2607
+ "type": "boolean"
1905
2608
  }
1906
2609
  },
1907
2610
  "hasDynamicHelp": false,
@@ -1932,7 +2635,7 @@
1932
2635
  "description": "Request revision after principal rejection (rework loop)",
1933
2636
  "flags": {
1934
2637
  "json": {
1935
- "description": "Output as JSON",
2638
+ "description": "Force JSON output (default when stdout is piped)",
1936
2639
  "name": "json",
1937
2640
  "allowNo": false,
1938
2641
  "type": "boolean"
@@ -1965,6 +2668,12 @@
1965
2668
  "hasDynamicHelp": false,
1966
2669
  "multiple": false,
1967
2670
  "type": "option"
2671
+ },
2672
+ "dry-run": {
2673
+ "description": "Show what would be sent without hitting the API",
2674
+ "name": "dry-run",
2675
+ "allowNo": false,
2676
+ "type": "boolean"
1968
2677
  }
1969
2678
  },
1970
2679
  "hasDynamicHelp": false,
@@ -1992,15 +2701,14 @@
1992
2701
  "required": true
1993
2702
  },
1994
2703
  "action": {
1995
- "description": "Transition action",
1996
- "name": "action",
1997
- "required": true
2704
+ "description": "Transition action (e.g. activate, cancel). Alternative: --action",
2705
+ "name": "action"
1998
2706
  }
1999
2707
  },
2000
- "description": "Transition mandate state (register, activate, cancel)",
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.",
2001
2709
  "flags": {
2002
2710
  "json": {
2003
- "description": "Output as JSON",
2711
+ "description": "Force JSON output (default when stdout is piped)",
2004
2712
  "name": "json",
2005
2713
  "allowNo": false,
2006
2714
  "type": "boolean"
@@ -2027,12 +2735,25 @@
2027
2735
  "multiple": false,
2028
2736
  "type": "option"
2029
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
+ },
2030
2745
  "reason": {
2031
2746
  "description": "Transition reason",
2032
2747
  "name": "reason",
2033
2748
  "hasDynamicHelp": false,
2034
2749
  "multiple": false,
2035
2750
  "type": "option"
2751
+ },
2752
+ "dry-run": {
2753
+ "description": "Show what would be sent without hitting the API",
2754
+ "name": "dry-run",
2755
+ "allowNo": false,
2756
+ "type": "boolean"
2036
2757
  }
2037
2758
  },
2038
2759
  "hasDynamicHelp": false,
@@ -2051,24 +2772,13 @@
2051
2772
  "transition.js"
2052
2773
  ]
2053
2774
  },
2054
- "receipt:get": {
2775
+ "webhook:create": {
2055
2776
  "aliases": [],
2056
- "args": {
2057
- "mandateId": {
2058
- "description": "Mandate ID",
2059
- "name": "mandateId",
2060
- "required": true
2061
- },
2062
- "receiptId": {
2063
- "description": "Receipt ID",
2064
- "name": "receiptId",
2065
- "required": true
2066
- }
2067
- },
2068
- "description": "Get receipt details",
2777
+ "args": {},
2778
+ "description": "Create a webhook subscription",
2069
2779
  "flags": {
2070
2780
  "json": {
2071
- "description": "Output as JSON",
2781
+ "description": "Force JSON output (default when stdout is piped)",
2072
2782
  "name": "json",
2073
2783
  "allowNo": false,
2074
2784
  "type": "boolean"
@@ -2094,11 +2804,33 @@
2094
2804
  "hasDynamicHelp": false,
2095
2805
  "multiple": false,
2096
2806
  "type": "option"
2807
+ },
2808
+ "url": {
2809
+ "description": "Webhook endpoint URL",
2810
+ "name": "url",
2811
+ "required": true,
2812
+ "hasDynamicHelp": false,
2813
+ "multiple": false,
2814
+ "type": "option"
2815
+ },
2816
+ "events": {
2817
+ "description": "Comma-separated event types (e.g., mandate.created,receipt.submitted)",
2818
+ "name": "events",
2819
+ "required": true,
2820
+ "hasDynamicHelp": false,
2821
+ "multiple": false,
2822
+ "type": "option"
2823
+ },
2824
+ "dry-run": {
2825
+ "description": "Show what would be sent without hitting the API",
2826
+ "name": "dry-run",
2827
+ "allowNo": false,
2828
+ "type": "boolean"
2097
2829
  }
2098
2830
  },
2099
2831
  "hasDynamicHelp": false,
2100
2832
  "hiddenAliases": [],
2101
- "id": "receipt:get",
2833
+ "id": "webhook:create",
2102
2834
  "pluginAlias": "@agledger/cli",
2103
2835
  "pluginName": "@agledger/cli",
2104
2836
  "pluginType": "core",
@@ -2108,23 +2840,23 @@
2108
2840
  "relativePath": [
2109
2841
  "dist",
2110
2842
  "commands",
2111
- "receipt",
2112
- "get.js"
2843
+ "webhook",
2844
+ "create.js"
2113
2845
  ]
2114
2846
  },
2115
- "receipt:list": {
2847
+ "webhook:delete": {
2116
2848
  "aliases": [],
2117
2849
  "args": {
2118
- "mandateId": {
2119
- "description": "Mandate ID",
2120
- "name": "mandateId",
2850
+ "id": {
2851
+ "description": "Webhook ID",
2852
+ "name": "id",
2121
2853
  "required": true
2122
2854
  }
2123
2855
  },
2124
- "description": "List receipts for a mandate",
2856
+ "description": "Delete a webhook subscription",
2125
2857
  "flags": {
2126
2858
  "json": {
2127
- "description": "Output as JSON",
2859
+ "description": "Force JSON output (default when stdout is piped)",
2128
2860
  "name": "json",
2129
2861
  "allowNo": false,
2130
2862
  "type": "boolean"
@@ -2151,16 +2883,16 @@
2151
2883
  "multiple": false,
2152
2884
  "type": "option"
2153
2885
  },
2154
- "all": {
2155
- "description": "Stream all pages as NDJSON",
2156
- "name": "all",
2886
+ "dry-run": {
2887
+ "description": "Show what would be deleted without hitting the API",
2888
+ "name": "dry-run",
2157
2889
  "allowNo": false,
2158
2890
  "type": "boolean"
2159
2891
  }
2160
2892
  },
2161
2893
  "hasDynamicHelp": false,
2162
2894
  "hiddenAliases": [],
2163
- "id": "receipt:list",
2895
+ "id": "webhook:delete",
2164
2896
  "pluginAlias": "@agledger/cli",
2165
2897
  "pluginName": "@agledger/cli",
2166
2898
  "pluginType": "core",
@@ -2170,23 +2902,17 @@
2170
2902
  "relativePath": [
2171
2903
  "dist",
2172
2904
  "commands",
2173
- "receipt",
2174
- "list.js"
2905
+ "webhook",
2906
+ "delete.js"
2175
2907
  ]
2176
- },
2177
- "receipt:submit": {
2178
- "aliases": [],
2179
- "args": {
2180
- "mandateId": {
2181
- "description": "Mandate ID",
2182
- "name": "mandateId",
2183
- "required": true
2184
- }
2185
- },
2186
- "description": "Submit a receipt (evidence of completion) for a mandate",
2908
+ },
2909
+ "webhook:list": {
2910
+ "aliases": [],
2911
+ "args": {},
2912
+ "description": "List registered webhooks, optionally filtered by exact URL",
2187
2913
  "flags": {
2188
2914
  "json": {
2189
- "description": "Output as JSON",
2915
+ "description": "Force JSON output (default when stdout is piped)",
2190
2916
  "name": "json",
2191
2917
  "allowNo": false,
2192
2918
  "type": "boolean"
@@ -2213,30 +2939,38 @@
2213
2939
  "multiple": false,
2214
2940
  "type": "option"
2215
2941
  },
2216
- "data": {
2217
- "description": "Evidence as JSON string",
2218
- "name": "data",
2942
+ "url": {
2943
+ "description": "Filter by exact webhook URL",
2944
+ "name": "url",
2219
2945
  "hasDynamicHelp": false,
2220
2946
  "multiple": false,
2221
2947
  "type": "option"
2222
2948
  },
2223
- "file": {
2224
- "description": "Read evidence from JSON file",
2225
- "name": "file",
2949
+ "limit": {
2950
+ "description": "Max results per page",
2951
+ "name": "limit",
2952
+ "default": 50,
2226
2953
  "hasDynamicHelp": false,
2227
2954
  "multiple": false,
2228
2955
  "type": "option"
2229
2956
  },
2230
- "dry-run": {
2231
- "description": "Show what would be sent without hitting the API",
2232
- "name": "dry-run",
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",
2233
2967
  "allowNo": false,
2234
2968
  "type": "boolean"
2235
2969
  }
2236
2970
  },
2237
2971
  "hasDynamicHelp": false,
2238
2972
  "hiddenAliases": [],
2239
- "id": "receipt:submit",
2973
+ "id": "webhook:list",
2240
2974
  "pluginAlias": "@agledger/cli",
2241
2975
  "pluginName": "@agledger/cli",
2242
2976
  "pluginType": "core",
@@ -2246,8 +2980,8 @@
2246
2980
  "relativePath": [
2247
2981
  "dist",
2248
2982
  "commands",
2249
- "receipt",
2250
- "submit.js"
2983
+ "webhook",
2984
+ "list.js"
2251
2985
  ]
2252
2986
  },
2253
2987
  "schema:blank-template": {
@@ -2256,7 +2990,7 @@
2256
2990
  "description": "Get a blank template for creating a custom contract type from scratch",
2257
2991
  "flags": {
2258
2992
  "json": {
2259
- "description": "Output as JSON",
2993
+ "description": "Force JSON output (default when stdout is piped)",
2260
2994
  "name": "json",
2261
2995
  "allowNo": false,
2262
2996
  "type": "boolean"
@@ -2320,7 +3054,7 @@
2320
3054
  "description": "Check backward/forward compatibility of schema changes",
2321
3055
  "flags": {
2322
3056
  "json": {
2323
- "description": "Output as JSON",
3057
+ "description": "Force JSON output (default when stdout is piped)",
2324
3058
  "name": "json",
2325
3059
  "allowNo": false,
2326
3060
  "type": "boolean"
@@ -2392,7 +3126,7 @@
2392
3126
  "description": "Deprecate a schema version",
2393
3127
  "flags": {
2394
3128
  "json": {
2395
- "description": "Output as JSON",
3129
+ "description": "Force JSON output (default when stdout is piped)",
2396
3130
  "name": "json",
2397
3131
  "allowNo": false,
2398
3132
  "type": "boolean"
@@ -2462,7 +3196,7 @@
2462
3196
  "description": "Diff two versions of a contract type schema",
2463
3197
  "flags": {
2464
3198
  "json": {
2465
- "description": "Output as JSON",
3199
+ "description": "Force JSON output (default when stdout is piped)",
2466
3200
  "name": "json",
2467
3201
  "allowNo": false,
2468
3202
  "type": "boolean"
@@ -2534,7 +3268,7 @@
2534
3268
  "description": "Export a contract type schema bundle to a file",
2535
3269
  "flags": {
2536
3270
  "json": {
2537
- "description": "Output as JSON",
3271
+ "description": "Force JSON output (default when stdout is piped)",
2538
3272
  "name": "json",
2539
3273
  "allowNo": false,
2540
3274
  "type": "boolean"
@@ -2606,7 +3340,7 @@
2606
3340
  "description": "Get a specific version of a contract type schema",
2607
3341
  "flags": {
2608
3342
  "json": {
2609
- "description": "Output as JSON",
3343
+ "description": "Force JSON output (default when stdout is piped)",
2610
3344
  "name": "json",
2611
3345
  "allowNo": false,
2612
3346
  "type": "boolean"
@@ -2670,7 +3404,7 @@
2670
3404
  "description": "Get the full JSON Schema for a contract type",
2671
3405
  "flags": {
2672
3406
  "json": {
2673
- "description": "Output as JSON",
3407
+ "description": "Force JSON output (default when stdout is piped)",
2674
3408
  "name": "json",
2675
3409
  "allowNo": false,
2676
3410
  "type": "boolean"
@@ -2726,7 +3460,7 @@
2726
3460
  "description": "Import a schema bundle from a file",
2727
3461
  "flags": {
2728
3462
  "json": {
2729
- "description": "Output as JSON",
3463
+ "description": "Force JSON output (default when stdout is piped)",
2730
3464
  "name": "json",
2731
3465
  "allowNo": false,
2732
3466
  "type": "boolean"
@@ -2754,7 +3488,7 @@
2754
3488
  "type": "option"
2755
3489
  },
2756
3490
  "dry-run": {
2757
- "description": "Preview what would be imported without persisting",
3491
+ "description": "Preview what would be imported without persisting (server-side dry-run)",
2758
3492
  "name": "dry-run",
2759
3493
  "allowNo": false,
2760
3494
  "type": "boolean"
@@ -2782,7 +3516,7 @@
2782
3516
  "description": "List available contract type schemas",
2783
3517
  "flags": {
2784
3518
  "json": {
2785
- "description": "Output as JSON",
3519
+ "description": "Force JSON output (default when stdout is piped)",
2786
3520
  "name": "json",
2787
3521
  "allowNo": false,
2788
3522
  "type": "boolean"
@@ -2808,6 +3542,27 @@
2808
3542
  "hasDynamicHelp": false,
2809
3543
  "multiple": false,
2810
3544
  "type": "option"
3545
+ },
3546
+ "limit": {
3547
+ "description": "Max results per page",
3548
+ "name": "limit",
3549
+ "default": 50,
3550
+ "hasDynamicHelp": false,
3551
+ "multiple": false,
3552
+ "type": "option"
3553
+ },
3554
+ "cursor": {
3555
+ "description": "Pagination cursor",
3556
+ "name": "cursor",
3557
+ "hasDynamicHelp": false,
3558
+ "multiple": false,
3559
+ "type": "option"
3560
+ },
3561
+ "all": {
3562
+ "description": "Stream all pages as NDJSON",
3563
+ "name": "all",
3564
+ "allowNo": false,
3565
+ "type": "boolean"
2811
3566
  }
2812
3567
  },
2813
3568
  "hasDynamicHelp": false,
@@ -2832,7 +3587,7 @@
2832
3587
  "description": "Get the meta-schema for custom schema authoring",
2833
3588
  "flags": {
2834
3589
  "json": {
2835
- "description": "Output as JSON",
3590
+ "description": "Force JSON output (default when stdout is piped)",
2836
3591
  "name": "json",
2837
3592
  "allowNo": false,
2838
3593
  "type": "boolean"
@@ -2896,7 +3651,7 @@
2896
3651
  "description": "Preview a schema before registration",
2897
3652
  "flags": {
2898
3653
  "json": {
2899
- "description": "Output as JSON",
3654
+ "description": "Force JSON output (default when stdout is piped)",
2900
3655
  "name": "json",
2901
3656
  "allowNo": false,
2902
3657
  "type": "boolean"
@@ -2952,7 +3707,7 @@
2952
3707
  "description": "Register a new custom contract type schema",
2953
3708
  "flags": {
2954
3709
  "json": {
2955
- "description": "Output as JSON",
3710
+ "description": "Force JSON output (default when stdout is piped)",
2956
3711
  "name": "json",
2957
3712
  "allowNo": false,
2958
3713
  "type": "boolean"
@@ -3014,7 +3769,7 @@
3014
3769
  "description": "Get verification rules for a contract type",
3015
3770
  "flags": {
3016
3771
  "json": {
3017
- "description": "Output as JSON",
3772
+ "description": "Force JSON output (default when stdout is piped)",
3018
3773
  "name": "json",
3019
3774
  "allowNo": false,
3020
3775
  "type": "boolean"
@@ -3070,7 +3825,7 @@
3070
3825
  "description": "Get a starter template from an existing contract type",
3071
3826
  "flags": {
3072
3827
  "json": {
3073
- "description": "Output as JSON",
3828
+ "description": "Force JSON output (default when stdout is piped)",
3074
3829
  "name": "json",
3075
3830
  "allowNo": false,
3076
3831
  "type": "boolean"
@@ -3139,7 +3894,7 @@
3139
3894
  "description": "Validate receipt evidence against a contract type schema",
3140
3895
  "flags": {
3141
3896
  "json": {
3142
- "description": "Output as JSON",
3897
+ "description": "Force JSON output (default when stdout is piped)",
3143
3898
  "name": "json",
3144
3899
  "allowNo": false,
3145
3900
  "type": "boolean"
@@ -3195,7 +3950,7 @@
3195
3950
  "description": "List all versions of a contract type schema",
3196
3951
  "flags": {
3197
3952
  "json": {
3198
- "description": "Output as JSON",
3953
+ "description": "Force JSON output (default when stdout is piped)",
3199
3954
  "name": "json",
3200
3955
  "allowNo": false,
3201
3956
  "type": "boolean"
@@ -3221,6 +3976,27 @@
3221
3976
  "hasDynamicHelp": false,
3222
3977
  "multiple": false,
3223
3978
  "type": "option"
3979
+ },
3980
+ "limit": {
3981
+ "description": "Max results per page",
3982
+ "name": "limit",
3983
+ "default": 50,
3984
+ "hasDynamicHelp": false,
3985
+ "multiple": false,
3986
+ "type": "option"
3987
+ },
3988
+ "cursor": {
3989
+ "description": "Pagination cursor",
3990
+ "name": "cursor",
3991
+ "hasDynamicHelp": false,
3992
+ "multiple": false,
3993
+ "type": "option"
3994
+ },
3995
+ "all": {
3996
+ "description": "Stream all pages as NDJSON",
3997
+ "name": "all",
3998
+ "allowNo": false,
3999
+ "type": "boolean"
3224
4000
  }
3225
4001
  },
3226
4002
  "hasDynamicHelp": false,
@@ -3260,7 +4036,7 @@
3260
4036
  "description": "Render a verdict on a notarized agreement (accept or reject delivery)",
3261
4037
  "flags": {
3262
4038
  "json": {
3263
- "description": "Output as JSON",
4039
+ "description": "Force JSON output (default when stdout is piped)",
3264
4040
  "name": "json",
3265
4041
  "allowNo": false,
3266
4042
  "type": "boolean"
@@ -3293,72 +4069,6 @@
3293
4069
  "hasDynamicHelp": false,
3294
4070
  "multiple": false,
3295
4071
  "type": "option"
3296
- }
3297
- },
3298
- "hasDynamicHelp": false,
3299
- "hiddenAliases": [],
3300
- "id": "verdict:render",
3301
- "pluginAlias": "@agledger/cli",
3302
- "pluginName": "@agledger/cli",
3303
- "pluginType": "core",
3304
- "strict": true,
3305
- "enableJsonFlag": false,
3306
- "isESM": true,
3307
- "relativePath": [
3308
- "dist",
3309
- "commands",
3310
- "verdict",
3311
- "render.js"
3312
- ]
3313
- },
3314
- "webhook:create": {
3315
- "aliases": [],
3316
- "args": {},
3317
- "description": "Create a webhook subscription",
3318
- "flags": {
3319
- "json": {
3320
- "description": "Output as JSON",
3321
- "name": "json",
3322
- "allowNo": false,
3323
- "type": "boolean"
3324
- },
3325
- "quiet": {
3326
- "description": "Suppress output (exit code only)",
3327
- "name": "quiet",
3328
- "allowNo": false,
3329
- "type": "boolean"
3330
- },
3331
- "api-key": {
3332
- "description": "AGLedger API key",
3333
- "env": "AGLEDGER_API_KEY",
3334
- "name": "api-key",
3335
- "hasDynamicHelp": false,
3336
- "multiple": false,
3337
- "type": "option"
3338
- },
3339
- "api-url": {
3340
- "description": "AGLedger API base URL",
3341
- "env": "AGLEDGER_API_URL",
3342
- "name": "api-url",
3343
- "hasDynamicHelp": false,
3344
- "multiple": false,
3345
- "type": "option"
3346
- },
3347
- "url": {
3348
- "description": "Webhook endpoint URL",
3349
- "name": "url",
3350
- "required": true,
3351
- "hasDynamicHelp": false,
3352
- "multiple": false,
3353
- "type": "option"
3354
- },
3355
- "events": {
3356
- "description": "Comma-separated event types (e.g., mandate.created,receipt.submitted)",
3357
- "name": "events",
3358
- "required": true,
3359
- "hasDynamicHelp": false,
3360
- "multiple": false,
3361
- "type": "option"
3362
4072
  },
3363
4073
  "dry-run": {
3364
4074
  "description": "Show what would be sent without hitting the API",
@@ -3369,120 +4079,7 @@
3369
4079
  },
3370
4080
  "hasDynamicHelp": false,
3371
4081
  "hiddenAliases": [],
3372
- "id": "webhook:create",
3373
- "pluginAlias": "@agledger/cli",
3374
- "pluginName": "@agledger/cli",
3375
- "pluginType": "core",
3376
- "strict": true,
3377
- "enableJsonFlag": false,
3378
- "isESM": true,
3379
- "relativePath": [
3380
- "dist",
3381
- "commands",
3382
- "webhook",
3383
- "create.js"
3384
- ]
3385
- },
3386
- "webhook:delete": {
3387
- "aliases": [],
3388
- "args": {
3389
- "id": {
3390
- "description": "Webhook ID",
3391
- "name": "id",
3392
- "required": true
3393
- }
3394
- },
3395
- "description": "Delete a webhook subscription",
3396
- "flags": {
3397
- "json": {
3398
- "description": "Output as JSON",
3399
- "name": "json",
3400
- "allowNo": false,
3401
- "type": "boolean"
3402
- },
3403
- "quiet": {
3404
- "description": "Suppress output (exit code only)",
3405
- "name": "quiet",
3406
- "allowNo": false,
3407
- "type": "boolean"
3408
- },
3409
- "api-key": {
3410
- "description": "AGLedger API key",
3411
- "env": "AGLEDGER_API_KEY",
3412
- "name": "api-key",
3413
- "hasDynamicHelp": false,
3414
- "multiple": false,
3415
- "type": "option"
3416
- },
3417
- "api-url": {
3418
- "description": "AGLedger API base URL",
3419
- "env": "AGLEDGER_API_URL",
3420
- "name": "api-url",
3421
- "hasDynamicHelp": false,
3422
- "multiple": false,
3423
- "type": "option"
3424
- }
3425
- },
3426
- "hasDynamicHelp": false,
3427
- "hiddenAliases": [],
3428
- "id": "webhook:delete",
3429
- "pluginAlias": "@agledger/cli",
3430
- "pluginName": "@agledger/cli",
3431
- "pluginType": "core",
3432
- "strict": true,
3433
- "enableJsonFlag": false,
3434
- "isESM": true,
3435
- "relativePath": [
3436
- "dist",
3437
- "commands",
3438
- "webhook",
3439
- "delete.js"
3440
- ]
3441
- },
3442
- "webhook:list": {
3443
- "aliases": [],
3444
- "args": {},
3445
- "description": "List registered webhooks, optionally filtered by exact URL",
3446
- "flags": {
3447
- "json": {
3448
- "description": "Output as JSON",
3449
- "name": "json",
3450
- "allowNo": false,
3451
- "type": "boolean"
3452
- },
3453
- "quiet": {
3454
- "description": "Suppress output (exit code only)",
3455
- "name": "quiet",
3456
- "allowNo": false,
3457
- "type": "boolean"
3458
- },
3459
- "api-key": {
3460
- "description": "AGLedger API key",
3461
- "env": "AGLEDGER_API_KEY",
3462
- "name": "api-key",
3463
- "hasDynamicHelp": false,
3464
- "multiple": false,
3465
- "type": "option"
3466
- },
3467
- "api-url": {
3468
- "description": "AGLedger API base URL",
3469
- "env": "AGLEDGER_API_URL",
3470
- "name": "api-url",
3471
- "hasDynamicHelp": false,
3472
- "multiple": false,
3473
- "type": "option"
3474
- },
3475
- "url": {
3476
- "description": "Filter by exact webhook URL",
3477
- "name": "url",
3478
- "hasDynamicHelp": false,
3479
- "multiple": false,
3480
- "type": "option"
3481
- }
3482
- },
3483
- "hasDynamicHelp": false,
3484
- "hiddenAliases": [],
3485
- "id": "webhook:list",
4082
+ "id": "verdict:render",
3486
4083
  "pluginAlias": "@agledger/cli",
3487
4084
  "pluginName": "@agledger/cli",
3488
4085
  "pluginType": "core",
@@ -3492,10 +4089,10 @@
3492
4089
  "relativePath": [
3493
4090
  "dist",
3494
4091
  "commands",
3495
- "webhook",
3496
- "list.js"
4092
+ "verdict",
4093
+ "render.js"
3497
4094
  ]
3498
4095
  }
3499
4096
  },
3500
- "version": "0.4.1"
4097
+ "version": "0.5.2"
3501
4098
  }