Repository navigation
Commit 5d53e27
committed
✨ Give an ordinary xmd run the repository vocabulary, root and nested (#643)
The provider exists; this is everything that reaches it. The Deno source
entrypoint and the compiled binary install it for `xmd run` and for an approved
`xmd plan --run`, parameterized by the same credential-helper assembly the
workflow host uses and by the two existing host configurations, both read and
validated before a document expands rather than in the middle of one.
Node and Bun register the same thirteen declarations and install no operational
provider, so `xmd syntax` describes one language everywhere and every repository
operation there reaches a clear provider-absence error before a lock, a
credential, a subprocess or a request exists. One array, declared once, with
three consumers: the workflow attachment, `xmd syntax` and `xmd plan`, and an
ordinary document execution.
`run-repositories.ts` names the managed root and the unsupported installer and
sits on the shared command path; `deno-repositories.ts` assembles the live
provider and is imported only by the two Deno entrypoints. That split is load
bearing rather than tidy: the adapter's module graph reaches `node:sqlite`,
which Bun has no built-in for, so a static import from shared code would stop
`xmd` loading on Bun entirely instead of refusing one operation.
A nested `<Execution host="run">` child is an ordinary run whatever command
hosts it, and gets what one gets: a provider instance of its own — its own
invocation identity, leases and Push evidence — and the working directory the
`<Execution>` was written in. Those two are one thing. A child is a root
execution in a scope that does not descend from the document's, so it inherits
no `API.Env` handler and would otherwise stand in the *process* directory: a
`<Dir>` would scope every component inside it except the child, and the child's
own provider would discover its ambient Git from whatever checkout the process
happened to be launched in. Authority without placement is worse than neither,
so the contextual directory is captured on the last line still inside the
invocation, carried privately on `ChildInvocation`, and installed ahead of the
root, the provider and the execution.
Evidence: ORC1–ORC19 and ORC21, the retained workflow regression, the compiled
smoke, and portable parity under Node and Bun.1 parent dda8c84 commit 5d53e27
14 files changed
Lines changed: 668 additions & 8 deletions
File tree
- packages
- cli
- src
- tests
- support
- testing
- src
- scripts
- specs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3785 | 3785 | | |
3786 | 3786 | | |
3787 | 3787 | | |
3788 | | - | |
| 3788 | + | |
3789 | 3789 | | |
3790 | 3790 | | |
3791 | 3791 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
| 926 | + | |
926 | 927 | | |
927 | 928 | | |
928 | 929 | | |
| |||
1052 | 1053 | | |
1053 | 1054 | | |
1054 | 1055 | | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
1055 | 1063 | | |
1056 | 1064 | | |
1057 | 1065 | | |
| |||
1154 | 1162 | | |
1155 | 1163 | | |
1156 | 1164 | | |
| 1165 | + | |
1157 | 1166 | | |
1158 | 1167 | | |
1159 | | - | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
1160 | 1171 | | |
1161 | 1172 | | |
1162 | 1173 | | |
| |||
1306 | 1317 | | |
1307 | 1318 | | |
1308 | 1319 | | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
1312 | 1324 | | |
| 1325 | + | |
1313 | 1326 | | |
1314 | 1327 | | |
1315 | 1328 | | |
| |||
1351 | 1364 | | |
1352 | 1365 | | |
1353 | 1366 | | |
| 1367 | + | |
1354 | 1368 | | |
1355 | 1369 | | |
1356 | 1370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
72 | 82 | | |
73 | 83 | | |
74 | 84 | | |
| |||
149 | 159 | | |
150 | 160 | | |
151 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
152 | 179 | | |
153 | 180 | | |
154 | 181 | | |
| |||
203 | 230 | | |
204 | 231 | | |
205 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
206 | 236 | | |
207 | 237 | | |
208 | 238 | | |
| |||
0 commit comments