@kana-ai/edgar-contracts 0.1.2 → 0.1.4

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.
@@ -20,6 +20,11 @@
20
20
  "hooks": { "type": "array", "items": { "$ref": "#/$defs/Hook" } },
21
21
  "service": { "$ref": "#/$defs/Service" },
22
22
  "git_credential": { "$ref": "#/$defs/GitCredential" },
23
+ "setup": { "$ref": "#/$defs/Setup" },
24
+ "publish_commits": { "$ref": "#/$defs/PublishCommits" },
25
+ "identity": { "$ref": "#/$defs/Identity" },
26
+ "read_link": { "$ref": "#/$defs/ReadLink" },
27
+ "chat_files": { "$ref": "#/$defs/ChatFiles" },
23
28
  "executables": { "$ref": "#/$defs/Executables" }
24
29
  },
25
30
  "required": [
@@ -99,6 +104,10 @@
99
104
  "input_schema": { "type": "string" },
100
105
  "output_schema": { "type": "string" },
101
106
  "side_effect": { "type": "boolean" },
107
+ "publishes": {
108
+ "type": "boolean",
109
+ "description": "Its input is text that people read, such as a comment, a pull request or a message; EDGAR hides email addresses in it."
110
+ },
102
111
  "compensate": { "$ref": "#/$defs/Name" },
103
112
  "lookup": { "$ref": "#/$defs/Name" },
104
113
  "undo": { "const": "none" },
@@ -137,7 +146,11 @@
137
146
  "route": { "$ref": "#/$defs/Name" },
138
147
  "signature": { "type": "string", "enum": ["hmac-sha256", "ed25519", "none"] },
139
148
  "secret": { "oneOf": [{ "$ref": "#/$defs/SecretName" }, { "type": "null" }] },
140
- "delivery_id_header": { "type": ["string", "null"] }
149
+ "delivery_id_header": { "type": ["string", "null"] },
150
+ "signature_header": {
151
+ "description": "The header that carries the signature of a delivery, as `<hex>` or `sha256=<hex>`; a tracker's webhook needs it.",
152
+ "type": ["string", "null"]
153
+ }
141
154
  },
142
155
  "required": ["route", "signature", "secret", "delivery_id_header"],
143
156
  "additionalProperties": false
@@ -149,6 +162,7 @@
149
162
  "list_cards",
150
163
  "card",
151
164
  "comments",
165
+ "mentions",
152
166
  "attachments",
153
167
  "comment",
154
168
  "move",
@@ -203,7 +217,35 @@
203
217
  },
204
218
  "GitCredential": {
205
219
  "title": "GitCredential",
206
- "description": "What runs `tool.call` of `git_credential`, which answers `{ token, expires_at_ms }` for the engine's git to send to a host of `[sandbox] git_tokens` that names the extension; the engine asks again before `expires_at_ms`, and keeps the token in memory only.",
220
+ "description": "What runs `tool.call` of `git_credential` with `{ host, repository, access }`, the one repository and the read or write access of a git step, which answers `{ token, expires_at_ms }` of a token that covers no more, for the engine's git to send to a host of `[sandbox] git_tokens` that names the extension; the engine asks again before `expires_at_ms`, and keeps the token in memory only.",
221
+ "type": "object",
222
+ "properties": {
223
+ "secrets": { "type": "array", "items": { "$ref": "#/$defs/SecretName" } },
224
+ "capabilities": { "type": "array", "items": { "$ref": "#/$defs/Capability" } }
225
+ },
226
+ "required": ["secrets", "capabilities"],
227
+ "additionalProperties": false
228
+ },
229
+ "Setup": {
230
+ "title": "Setup",
231
+ "description": "What runs `tool.call` of `setup`, the extension's live setup probes, when `edgar check --live`, the console or the MCP tool `setup` asks. The engine calls it with `{ services }`, the project's services, and takes a list of `{ label, verdict }`, each verdict `{ kind: \"pass\" }`, `{ kind: \"fail\", reason, fix }` or `{ kind: \"skipped\", why }`, with every secret hidden. A probe only reads: it reaches no engine port, and its grant holds network hosts only.",
232
+ "type": "object",
233
+ "properties": {
234
+ "secrets": { "type": "array", "items": { "$ref": "#/$defs/SecretName" } },
235
+ "capabilities": {
236
+ "type": "array",
237
+ "items": {
238
+ "type": "string",
239
+ "pattern": "^network:(\\*\\.)?[a-z0-9]([a-z0-9.-]*[a-z0-9])?$"
240
+ }
241
+ }
242
+ },
243
+ "required": ["secrets", "capabilities"],
244
+ "additionalProperties": false
245
+ },
246
+ "PublishCommits": {
247
+ "title": "PublishCommits",
248
+ "description": "What runs `tool.call` of `publish_commits` for a push on a host of `[sandbox] signed_commits` that names the extension. The engine calls it with `{ host, repository, branch, from, base, commits }`: the commits of the push, oldest first, each `{ id, tree, message, changes }` with each file it writes (`{ kind: \"write\", path, mode, blob, content }`, the bytes in base64) or deletes (`{ kind: \"delete\", path }`). The extension makes each commit on the one before, `base` first, so the host signs it, then moves `branch` from `from`, or makes it when `from` is `null`, without force. It answers `{ commits }`, the id of each commit it made in the same order; the engine fetches them and refuses any whose tree differs from its planned commit's.",
207
249
  "type": "object",
208
250
  "properties": {
209
251
  "secrets": { "type": "array", "items": { "$ref": "#/$defs/SecretName" } },
@@ -212,6 +254,63 @@
212
254
  "required": ["secrets", "capabilities"],
213
255
  "additionalProperties": false
214
256
  },
257
+ "Identity": {
258
+ "title": "Identity",
259
+ "description": "What runs `tool.call` of `identity`, which says who sends a request by the host of `[api] public_url` for a project whose `[api] identity` names the extension. The engine calls it with `{ headers }`, holding only the listed request headers that the request carries, and takes `{ email, expires_at_ms }`, which it keeps in memory until `expires_at_ms`, or a failure, which refuses the request. `authorization`, `cookie` and `host` are never handed over.",
260
+ "type": "object",
261
+ "properties": {
262
+ "headers": {
263
+ "type": "array",
264
+ "minItems": 1,
265
+ "items": {
266
+ "type": "string",
267
+ "pattern": "^[a-z0-9-]{1,64}$",
268
+ "not": { "enum": ["authorization", "cookie", "host"] }
269
+ }
270
+ },
271
+ "secrets": { "type": "array", "items": { "$ref": "#/$defs/SecretName" } },
272
+ "capabilities": { "type": "array", "items": { "$ref": "#/$defs/Capability" } }
273
+ },
274
+ "required": ["headers", "secrets", "capabilities"],
275
+ "additionalProperties": false
276
+ },
277
+ "ReadLink": {
278
+ "title": "ReadLink",
279
+ "description": "What runs `tool.call` of `read_link`, which reads a link that a card or its comments hold. When a run starts, the engine calls it with `{ url }` for each `https` link whose host is one of `hosts` (`*.<domain>` names each host under the domain), and takes `{ kind: \"read\", title, text }`, `{ kind: \"not_mine\" }` for a link it does not read, or a failure. The engine writes what it reads in the run's inbox, cut to its caps, with secrets and emails hidden, and never follows a link inside that text.",
280
+ "type": "object",
281
+ "properties": {
282
+ "hosts": {
283
+ "type": "array",
284
+ "minItems": 1,
285
+ "items": {
286
+ "type": "string",
287
+ "pattern": "^(\\*\\.)?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)+$"
288
+ }
289
+ },
290
+ "secrets": { "type": "array", "items": { "$ref": "#/$defs/SecretName" } },
291
+ "capabilities": { "type": "array", "items": { "$ref": "#/$defs/Capability" } }
292
+ },
293
+ "required": ["hosts", "secrets", "capabilities"],
294
+ "additionalProperties": false
295
+ },
296
+ "ChatFiles": {
297
+ "title": "ChatFiles",
298
+ "description": "The files a person shares in a chat with the service. When a chat lists a file whose url is `https` on one of `hosts`, each named in full, the engine fetches it into the run's inbox with the value of `secret` as its bearer token, under the same caps as a card's attachments and with secrets masked in a text file. A file on any other host is not fetched, and no other fetch carries the token.",
299
+ "type": "object",
300
+ "properties": {
301
+ "hosts": {
302
+ "type": "array",
303
+ "minItems": 1,
304
+ "items": {
305
+ "type": "string",
306
+ "pattern": "^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)+$"
307
+ }
308
+ },
309
+ "secret": { "$ref": "#/$defs/SecretName" }
310
+ },
311
+ "required": ["hosts", "secret"],
312
+ "additionalProperties": false
313
+ },
215
314
  "Program": {
216
315
  "title": "Program",
217
316
  "description": "A program by the name that `PATH` finds it under, never a path.",
@@ -55,6 +55,7 @@
55
55
  "tracker.list_cards",
56
56
  "tracker.card",
57
57
  "tracker.comments",
58
+ "tracker.mentions",
58
59
  "tracker.attachments",
59
60
  "tracker.comment",
60
61
  "tracker.move",
@@ -65,6 +66,7 @@
65
66
  "tracker.person",
66
67
  "complete",
67
68
  "runs.read",
69
+ "pictures.publish",
68
70
  "service.request"
69
71
  ]
70
72
  },
@@ -294,6 +296,18 @@
294
296
  "required": ["cancelled"],
295
297
  "additionalProperties": false
296
298
  },
299
+ "Priority": {
300
+ "title": "Priority",
301
+ "description": "A card's priority, as a person sets it in the tracker. A queued run of an urgent card starts first, then one of a high card, then the others, each by age.",
302
+ "type": "string",
303
+ "enum": ["urgent", "high"]
304
+ },
305
+ "Trust": {
306
+ "title": "Trust",
307
+ "description": "Whether the person who wrote a card or a comment is on the team, as the tracker knows it, such as a collaborator of a repository or a member of a workspace.",
308
+ "type": "string",
309
+ "enum": ["team", "outside"]
310
+ },
297
311
  "Encoding": {
298
312
  "title": "Encoding",
299
313
  "type": "string",
@@ -445,6 +459,39 @@
445
459
  "required": ["applied"],
446
460
  "additionalProperties": false
447
461
  },
462
+ "PicturesPublishParams": {
463
+ "title": "PicturesPublishParams",
464
+ "description": "`pictures.publish`: the PNG at `path` in the sandbox, at most 2 MB.",
465
+ "type": "object",
466
+ "properties": {
467
+ "operation_id": {
468
+ "$ref": "#/$defs/OperationId"
469
+ },
470
+ "path": {
471
+ "type": "string",
472
+ "minLength": 1
473
+ }
474
+ },
475
+ "required": ["operation_id", "path"],
476
+ "additionalProperties": false
477
+ },
478
+ "PicturesPublishResult": {
479
+ "title": "PicturesPublishResult",
480
+ "description": "The picture's content id, and the stable address that shows it.",
481
+ "type": "object",
482
+ "properties": {
483
+ "id": {
484
+ "type": "string",
485
+ "pattern": "^[0-9a-f]{32}$"
486
+ },
487
+ "url": {
488
+ "type": "string",
489
+ "minLength": 1
490
+ }
491
+ },
492
+ "required": ["id", "url"],
493
+ "additionalProperties": false
494
+ },
448
495
  "RunsReadParams": {
449
496
  "title": "RunsReadParams",
450
497
  "type": "object",
@@ -495,6 +542,16 @@
495
542
  "required": ["kind", "key", "outcome", "by"],
496
543
  "additionalProperties": false
497
544
  },
545
+ {
546
+ "description": "Whether the person `by` may make an operator's moves, answered as a move would be: refused with the reason when not.",
547
+ "type": "object",
548
+ "properties": {
549
+ "kind": { "const": "moves.allowed" },
550
+ "by": { "type": "string", "minLength": 1 }
551
+ },
552
+ "required": ["kind", "by"],
553
+ "additionalProperties": false
554
+ },
498
555
  {
499
556
  "type": "object",
500
557
  "properties": {
@@ -528,7 +585,7 @@
528
585
  "additionalProperties": false
529
586
  },
530
587
  {
531
- "description": "What the person `by` wrote in the service's own place, such as a thread, about the card of `run`, or about `card` when the place names a card and has no run. The engine writes it on the card, and the next read of the card's comments takes it as that person's comment. With `origin`, the run that the comment starts names that place as `relayed`.",
588
+ "description": "What the person `by` wrote in the service's own place, such as a thread, about the card of `run`, or about `card` when the place names a card and has no run. The engine writes it on the card, and the next read of the card's comments takes it as that person's comment, of `trust`: whether they are on the team, as the service knows it, and `outside` when it does not say. With `origin`, the run that the comment starts names that place as `relayed`.",
532
589
  "type": "object",
533
590
  "properties": {
534
591
  "kind": { "const": "cards.reply" },
@@ -536,6 +593,7 @@
536
593
  "card": { "type": "string", "minLength": 1 },
537
594
  "text": { "type": "string", "minLength": 1 },
538
595
  "by": { "type": "string", "minLength": 1 },
596
+ "trust": { "$ref": "#/$defs/Trust", "default": "outside" },
539
597
  "origin": { "$ref": "#/$defs/Origin" }
540
598
  },
541
599
  "required": ["kind", "text", "by"],
@@ -546,20 +604,82 @@
546
604
  "additionalProperties": false
547
605
  },
548
606
  {
549
- "description": "What the person `by`, an id with no space such as a Slack user id, wrote in the service's own place `origin` with no card. The engine starts the workflow `chat`, which answers a question there and opens `card` when the words ask for work.",
607
+ "description": "What the person `by`, an id with no space such as a Slack user id, wrote in the service's own place `origin` with no card, and the `files` they shared with it, which the engine fetches into the run's inbox as the extension's `chat_files` allows. The engine starts the workflow `chat`, which answers a question there and opens `card` when the words ask for work.",
550
608
  "type": "object",
551
609
  "properties": {
552
610
  "kind": { "const": "runs.chat" },
553
611
  "text": { "type": "string", "minLength": 1 },
554
612
  "by": { "type": "string", "pattern": "^\\S+$" },
555
613
  "origin": { "$ref": "#/$defs/Origin" },
556
- "card": { "$ref": "#/$defs/CardSpec" }
614
+ "card": { "$ref": "#/$defs/CardSpec" },
615
+ "files": { "type": "array", "items": { "$ref": "#/$defs/Attachment" } }
557
616
  },
558
617
  "required": ["kind", "text", "by", "origin", "card"],
559
618
  "additionalProperties": false
619
+ },
620
+ {
621
+ "description": "Stores `payload`, what the service's own platform pushed to it, in the engine's inbox under `delivery`, the platform's id of it, before the service acknowledges it to the platform. The answer is an `InboxReceived`.",
622
+ "type": "object",
623
+ "properties": {
624
+ "kind": { "const": "inbox.receive" },
625
+ "delivery": { "type": "string", "minLength": 1 },
626
+ "payload": { "type": "string" }
627
+ },
628
+ "required": ["kind", "delivery", "payload"],
629
+ "additionalProperties": false
630
+ },
631
+ {
632
+ "description": "The deliveries that the service stored in the inbox and has not handled, oldest first and at most 100; never a delivery of the extension's webhooks, which the tracker sweep handles. The answer is a `PendingDeliveries`.",
633
+ "type": "object",
634
+ "properties": {
635
+ "kind": { "const": "inbox.pending" }
636
+ },
637
+ "required": ["kind"],
638
+ "additionalProperties": false
639
+ },
640
+ {
641
+ "description": "The service handled the delivery `delivery` that it stored, so `inbox.pending` no longer hands it back. The answer is a `MoveResult`.",
642
+ "type": "object",
643
+ "properties": {
644
+ "kind": { "const": "inbox.handled" },
645
+ "delivery": { "type": "string", "minLength": 1 }
646
+ },
647
+ "required": ["kind", "delivery"],
648
+ "additionalProperties": false
560
649
  }
561
650
  ]
562
651
  },
652
+ "InboxReceived": {
653
+ "title": "InboxReceived",
654
+ "description": "The answer to `inbox.receive`: `stored` is false when the inbox held the delivery already, so the service handles each delivery once.",
655
+ "type": "object",
656
+ "properties": {
657
+ "stored": { "type": "boolean" }
658
+ },
659
+ "required": ["stored"],
660
+ "additionalProperties": false
661
+ },
662
+ "PendingDeliveries": {
663
+ "title": "PendingDeliveries",
664
+ "description": "The answer to `inbox.pending`, oldest first.",
665
+ "type": "object",
666
+ "properties": {
667
+ "deliveries": {
668
+ "type": "array",
669
+ "items": {
670
+ "type": "object",
671
+ "properties": {
672
+ "delivery": { "type": "string", "minLength": 1 },
673
+ "payload": { "type": "string" }
674
+ },
675
+ "required": ["delivery", "payload"],
676
+ "additionalProperties": false
677
+ }
678
+ }
679
+ },
680
+ "required": ["deliveries"],
681
+ "additionalProperties": false
682
+ },
563
683
  "MoveResult": {
564
684
  "title": "MoveResult",
565
685
  "description": "The answer to a move of a service: `applied` is false, with the reason, when the engine refused it.",
@@ -664,6 +784,18 @@
664
784
  "type": "string",
665
785
  "enum": ["never", "always"]
666
786
  },
787
+ "InvalidBlock": {
788
+ "title": "InvalidBlock",
789
+ "description": "A card's `edgar:v0` block that does not read, as the tracker says why, so intake refuses the card with that reason instead of working it as plain text.",
790
+ "type": "object",
791
+ "properties": {
792
+ "invalid": {
793
+ "type": "string"
794
+ }
795
+ },
796
+ "required": ["invalid"],
797
+ "additionalProperties": false
798
+ },
667
799
  "CardBlock": {
668
800
  "title": "CardBlock",
669
801
  "description": "The `edgar:v0` block of a card.",
@@ -714,6 +846,10 @@
714
846
  },
715
847
  "origin": {
716
848
  "$ref": "#/$defs/Origin"
849
+ },
850
+ "trust": {
851
+ "description": "Set by a service that opens the card for a person: `outside` when that person is outside the team, which makes the card's trust `outside` whoever the tracker says wrote it.",
852
+ "$ref": "#/$defs/Trust"
717
853
  }
718
854
  },
719
855
  "required": ["kind"],
@@ -750,6 +886,9 @@
750
886
  {
751
887
  "$ref": "#/$defs/CardBlock"
752
888
  },
889
+ {
890
+ "$ref": "#/$defs/InvalidBlock"
891
+ },
753
892
  {
754
893
  "type": "null"
755
894
  }
@@ -758,6 +897,35 @@
758
897
  "assignee": {
759
898
  "description": "Who the card is assigned to, as the tracker names them; absent or null when it is not assigned.",
760
899
  "type": ["string", "null"]
900
+ },
901
+ "taken_by": {
902
+ "description": "The person the card is assigned to, as the tracker names them; absent or null when no person holds it, such as a card of nobody or of EDGAR's own user.",
903
+ "type": ["string", "null"]
904
+ },
905
+ "taken_by_id": {
906
+ "description": "A stable id of the person in `taken_by`, which only that person's own account can change, such as their email; the engine finds the person's keys by it, never by a name.",
907
+ "type": ["string", "null"]
908
+ },
909
+ "priority": {
910
+ "description": "The priority a person set on the card in the tracker; absent or null when it is neither urgent nor high. EDGAR never sets it.",
911
+ "oneOf": [
912
+ {
913
+ "$ref": "#/$defs/Priority"
914
+ },
915
+ {
916
+ "type": "null"
917
+ }
918
+ ]
919
+ },
920
+ "trust": {
921
+ "description": "Whether the person who wrote the card is on the team; a tracker that does not say is read as outside.",
922
+ "$ref": "#/$defs/Trust",
923
+ "default": "outside"
924
+ },
925
+ "written_by_id": {
926
+ "description": "A stable id of the person who wrote the card, which only their own account can change, such as a login or an email: a person of `[people]` with this id in the tracker is on the team, whatever `trust` says.",
927
+ "type": "string",
928
+ "minLength": 1
761
929
  }
762
930
  },
763
931
  "required": ["id", "title", "description", "column", "labels", "url", "block"],
@@ -812,6 +980,26 @@
812
980
  "at": {
813
981
  "type": "string",
814
982
  "format": "date-time"
983
+ },
984
+ "edited_at": {
985
+ "type": "string",
986
+ "format": "date-time",
987
+ "description": "When the comment was last edited or deleted, for a comment that was."
988
+ },
989
+ "deleted": {
990
+ "type": "boolean",
991
+ "default": false,
992
+ "description": "True when the comment was deleted, for a tracker that reports deletes."
993
+ },
994
+ "trust": {
995
+ "description": "Whether `author` is on the team; a tracker that does not say is read as outside.",
996
+ "$ref": "#/$defs/Trust",
997
+ "default": "outside"
998
+ },
999
+ "author_id": {
1000
+ "description": "A stable id of `author`, as `written_by_id` of a card is.",
1001
+ "type": "string",
1002
+ "minLength": 1
815
1003
  }
816
1004
  },
817
1005
  "required": ["id", "author", "text", "at"],
@@ -903,6 +1091,33 @@
903
1091
  "required": ["id"],
904
1092
  "additionalProperties": false
905
1093
  },
1094
+ "MentionsInput": {
1095
+ "title": "MentionsInput",
1096
+ "description": "The comments made after `since` on any card of the tracker that mention EDGAR's account.",
1097
+ "type": "object",
1098
+ "properties": {
1099
+ "since": {
1100
+ "type": "string",
1101
+ "format": "date-time"
1102
+ }
1103
+ },
1104
+ "required": ["since"],
1105
+ "additionalProperties": false
1106
+ },
1107
+ "Mention": {
1108
+ "title": "Mention",
1109
+ "description": "One comment that mentions EDGAR's account, with the card it is on.",
1110
+ "type": "object",
1111
+ "properties": {
1112
+ "card": {
1113
+ "type": "string",
1114
+ "minLength": 1
1115
+ },
1116
+ "comment": { "$ref": "#/$defs/Comment" }
1117
+ },
1118
+ "required": ["card", "comment"],
1119
+ "additionalProperties": false
1120
+ },
906
1121
  "CommentsInput": {
907
1122
  "title": "CommentsInput",
908
1123
  "type": "object",
@@ -0,0 +1,97 @@
1
+ {
2
+ "$defs": {
3
+ "ExtensionSetup": {
4
+ "additionalProperties": false,
5
+ "description": "The probes of one extension, in the order it answered them.",
6
+ "properties": {
7
+ "extension": {
8
+ "type": "string"
9
+ },
10
+ "probes": {
11
+ "items": {
12
+ "$ref": "#/$defs/Probe"
13
+ },
14
+ "type": "array"
15
+ }
16
+ },
17
+ "required": ["extension", "probes"],
18
+ "type": "object"
19
+ },
20
+ "Probe": {
21
+ "additionalProperties": false,
22
+ "description": "One probe: what it checks, such as \"the token reads acme/api\", and what it found.",
23
+ "properties": {
24
+ "label": {
25
+ "minLength": 1,
26
+ "type": "string"
27
+ },
28
+ "verdict": {
29
+ "$ref": "#/$defs/Verdict"
30
+ }
31
+ },
32
+ "required": ["label", "verdict"],
33
+ "type": "object"
34
+ },
35
+ "Verdict": {
36
+ "description": "What one probe found: it passed, it failed with the reason and the fix, or it was skipped,\nwith why, such as a webhook check on a project that serves no webhook.",
37
+ "oneOf": [
38
+ {
39
+ "additionalProperties": false,
40
+ "properties": {
41
+ "kind": {
42
+ "const": "pass",
43
+ "type": "string"
44
+ }
45
+ },
46
+ "required": ["kind"],
47
+ "type": "object"
48
+ },
49
+ {
50
+ "additionalProperties": false,
51
+ "properties": {
52
+ "fix": {
53
+ "type": "string"
54
+ },
55
+ "kind": {
56
+ "const": "fail",
57
+ "type": "string"
58
+ },
59
+ "reason": {
60
+ "type": "string"
61
+ }
62
+ },
63
+ "required": ["kind", "reason", "fix"],
64
+ "type": "object"
65
+ },
66
+ {
67
+ "additionalProperties": false,
68
+ "properties": {
69
+ "kind": {
70
+ "const": "skipped",
71
+ "type": "string"
72
+ },
73
+ "why": {
74
+ "type": "string"
75
+ }
76
+ },
77
+ "required": ["kind", "why"],
78
+ "type": "object"
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
84
+ "additionalProperties": false,
85
+ "description": "What the setup probes found: `edgar check --live` and the MCP tool `setup`.",
86
+ "properties": {
87
+ "extensions": {
88
+ "items": {
89
+ "$ref": "#/$defs/ExtensionSetup"
90
+ },
91
+ "type": "array"
92
+ }
93
+ },
94
+ "required": ["extensions"],
95
+ "title": "Setup",
96
+ "type": "object"
97
+ }
@@ -24,6 +24,7 @@ export const cardBlock = z.strictObject({
24
24
  thread: z.string().min(1),
25
25
  })
26
26
  .exactOptional(),
27
+ trust: z.enum(["team", "outside"]).exactOptional(),
27
28
  }) satisfies z.ZodType<CardBlock>;
28
29
 
29
30
  /** The card a tool files; its output type is the contract's `CardSpec`. */