@yaks/git 0.0.0-stage → 0.2.36

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 (183) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +754 -2
  3. package/_dist/address.d.ts +6 -0
  4. package/_dist/address.d.ts.map +1 -0
  5. package/_dist/checkout_vocab.d.ts +3 -0
  6. package/_dist/checkout_vocab.d.ts.map +1 -0
  7. package/_dist/cites.d.ts +48 -0
  8. package/_dist/cites.d.ts.map +1 -0
  9. package/_dist/commit.d.ts +36 -0
  10. package/_dist/commit.d.ts.map +1 -0
  11. package/_dist/comp.d.ts +29 -0
  12. package/_dist/comp.d.ts.map +1 -0
  13. package/_dist/door.d.ts +29 -0
  14. package/_dist/door.d.ts.map +1 -0
  15. package/_dist/format.d.ts +2 -0
  16. package/_dist/format.d.ts.map +1 -0
  17. package/_dist/hold.d.ts +6 -0
  18. package/_dist/hold.d.ts.map +1 -0
  19. package/_dist/host.d.ts +126 -0
  20. package/_dist/host.d.ts.map +1 -0
  21. package/_dist/http.d.ts +33 -0
  22. package/_dist/http.d.ts.map +1 -0
  23. package/_dist/import.d.ts +13 -0
  24. package/_dist/import.d.ts.map +1 -0
  25. package/_dist/index.d.ts +80 -0
  26. package/_dist/index.d.ts.map +1 -0
  27. package/_dist/land.d.ts +77 -0
  28. package/_dist/land.d.ts.map +1 -0
  29. package/_dist/mod.d.ts +73 -0
  30. package/_dist/mod.d.ts.map +1 -0
  31. package/_dist/objects.d.ts +40 -0
  32. package/_dist/objects.d.ts.map +1 -0
  33. package/_dist/oid.d.ts +24 -0
  34. package/_dist/oid.d.ts.map +1 -0
  35. package/_dist/pack-store.d.ts +9 -0
  36. package/_dist/pack-store.d.ts.map +1 -0
  37. package/_dist/pack.d.ts +26 -0
  38. package/_dist/pack.d.ts.map +1 -0
  39. package/_dist/pkt.d.ts +14 -0
  40. package/_dist/pkt.d.ts.map +1 -0
  41. package/_dist/placement.d.ts +4 -0
  42. package/_dist/placement.d.ts.map +1 -0
  43. package/_dist/plugin.d.ts +43 -0
  44. package/_dist/plugin.d.ts.map +1 -0
  45. package/_dist/project.d.ts +20 -0
  46. package/_dist/project.d.ts.map +1 -0
  47. package/_dist/push.d.ts +42 -0
  48. package/_dist/push.d.ts.map +1 -0
  49. package/_dist/refs.d.ts +81 -0
  50. package/_dist/refs.d.ts.map +1 -0
  51. package/_dist/rewrite.d.ts +35 -0
  52. package/_dist/rewrite.d.ts.map +1 -0
  53. package/_dist/service.d.ts +35 -0
  54. package/_dist/service.d.ts.map +1 -0
  55. package/_dist/sha1.d.ts +11 -0
  56. package/_dist/sha1.d.ts.map +1 -0
  57. package/_dist/source.d.ts +12 -0
  58. package/_dist/source.d.ts.map +1 -0
  59. package/_dist/tools.d.ts +11 -0
  60. package/_dist/tools.d.ts.map +1 -0
  61. package/_dist/tree.d.ts +28 -0
  62. package/_dist/tree.d.ts.map +1 -0
  63. package/_dist/unpack.d.ts +5 -0
  64. package/_dist/unpack.d.ts.map +1 -0
  65. package/_dist/vocab.d.ts +8 -0
  66. package/_dist/vocab.d.ts.map +1 -0
  67. package/_dist/workspace.d.ts +17 -0
  68. package/_dist/workspace.d.ts.map +1 -0
  69. package/address.js +9 -0
  70. package/address.js.map +1 -0
  71. package/address.ts +15 -0
  72. package/cache.js +9 -0
  73. package/cache.js.map +1 -0
  74. package/cache.ts +6 -0
  75. package/checkout.js +18 -0
  76. package/checkout.js.map +1 -0
  77. package/checkout.ts +24 -0
  78. package/checkout_vocab.js +14 -0
  79. package/checkout_vocab.js.map +1 -0
  80. package/checkout_vocab.ts +11 -0
  81. package/cites.js +189 -0
  82. package/cites.js.map +1 -0
  83. package/cites.ts +206 -0
  84. package/commit.js +128 -0
  85. package/commit.js.map +1 -0
  86. package/commit.ts +183 -0
  87. package/comp.js +94 -0
  88. package/comp.js.map +1 -0
  89. package/comp.ts +111 -0
  90. package/deno.json +1 -0
  91. package/door.js +88 -0
  92. package/door.js.map +1 -0
  93. package/door.ts +142 -0
  94. package/format.js +43 -0
  95. package/format.js.map +1 -0
  96. package/format.ts +49 -0
  97. package/hold.js +17 -0
  98. package/hold.js.map +1 -0
  99. package/hold.ts +21 -0
  100. package/host.js +1024 -0
  101. package/host.js.map +1 -0
  102. package/host.ts +1140 -0
  103. package/http.js +268 -0
  104. package/http.js.map +1 -0
  105. package/http.ts +329 -0
  106. package/import.js +141 -0
  107. package/import.js.map +1 -0
  108. package/import.ts +128 -0
  109. package/index.js +496 -0
  110. package/index.js.map +1 -0
  111. package/index.ts +634 -0
  112. package/land.js +788 -0
  113. package/land.js.map +1 -0
  114. package/land.ts +871 -0
  115. package/mod.js +73 -0
  116. package/mod.js.map +1 -0
  117. package/mod.ts +74 -0
  118. package/objects.js +331 -0
  119. package/objects.js.map +1 -0
  120. package/objects.ts +390 -0
  121. package/oid.js +50 -0
  122. package/oid.js.map +1 -0
  123. package/oid.ts +83 -0
  124. package/pack-index.js +103 -0
  125. package/pack-index.js.map +1 -0
  126. package/pack-index.ts +104 -0
  127. package/pack-store.js +216 -0
  128. package/pack-store.js.map +1 -0
  129. package/pack-store.ts +292 -0
  130. package/pack.js +121 -0
  131. package/pack.js.map +1 -0
  132. package/pack.ts +146 -0
  133. package/package.json +78 -4
  134. package/pkt.js +73 -0
  135. package/pkt.js.map +1 -0
  136. package/pkt.ts +93 -0
  137. package/placement.js +44 -0
  138. package/placement.js.map +1 -0
  139. package/placement.ts +38 -0
  140. package/plugin.js +66 -0
  141. package/plugin.js.map +1 -0
  142. package/plugin.ts +88 -0
  143. package/process-cwd.py +57 -0
  144. package/project.js +142 -0
  145. package/project.js.map +1 -0
  146. package/project.ts +151 -0
  147. package/push.js +401 -0
  148. package/push.js.map +1 -0
  149. package/push.ts +451 -0
  150. package/refs.js +176 -0
  151. package/refs.js.map +1 -0
  152. package/refs.ts +285 -0
  153. package/rewrite.js +176 -0
  154. package/rewrite.js.map +1 -0
  155. package/rewrite.ts +173 -0
  156. package/service.js +104 -0
  157. package/service.js.map +1 -0
  158. package/service.ts +194 -0
  159. package/sha1.js +115 -0
  160. package/sha1.js.map +1 -0
  161. package/sha1.ts +146 -0
  162. package/source.js +100 -0
  163. package/source.js.map +1 -0
  164. package/source.ts +116 -0
  165. package/spare.js +108 -0
  166. package/spare.js.map +1 -0
  167. package/spare.ts +94 -0
  168. package/tools.js +278 -0
  169. package/tools.js.map +1 -0
  170. package/tools.ts +310 -0
  171. package/tree.js +105 -0
  172. package/tree.js.map +1 -0
  173. package/tree.ts +132 -0
  174. package/unpack.js +207 -0
  175. package/unpack.js.map +1 -0
  176. package/unpack.ts +210 -0
  177. package/vocab.js +20 -0
  178. package/vocab.js.map +1 -0
  179. package/vocab.json +386 -0
  180. package/vocab.ts +22 -0
  181. package/workspace.js +449 -0
  182. package/workspace.js.map +1 -0
  183. package/workspace.ts +445 -0
package/vocab.json ADDED
@@ -0,0 +1,386 @@
1
+ {
2
+ "$id": "urn:uuid:f8bd3b74-70ec-4310-81f3-9fd01190455d",
3
+ "$vocabulary": {
4
+ "https://yak.sh/vocab/core": true,
5
+ "https://yak.sh/vocab/edge": true,
6
+ "https://yak.sh/vocab/key": true
7
+ },
8
+ "title": "git",
9
+ "$defs": {
10
+ "gitobj": {
11
+ "$id": "urn:uuid:8a2323cd-9ff4-4318-94a2-f1489b7cba31",
12
+ "component": true,
13
+ "journal": false,
14
+ "type": "object",
15
+ "description": "one Git object; its entity id is its SHA-1 object id, so writing the same object twice writes one row",
16
+ "properties": {
17
+ "type": {
18
+ "$id": "urn:uuid:4c48326b-5a0b-4723-a513-467dce496c67",
19
+ "type": "string",
20
+ "enum": [
21
+ "blob",
22
+ "tree",
23
+ "commit",
24
+ "tag"
25
+ ],
26
+ "description": "the object type, as written in the object's own header"
27
+ },
28
+ "size": {
29
+ "$id": "urn:uuid:30442652-d9ad-49f9-9133-caff52036caa",
30
+ "type": "number",
31
+ "description": "the body's length in bytes, as written in that same header"
32
+ }
33
+ }
34
+ },
35
+ "blob": {
36
+ "$id": "urn:uuid:50d7b0fe-65ee-4533-b5cc-9fc5aacb7dc1",
37
+ "component": true,
38
+ "journal": false,
39
+ "type": "object",
40
+ "description": "where an object's bytes are: their address in the @yaks/blob store",
41
+ "properties": {
42
+ "sha": {
43
+ "$id": "urn:uuid:f6073b0b-0f3d-495f-a1af-bb2bc8c8f924",
44
+ "type": "string",
45
+ "index": true,
46
+ "address": true,
47
+ "description": "the SHA-256 of the bytes; for a Git blob this is the file's own address in the store, not a re-encoded copy. Indexed: a release names each new file's object by it"
48
+ }
49
+ }
50
+ },
51
+ "tree_entry": {
52
+ "$id": "urn:uuid:0d8fa851-c3c0-481b-b998-6159ab88277e",
53
+ "component": true,
54
+ "journal": false,
55
+ "type": "object",
56
+ "edge": true,
57
+ "reversed": "entry in",
58
+ "description": "a retained tree-to-child link; traversal reads children from the immutable tree body",
59
+ "properties": {
60
+ "name": {
61
+ "$id": "urn:uuid:d673ce64-a246-4902-ab02-dd1c2e8709f3",
62
+ "type": "string",
63
+ "description": "the child's name in this tree; one object can be a child of several trees under different names, so the name belongs to the link"
64
+ },
65
+ "mode": {
66
+ "$id": "urn:uuid:824f7d9c-4eee-4a8b-bcf3-175270495013",
67
+ "type": "string",
68
+ "description": "the mode as the tree body writes it: 100644 for a file, 40000 for a directory"
69
+ }
70
+ }
71
+ },
72
+ "parent": {
73
+ "$id": "urn:uuid:31d4d6d2-ea7b-48c5-8009-0f4c0fe920ae",
74
+ "component": true,
75
+ "journal": false,
76
+ "type": "object",
77
+ "edge": true,
78
+ "reversed": "parent of",
79
+ "description": "this commit's parent; the edge's `ord` property keeps the parent order",
80
+ "properties": {}
81
+ },
82
+ "compat": {
83
+ "$id": "urn:uuid:1131fcbc-ca8a-495e-81ed-468c4426e91b",
84
+ "component": true,
85
+ "journal": false,
86
+ "type": "object",
87
+ "key": true,
88
+ "description": "Git's compat object id: the same object's SHA-256 id, keyed by its SHA-1 id, so a client may ask for either (Git's hash-function transition, stored as key rows)"
89
+ },
90
+ "ref": {
91
+ "$id": "urn:uuid:44eb2972-6127-4937-981b-2518d5847a8d",
92
+ "component": true,
93
+ "journal": false,
94
+ "type": "object",
95
+ "description": "where one branch of one repository points; one row per repository and branch name, so moving a branch updates the row that is already there",
96
+ "properties": {
97
+ "app": {
98
+ "$id": "urn:uuid:1f918429-e4c2-44c9-b3b1-0b48ad0b064d",
99
+ "type": "string",
100
+ "ref": "entity",
101
+ "death": "cascade",
102
+ "description": "the entity the repository belongs to; deleting it deletes its branches"
103
+ },
104
+ "name": {
105
+ "$id": "urn:uuid:90c83adb-7b4f-4b97-a0b1-73f0ede47f2d",
106
+ "type": "string",
107
+ "description": "the branch's full name: refs/heads/main, not main"
108
+ },
109
+ "commit": {
110
+ "$id": "urn:uuid:31367b9a-5e9e-4b5b-8c24-ccda9f27aeda",
111
+ "type": "string",
112
+ "ref": "entity",
113
+ "death": "detach",
114
+ "description": "the commit object the branch points at"
115
+ },
116
+ "target": {
117
+ "$id": "urn:uuid:4c068cc3-0969-47d2-9ace-04354ddb5673",
118
+ "type": "string",
119
+ "description": "for a symbolic ref, the full name it points at; absent for a direct ref"
120
+ },
121
+ "oid": {
122
+ "$id": "urn:uuid:674b0b76-8202-4afd-b6f4-e0f6ad491773",
123
+ "type": "string",
124
+ "description": "the raw Git object id the ref names; an annotated tag need not point directly at a commit"
125
+ },
126
+ "present": {
127
+ "$id": "urn:uuid:53ab3ce6-ab62-46e1-bfdf-d067c295f7e9",
128
+ "type": "boolean",
129
+ "description": "false once a ref that was observed on this machine has been deleted"
130
+ }
131
+ }
132
+ },
133
+ "repository": {
134
+ "$id": "urn:uuid:fad17e0a-0cfd-46f2-9814-598205daed2e",
135
+ "component": true,
136
+ "journal": false,
137
+ "type": "object",
138
+ "description": "A Git object database identified by its stable filesystem workspace and canonical common directory.",
139
+ "properties": {
140
+ "common": {
141
+ "$id": "urn:uuid:4303030f-51f5-4d09-8a5d-24ddd99daf05",
142
+ "type": "string",
143
+ "description": "canonical absolute common Git directory in the repository filesystem"
144
+ },
145
+ "origin": {
146
+ "$id": "urn:uuid:82f76811-f5b6-451b-9105-72d86ea9922f",
147
+ "type": "string",
148
+ "format": "uri",
149
+ "description": "where it is published: the remote it was cloned from or pushes to"
150
+ },
151
+ "workspace": {
152
+ "$id": "urn:uuid:7fe5ee32-7ec1-4c54-9242-1d3085eed10e",
153
+ "type": "string",
154
+ "ref": "workspace",
155
+ "death": "keep",
156
+ "description": "the stable filesystem context: its sandbox or the canonical root workspace of its computer, not a convenience directory"
157
+ }
158
+ },
159
+ "identity": [
160
+ "workspace",
161
+ "common"
162
+ ]
163
+ },
164
+ "worktree": {
165
+ "$id": "urn:uuid:7d665a8a-5e47-4f0b-8472-1624e3b51bd9",
166
+ "component": true,
167
+ "journal": false,
168
+ "type": "object",
169
+ "description": "A local checkout. Its identity is the repository plus the canonical checkout root, not the branch or HEAD.",
170
+ "properties": {
171
+ "repository": {
172
+ "$id": "urn:uuid:8bfe95e7-de3a-449b-8ea8-1e86786fb267",
173
+ "type": "string",
174
+ "description": "repository entity",
175
+ "ref": "entity",
176
+ "death": "keep"
177
+ },
178
+ "gitdir": {
179
+ "$id": "urn:uuid:3cd5c279-259a-4f9f-9607-eec654645f30",
180
+ "type": "string",
181
+ "description": "this worktree's own Git administrative directory"
182
+ },
183
+ "head": {
184
+ "$id": "urn:uuid:f95fff9c-e451-446c-8125-9cd7d52ca3a4",
185
+ "type": "string",
186
+ "description": "the object id HEAD resolves to; absent when the branch has no commits yet"
187
+ },
188
+ "branch": {
189
+ "$id": "urn:uuid:99679c32-9ece-413c-86ac-7d6ecc2a22b5",
190
+ "type": "string",
191
+ "description": "the shared ref entity HEAD is attached to; absent for a detached HEAD",
192
+ "ref": "entity",
193
+ "death": "keep"
194
+ },
195
+ "managed": {
196
+ "$id": "urn:uuid:0b14eaac-9e04-4dde-9220-26c9ed2c1175",
197
+ "type": "boolean",
198
+ "description": "created by this package; it never implies automatic cleanup"
199
+ }
200
+ }
201
+ },
202
+ "checkout": {
203
+ "$id": "urn:uuid:e53df10b-d786-4ccc-b6d4-a457e37522a9",
204
+ "component": true,
205
+ "journal": false,
206
+ "type": "object",
207
+ "description": "A stored request to create a checkout on this machine; ready only once Git has succeeded. A failed request keeps its error so it can be retried.",
208
+ "properties": {
209
+ "repository": {
210
+ "$id": "urn:uuid:65b3fcf0-4e2e-4a1c-8aa7-92830f66071a",
211
+ "type": "string",
212
+ "ref": "entity",
213
+ "death": "keep"
214
+ },
215
+ "path": {
216
+ "$id": "urn:uuid:649ef6be-670b-443c-9d27-fe6feba904be",
217
+ "type": "string"
218
+ },
219
+ "base": {
220
+ "$id": "urn:uuid:8e56df85-b354-4101-a9b6-baee1dade5df",
221
+ "type": "string"
222
+ },
223
+ "branch": {
224
+ "$id": "urn:uuid:45f9c7cb-ff89-4392-a7ce-7e4134ed4685",
225
+ "type": "string"
226
+ },
227
+ "state": {
228
+ "$id": "urn:uuid:de2a0555-51d1-4db1-b42f-750e4d15e04b",
229
+ "type": "string"
230
+ },
231
+ "error": {
232
+ "$id": "urn:uuid:0118b01b-1e58-4ec9-af4e-f563fa5bf15a",
233
+ "type": "string"
234
+ },
235
+ "requested": {
236
+ "$id": "urn:uuid:f2450684-ed3c-4488-aa5b-90b8530ba3db",
237
+ "type": "string",
238
+ "description": "the base as the caller wrote it, while base holds the commit id it resolved to"
239
+ }
240
+ }
241
+ },
242
+ "commit": {
243
+ "$id": "urn:uuid:ad60364b-14eb-420a-89ae-4f64b3092b68",
244
+ "component": true,
245
+ "type": "object",
246
+ "properties": {
247
+ "target": {
248
+ "$id": "urn:uuid:654260be-5e5b-4f5b-a0cc-40521c6c8bb6",
249
+ "type": "string",
250
+ "ref": "entity",
251
+ "death": "cascade",
252
+ "description": "the work this commit is about"
253
+ },
254
+ "repo": {
255
+ "$id": "urn:uuid:6ef329b4-9e9b-45ac-83c7-1264e2b17b61",
256
+ "type": "string",
257
+ "ref": "entity",
258
+ "death": "detach",
259
+ "description": "the repository it landed in"
260
+ },
261
+ "tree": {
262
+ "$id": "urn:uuid:120e1d8b-f504-4c95-bb4a-f927ef614b67",
263
+ "type": "string",
264
+ "description": "the Git SHA of the root tree"
265
+ },
266
+ "parent": {
267
+ "$id": "urn:uuid:81169ca1-4f8f-4b47-85a1-2b0bc50da883",
268
+ "type": "string",
269
+ "description": "the Git SHA of the release this commit follows"
270
+ },
271
+ "origin": {
272
+ "$id": "urn:uuid:d3f89e2d-9e6f-4de0-b871-6f8ec8927c82",
273
+ "type": "string",
274
+ "description": "the original space commit this app-only or rewritten commit was derived from"
275
+ },
276
+ "message": {
277
+ "$id": "urn:uuid:fe34bda1-da52-449e-a684-2bc75c7cf6bf",
278
+ "type": "string",
279
+ "description": "the whole commit message, not just its first line"
280
+ }
281
+ },
282
+ "description": "a commit that landed, attached to the work it is about; the commit sha is the entity id, so recording the same commit twice gives one entity"
283
+ },
284
+ "revision": {
285
+ "$id": "urn:uuid:ddcd7cb6-a994-4e14-9557-d5a1b1676e77",
286
+ "component": true,
287
+ "journal": false,
288
+ "type": "object",
289
+ "properties": {
290
+ "commit": {
291
+ "$id": "urn:uuid:bf3d4cff-bfc3-4566-b2ee-af429b774720",
292
+ "type": "string",
293
+ "ref": "entity",
294
+ "death": "detach",
295
+ "description": "the commit entity, whose id is the commit sha"
296
+ }
297
+ },
298
+ "description": "the commit a citation was last checked against; the verify step moves it to the commit checked out then"
299
+ },
300
+ "cites_check": {
301
+ "tool": true,
302
+ "noun": "cites",
303
+ "verb": "check",
304
+ "title": "Check citations",
305
+ "description": "Report citations that moved or were never checked. A `cites` edge points to a `file`, to some lines of one (an entity wearing `lines{file, start, end}`), to a symbol, or to any other graph entity. For a file of a repository, its lines or a symbol in it, Git answers in this checkout, which must be of that repository, which commits after `revision.commit` touched the cited place. For anything else, its current content hash is compared with `cites.hash`, recorded when verified; this needs no journal or checkout. A citation nobody checked is unverified, and one without enough evidence is unknown. Scope with `of` (only citations one entity makes) or `path` (only citations of one file of this checkout's repository: the file, lines of it, or a symbol in it). Returns a report in content.body with warning or failure findings. It writes nothing and enforces nothing.",
306
+ "input": {
307
+ "of": {
308
+ "type": "string",
309
+ "ref": "entity",
310
+ "description": "only the citations this record makes; pass its id or registered name"
311
+ },
312
+ "path": {
313
+ "type": "string",
314
+ "description": "only citations of this file of this checkout's repository, lines of it or a symbol in it; the path as Git spells it"
315
+ }
316
+ },
317
+ "readOnly": true,
318
+ "positional": [
319
+ "of"
320
+ ]
321
+ },
322
+ "cites_verify": {
323
+ "tool": true,
324
+ "destructive": false,
325
+ "noun": "cites",
326
+ "verb": "verify",
327
+ "title": "Verify a citation",
328
+ "description": "Record that a citation was checked and holds. For a file of a repository, lines of one or a symbol, write the `verified` mark and move its `revision` to this checkout's commit; the checkout must be of that repository. For another entity, write the mark and its current content hash in `cites.hash`, without needing a checkout. Takes the citation edge itself, or an entity, meaning every citation it makes. Returns the citations as written.",
329
+ "input": {
330
+ "cite": {
331
+ "type": "string",
332
+ "ref": "entity",
333
+ "description": "the citation to mark; pass its id"
334
+ },
335
+ "of": {
336
+ "type": "string",
337
+ "ref": "entity",
338
+ "description": "a record, meaning every citation it makes"
339
+ }
340
+ },
341
+ "positional": [
342
+ "cite"
343
+ ]
344
+ },
345
+ "land": {
346
+ "tool": true,
347
+ "title": "Land the current branch",
348
+ "description": "Land the branch the current checkout is on. Fast-forwards it into the base branch (the one the shared checkout has checked out) and pushes if the base has an upstream. If the base has moved, rebases the branch onto it and returns without merging, printing what the rebase pulled in so the caller can re-run its tests and land again; that counts as a failure, because nothing landed. Refuses to land when a file would end up with content no commit on the branch wrote, unless allow-revert names that file. Runs no tests: everything comes from Git, in the checkout explicitly named by cwd. Records each commit it lands as `commit{target, message}`, its id the sha, created through the caller's session, its target the task its first line names (T-12). The CLI supplies its current directory; MCP callers must name their own checkout, including sub-agents sharing a connection. Returns Git\u2019s output and the landed commit SHA in content.body.",
349
+ "required": ["cwd"],
350
+ "input": {
351
+ "cwd": {
352
+ "type": "string",
353
+ "pattern": "^/",
354
+ "description": "absolute working directory of the checkout to land; supply your own checkout even on a shared MCP connection"
355
+ },
356
+ "allow-revert": {
357
+ "type": "string",
358
+ "description": "comma-separated paths whose reverted content is intended; they land with a warning"
359
+ }
360
+ },
361
+ "destructive": true
362
+ }
363
+ },
364
+ "kinds": {
365
+ "gitobj": {
366
+ "$id": "urn:uuid:8a2323cd-9ff4-4318-94a2-f1489b7cba31",
367
+ "description": "one Git object; its entity id is its SHA-1 object id, so writing the same object twice writes one row",
368
+ "with": {
369
+ "blob": true
370
+ }
371
+ },
372
+ "commit": {
373
+ "$id": "urn:uuid:ad60364b-14eb-420a-89ae-4f64b3092b68",
374
+ "description": "a commit that landed, attached to the work it is about; the commit sha is the entity id, so recording the same commit twice gives one entity",
375
+ "prefix": "G",
376
+ "examples": [
377
+ {
378
+ "commit": {
379
+ "target": "7c1e1f0a-3b5d-4c2e-9a41-2f6d8b0e5a13",
380
+ "message": "T-12 A design is put forward by its writer"
381
+ }
382
+ }
383
+ ]
384
+ }
385
+ }
386
+ }
package/vocab.ts ADDED
@@ -0,0 +1,22 @@
1
+ // The component declarations and nothing else, exported as `@yaks/git/vocab`.
2
+ // This module imports no storage, no SQL and no runtime, so a browser tab that
3
+ // loads the vocabulary loads nothing else with it.
4
+ //
5
+ // The Git object components and the source-code components are one document
6
+ // here. A server that keeps packed objects in a store of their own loads
7
+ // {@link gitDoc} in that store, and loads only {@link checkoutDoc} — what a
8
+ // checkout is — in its own graph.
9
+
10
+ import type { VocabDoc } from 'jsr:@yaks/vocab@0.2.36'
11
+ import { gitDoc, refDoc } from './comp.js'
12
+ import { checkoutDoc } from './checkout_vocab.js'
13
+ import manifest from './package.json' with { type: 'json' }
14
+
15
+ export { checkoutDoc, gitDoc, refDoc }
16
+
17
+ /** What this package is: its manifest's description, the one place it is
18
+ * written, which a host stamps on each document here. */
19
+ export let description: string = manifest.description
20
+
21
+ /** Every vocabulary document this plugin declares. */
22
+ export let docs: VocabDoc[] = [gitDoc]