@sous-io/sous 1.2.0 → 1.2.1
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.
- package/dist/sous.js +164 -157
- package/docs/markdown/repositories-consuming.md +4 -3
- package/docs/markdown/repositories-file-formats.md +62 -3
- package/docs/markdown/repositories-providers.md +35 -13
- package/docs/markdown/repositories-quickstart.md +1 -1
- package/docs/markdown/repositories-troubleshooting.md +22 -2
- package/docs/markdown/repositories.md +1 -1
- package/package.json +38 -38
- package/recipes/core/sous-skills/skills/about-sous-repos/SKILL.tpl.md +8 -0
- package/recipes/core/sous-skills/sous.recipe.yaml +1 -1
|
@@ -6,12 +6,13 @@ and [Repository file formats](repositories-file-formats.md) holds every schema.
|
|
|
6
6
|
## Add a repository
|
|
7
7
|
|
|
8
8
|
Adding a repository is how you trust it, so it is the one step that asks a question, and what that
|
|
9
|
-
decision covers is [Trust](repositories.md#trust).
|
|
10
|
-
`sous.
|
|
9
|
+
decision covers is [Trust](repositories.md#trust). Only what the repository publishes is read: its
|
|
10
|
+
`sous.repo.yaml`, then the index it leads to, which is all sous needs to resolve refs and list versions
|
|
11
|
+
([How a project reads a repository](repositories-file-formats.md#how-a-project-reads-a-repository)):
|
|
11
12
|
|
|
12
13
|
```term
|
|
13
14
|
$ sous repo add https://github.com/sous-io/sous-recipes
|
|
14
|
-
// the trust question, then
|
|
15
|
+
// the trust question, then a small download
|
|
15
16
|
▶ Adding a repository:
|
|
16
17
|
Repository: sous-recipes
|
|
17
18
|
Location : https://github.com/sous-io/sous-recipes
|
|
@@ -68,7 +68,7 @@ recipe's namespace under `namespaces`.
|
|
|
68
68
|
| `name` | to release | A suggestion only; `sous repo add --name` decides what a project calls it |
|
|
69
69
|
| `namespaces` | to release | Keyed by namespace name; each entry takes an optional `description`. A release refuses a recipe whose namespace is not listed here |
|
|
70
70
|
| `description`, `contribute` | no | A summary for anyone reading the repository, and where to send a contribution when a provider cannot support `sous repo submit` |
|
|
71
|
-
| `index`, `published` | no | Where the published data lives: `index` is `embedded`, `tags`, or the path of a `.json` file relative to the repository root, and `published` holds the same data as `sous.index.json` apart from `formatVersion` and `name`. A `published` block beside an `index` of `tags` or a path is an error.
|
|
71
|
+
| `index`, `published` | no | Where the published data lives: `index` is `embedded`, `tags`, or the path of a `.json` file relative to the repository root, and `published` holds the same data as `sous.index.json` apart from `formatVersion` and `name`. A `published` block beside an `index` of `tags` or a path is an error. A project reads every form; see [How a project reads a repository](#how-a-project-reads-a-repository). `sous repo release` writes only `sous.index.json`, at the repository root |
|
|
72
72
|
| `submissions` | no | Whether the repository's recipes take proposed changes; see [The submissions block](#the-submissions-block) |
|
|
73
73
|
| `retired` | no | Keyed `namespace/recipe`; see [Retired recipes](#retired-recipes) |
|
|
74
74
|
|
|
@@ -387,7 +387,9 @@ description: Helpers for the team's own tools. # optional; shown by sous names
|
|
|
387
387
|
## `sous.index.json`
|
|
388
388
|
|
|
389
389
|
Machine-written by `sous repo release` and committed beside the recipes it describes. Adding a repository
|
|
390
|
-
|
|
390
|
+
reads only the repository manifest and this file; nothing more is downloaded until a project subscribes.
|
|
391
|
+
The same data may instead be embedded in the manifest, kept at another path, or built from the release
|
|
392
|
+
tags; see [How a project reads a repository](#how-a-project-reads-a-repository).
|
|
391
393
|
|
|
392
394
|
```json
|
|
393
395
|
{
|
|
@@ -495,6 +497,57 @@ any other, marked `seeded: true`; if the repository already publishes it, the pu
|
|
|
495
497
|
never writes `seeded` onto a fetched index, and when it writes the placeholder into the index cache it
|
|
496
498
|
stamps a fixed `$comment`, so a later run can tell its own placeholder from a real index and replace it.
|
|
497
499
|
|
|
500
|
+
## How a project reads a repository
|
|
501
|
+
|
|
502
|
+
A project that adds a repository (the built-in ones included) reads what it publishes, the manifest
|
|
503
|
+
first. Sous looks for `sous.repo.yaml` at the repository root, then in `.sous/`, trying `.yaml`, `.yml`,
|
|
504
|
+
`.json` and `.jsonc` in each, and the first file found is the manifest. What it says decides what is
|
|
505
|
+
read next:
|
|
506
|
+
|
|
507
|
+
| The manifest has | Sous reads |
|
|
508
|
+
|------------------|------------|
|
|
509
|
+
| a `published` block, or `index: embedded` | nothing more: the index is in the manifest |
|
|
510
|
+
| `index: <path>.json` | the index file at that path, relative to the repository root. A missing file is an error naming the setting, for the repository's maintainers to fix |
|
|
511
|
+
| `index: tags` | the repository's tags, from which it builds the index; see [A repository that publishes through its tags](#a-repository-that-publishes-through-its-tags) |
|
|
512
|
+
| none of these | a `sous.index.json` beside the manifest; with none there, the repository has published nothing yet, and its index is empty |
|
|
513
|
+
|
|
514
|
+
Only when neither place holds a manifest is a `sous.index.json` at the repository root read. With none
|
|
515
|
+
there either, the read fails:
|
|
516
|
+
|
|
517
|
+
```text
|
|
518
|
+
Error: https://github.com/acme/recipes has no 'sous.repo.yaml' (at its root or in '.sous/') and no
|
|
519
|
+
'sous.index.json', so it is not a sous recipe repository, or nothing in it has been released yet.
|
|
520
|
+
```
|
|
521
|
+
|
|
522
|
+
A [linked working copy](repositories-authoring.md#edit-a-repository-in-place) is read the same way, from
|
|
523
|
+
disk; a linked repository that publishes through its tags is read from upstream, like any other. How each
|
|
524
|
+
file travels from a host is in [Private repositories](repositories-providers.md#private-repositories).
|
|
525
|
+
|
|
526
|
+
### A repository that publishes through its tags
|
|
527
|
+
|
|
528
|
+
With `index: tags`, a repository commits no index: a project builds it from the release tags
|
|
529
|
+
(`namespace/recipe@version`) with the same code `sous repo release` uses, so it gets the index a release
|
|
530
|
+
would write for the same repository.
|
|
531
|
+
|
|
532
|
+
- One `git ls-remote` lists the tags and `HEAD`.
|
|
533
|
+
- Only the commits and trees of tags not seen before are fetched, one commit deep and with no file
|
|
534
|
+
contents, then the repository manifests at them and then the recipe manifests, one fetch each. They
|
|
535
|
+
are kept in a bare repository under `$SOUS_HOME/cache/_tags/<repository identity>.git`.
|
|
536
|
+
- Each tag's entry is kept for good in `$SOUS_HOME/cache/_tags/<repository identity>.json`, checked against
|
|
537
|
+
the object the tag points at. A published tag never changes, so each version's manifest is read once;
|
|
538
|
+
a tag moved to another object is read again.
|
|
539
|
+
- A version's content hash is the `Sous-Hash: sha256-...` line of its annotated tag's message. A tag made
|
|
540
|
+
by hand without that line has its recipe folder fetched and hashed once, and the hash is kept.
|
|
541
|
+
- Each recipe's folder, description and namespace come from the manifests at `HEAD`. A recipe `HEAD` no
|
|
542
|
+
longer lists is retired, with the replacements its `sous.repo.yaml` names.
|
|
543
|
+
- A dependency that could be read more than one way is settled once, by reading the candidate
|
|
544
|
+
repositories' indexes, and kept in the same file.
|
|
545
|
+
|
|
546
|
+
A fresh machine that downloads a pinned recipe while the config is still being built reads the tags
|
|
547
|
+
without each version's dependencies; that read serves the download only and is never cached, and the
|
|
548
|
+
next read completes it from the local copy without fetching again. Measured with 50 recipes and 500
|
|
549
|
+
tags, a first read takes about 3 seconds and a read from the local copy about a tenth of a second.
|
|
550
|
+
|
|
498
551
|
## `.sous/sous.lock.json`
|
|
499
552
|
|
|
500
553
|
Machine-written, committed, and the reason a fresh clone restores with no prompts and no drift.
|
|
@@ -550,13 +603,19 @@ lockfile's pins); every entry carries a `.sous.entry.json` marker. It sits under
|
|
|
550
603
|
$SOUS_HOME/
|
|
551
604
|
cache/<repository identity>/<namespace>/<name>/<version>/ .sous.entry.json, then the files
|
|
552
605
|
cache/_indexes/<repository identity>.json the cached index
|
|
553
|
-
cache/_indexes/<repository identity>.meta.json etag, fetchedAt, lastCheckedAt,
|
|
606
|
+
cache/_indexes/<repository identity>.meta.json etag, fetchedAt, lastCheckedAt, readFrom
|
|
607
|
+
cache/_tags/<repository identity>.git a tags-only repository's tags and manifests
|
|
608
|
+
cache/_tags/<repository identity>.json each tag's entry, and the dependencies settled
|
|
554
609
|
cache/read-strategies.json per repository: the read strategy and clone URL that worked, and since when
|
|
555
610
|
cache/gitlab-instances.json per GitLab host: the sub-path GitLab is installed under ("" at the root)
|
|
556
611
|
repos/ checkouts cloned by 'sous repo link --global'
|
|
557
612
|
sous.links.json the machine-wide links map
|
|
558
613
|
```
|
|
559
614
|
|
|
615
|
+
A cached index's `readFrom` names the file the copy was read from (`sous.repo.yaml`, `.sous/sous.repo.yaml`,
|
|
616
|
+
`sous.index.json`, or the path an `index` setting names), or `tags` for an index built from the tags; its
|
|
617
|
+
`etag` is sent only when that same file is read again.
|
|
618
|
+
|
|
560
619
|
The marker makes an entry self-describing, so the store is sweepable without consulting a project:
|
|
561
620
|
|
|
562
621
|
```json
|
|
@@ -14,7 +14,10 @@ Every provider answers the **read path**, which is deliberately small:
|
|
|
14
14
|
|
|
15
15
|
- recognize a repository URL as its own;
|
|
16
16
|
- take that URL apart into a host, an owner and a name;
|
|
17
|
-
- hand back the repository
|
|
17
|
+
- hand back one file of the repository at `HEAD`, which is how sous reads its `sous.repo.yaml` and the
|
|
18
|
+
index it leads to ([How a project reads a repository](repositories-file-formats.md#how-a-project-reads-a-repository));
|
|
19
|
+
- list the repository's tags and fetch what a reader asks for at them, for a repository that publishes
|
|
20
|
+
through its tags alone;
|
|
18
21
|
- fetch **one** recipe's subtree at one tag.
|
|
19
22
|
|
|
20
23
|
Nothing there clones a whole repository. A provider that can also carry a contribution answers
|
|
@@ -117,6 +120,7 @@ every machine-wide thing keys by:
|
|
|
117
120
|
| the store entry | `~/.sous/cache/github.com/sous-io/sous-recipes/<namespace>/<recipe>/<version>/` |
|
|
118
121
|
| the cached index | `~/.sous/cache/_indexes/github.com/sous-io/sous-recipes.json` |
|
|
119
122
|
| the index sidecar | `~/.sous/cache/_indexes/github.com/sous-io/sous-recipes.meta.json` |
|
|
123
|
+
| the tags of a repository that publishes through them | `~/.sous/cache/_tags/github.com/sous-io/sous-recipes.git` and `.json` |
|
|
120
124
|
| the lockfile's `identity` field | `github.com/sous-io/sous-recipes` |
|
|
121
125
|
|
|
122
126
|
A repository's **short name** (`sous-recipes`) is something your project chose, and it keys
|
|
@@ -143,12 +147,13 @@ because a path on your disk is not a published location. Every form is in
|
|
|
143
147
|
|
|
144
148
|
Sous reads a repository in two very different ways, and they authenticate differently.
|
|
145
149
|
|
|
146
|
-
**
|
|
150
|
+
**What a repository publishes** (its `sous.repo.yaml`, then the index it leads to) is read by trying three
|
|
151
|
+
ways in order, so reading works with whatever access you have.
|
|
147
152
|
Neither `gh` nor `glab` is ever required to read a repository; they are needed only for
|
|
148
153
|
`sous repo contribute` and `sous repo submit`.
|
|
149
154
|
|
|
150
155
|
```text
|
|
151
|
-
Reading
|
|
156
|
+
Reading a file a repository publishes
|
|
152
157
|
1. HTTP with a token if a token is found (see below)
|
|
153
158
|
2. HTTP with no token public repositories
|
|
154
159
|
3. git a shallow, sparse fetch of the one file, using your own git
|
|
@@ -159,14 +164,23 @@ For GitLab, the HTTP requests use the API address, with the whole project path e
|
|
|
159
164
|
group's `/` becomes `%2F`:
|
|
160
165
|
|
|
161
166
|
```text
|
|
162
|
-
https://raw.githubusercontent.com/<owner>/<name>/HEAD/sous.
|
|
163
|
-
https://<gitlab host>/api/v4/projects/<owner>%2F<name>/repository/files/sous.
|
|
167
|
+
https://raw.githubusercontent.com/<owner>/<name>/HEAD/sous.repo.yaml
|
|
168
|
+
https://<gitlab host>/api/v4/projects/<owner>%2F<name>/repository/files/sous.repo.yaml/raw?ref=HEAD
|
|
164
169
|
```
|
|
165
170
|
|
|
171
|
+
The first file read walks those ways in order. A way that reached the repository and found a file missing
|
|
172
|
+
(a `404`, or git's "does not exist") reads the rest of the files for that read, and the other places a
|
|
173
|
+
manifest may be are read together, so a repository whose manifest is in `.sous/` costs a few small extra
|
|
174
|
+
requests. A file is missing, which is an answer rather than a failure, when git (or, for a local
|
|
175
|
+
repository, its working tree) reached the repository and found no such file, or when a way answered `404`
|
|
176
|
+
and no other failed to connect or was refused (a `404` alone may also mean a private repository). Sous then
|
|
177
|
+
moves on to the next file, and the error, if any, is the one under
|
|
178
|
+
[How a project reads a repository](repositories-file-formats.md#how-a-project-reads-a-repository).
|
|
179
|
+
|
|
166
180
|
GitHub's raw host can answer with a copy it cached for up to five minutes. When sous must see the
|
|
167
181
|
current index (a `--latest` read, or a recipe missing from its cached copy, which is how a recipe
|
|
168
182
|
released moments ago looks), it reads GitHub's contents API without a token instead
|
|
169
|
-
(`https://api.github.com/repos/<owner>/<name>/contents
|
|
183
|
+
(`https://api.github.com/repos/<owner>/<name>/contents/<path>`), and tries the raw host only
|
|
170
184
|
if nothing else answers. GitHub allows 60 such requests an hour from one address, so ordinary reads
|
|
171
185
|
never use it. GitLab's API always answers with the current file.
|
|
172
186
|
|
|
@@ -197,7 +211,7 @@ first for the next seven days, counted from when it became first. After that, th
|
|
|
197
211
|
tried first again, so a repository read through git while its token was broken goes back to HTTP once the
|
|
198
212
|
token works. `store.strategyMemorySeconds` sets the time (`604800`, seven days, by default; `0` always
|
|
199
213
|
tries the usual order first). After a failure sous forgets the remembered way and walks the whole list
|
|
200
|
-
again. When every way fails, one error lists each attempt and why it failed, then names the fixes:
|
|
214
|
+
again; a missing file is not a failure, so it keeps the way that found it missing. When every way fails, one error lists each attempt and why it failed, then names the fixes:
|
|
201
215
|
|
|
202
216
|
```text
|
|
203
217
|
Error: could not read gitlab.com/acme/private-recipes.
|
|
@@ -213,8 +227,8 @@ The fixes depend on what the attempts said:
|
|
|
213
227
|
|
|
214
228
|
- Every attempt could not connect (DNS, a refused connection, a timeout): the only fix is to check
|
|
215
229
|
that the machine can reach the host, or to set `HTTPS_PROXY`. No token is offered.
|
|
216
|
-
- git reached the repository and said
|
|
217
|
-
|
|
230
|
+
- git reached the repository and said the file is not there: the fix is to check the URL. No token is
|
|
231
|
+
offered, since the repository is not private.
|
|
218
232
|
- A token was found and refused: the attempt and the fix name where it came from (`GITLAB_TOKEN`,
|
|
219
233
|
`git credential fill`, `glab`) instead of asking you to set it.
|
|
220
234
|
- `gh` or `glab` is installed but printed no token: the fixes include `gh auth login` or
|
|
@@ -226,11 +240,17 @@ once, and the error is told once, naming every recipe it stopped.
|
|
|
226
240
|
The HTTP reads honor `HTTPS_PROXY`, `HTTP_PROXY` and `NO_PROXY` (or their lowercase spellings), as
|
|
227
241
|
git does.
|
|
228
242
|
|
|
229
|
-
A cached index is checked again once its freshness window lapses
|
|
230
|
-
"not modified" through the
|
|
243
|
+
A cached index is checked again once its freshness window lapses, by reading the manifest again and the
|
|
244
|
+
file the copy came from. GitHub answers that check with "not modified" through the file's `ETag`, which
|
|
245
|
+
sous sends only when it reads the same file the copy came from. GitLab sends no `ETag` for a file, so sous keeps the
|
|
231
246
|
`X-Gitlab-Content-Sha256` header GitLab sends instead, asks for that header alone with one `HEAD`
|
|
232
247
|
request, and downloads the index again only when the hash changed.
|
|
233
248
|
|
|
249
|
+
**A repository that publishes through its tags** (`index: tags`) is read with git too: `git ls-remote`
|
|
250
|
+
lists the tags, and fetches bring only the commits, trees and manifests a reader needs, as
|
|
251
|
+
[A repository that publishes through its tags](repositories-file-formats.md#a-repository-that-publishes-through-its-tags)
|
|
252
|
+
describes. These commands use the same credentials, clone URLs and token as a recipe's files, below.
|
|
253
|
+
|
|
234
254
|
**A recipe's files** come from git itself: a shallow, blobless, sparse clone at the version's
|
|
235
255
|
tag, fetching only the blobs inside that one recipe folder. That means git's own credentials
|
|
236
256
|
apply, exactly as they would for a manual clone: credential helpers, the SSH agent, proxies and
|
|
@@ -378,8 +398,10 @@ It exists for local development and for tests: authoring a repository, trying a
|
|
|
378
398
|
publishing it, or running a whole workflow with no network at all. Two details make it behave
|
|
379
399
|
like a host rather than like a shortcut.
|
|
380
400
|
|
|
381
|
-
-
|
|
382
|
-
still writing is picked up without a commit, and from
|
|
401
|
+
- Each file sous reads (the manifest, then the index it leads to) is read from the **working tree** when
|
|
402
|
+
it is there, so an index you are still writing is picked up without a commit, and from
|
|
403
|
+
`git show HEAD:<path>` otherwise. A repository that publishes through its tags has them read through
|
|
404
|
+
its `file://` URL, the way git reads any remote.
|
|
383
405
|
- A recipe's files come from a clone of the local repository at the version's **tag**, exactly as
|
|
384
406
|
a hosted repository would be fetched, so a version really is the version its tag points at. A
|
|
385
407
|
directory that is not a git repository, or one missing that tag, has no versions to honor, so
|
|
@@ -262,7 +262,7 @@ One repository has to be trusted before this can continue.
|
|
|
262
262
|
This project now trusts 'my-recipes'. Nothing from it has been installed.
|
|
263
263
|
```
|
|
264
264
|
|
|
265
|
-
|
|
265
|
+
Sous reads the repository's `sous.repo.yaml` and the index it leads to, and nothing is installed. The entry lands
|
|
266
266
|
in `.sous/conf.d/500-repos.jsonc`, which is committed, so a colleague inherits the repository and
|
|
267
267
|
the trust decision together.
|
|
268
268
|
|
|
@@ -352,7 +352,7 @@ Fix one of these:
|
|
|
352
352
|
set up git access to gitlab.com (an SSH key, or a credential helper)
|
|
353
353
|
```
|
|
354
354
|
|
|
355
|
-
Sous tried every way it has to read the repository
|
|
355
|
+
Sous tried every way it has to read the repository, and each line says why that one failed. Any
|
|
356
356
|
one fix lets sous read the index and download recipe files: sous hands the token it found to git for an
|
|
357
357
|
HTTPS download, so a token alone is enough to build. `gh` and `glab` are not needed to read.
|
|
358
358
|
|
|
@@ -365,7 +365,27 @@ The order sous tries, and where it finds a token, are under
|
|
|
365
365
|
The fixes follow from what the attempts said. When every attempt could not connect, the one fix is to
|
|
366
366
|
check that this machine can reach the host, or to set `HTTPS_PROXY` on a network that needs a proxy;
|
|
367
367
|
sous's HTTP reads honor `HTTPS_PROXY`, `HTTP_PROXY` and `NO_PROXY`. When git reached the repository and
|
|
368
|
-
said
|
|
368
|
+
said the file is not there, the fix is to check the URL, and no token is offered.
|
|
369
|
+
|
|
370
|
+
## A repository with nothing to read
|
|
371
|
+
|
|
372
|
+
```text
|
|
373
|
+
Error: https://github.com/acme/recipes has no 'sous.repo.yaml' (at its root or in '.sous/') and no
|
|
374
|
+
'sous.index.json', so it is not a sous recipe repository, or nothing in it has been released yet.
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
Sous reached the repository and found neither a manifest nor an index. Check the URL first. If the
|
|
378
|
+
repository is meant to publish recipes, its maintainers commit a `sous.repo.yaml` and release.
|
|
379
|
+
|
|
380
|
+
```text
|
|
381
|
+
Error: https://github.com/acme/recipes/sous.repo.yaml says its index is at 'published/index.json', and
|
|
382
|
+
https://github.com/acme/recipes has no file there.
|
|
383
|
+
The repository's maintainers fix this: release again, or correct 'index' in the manifest.
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
The manifest's `index` setting names a file the repository does not hold. Only the repository's
|
|
387
|
+
maintainers can fix it. Where sous looks, in order, is under
|
|
388
|
+
[How a project reads a repository](repositories-file-formats.md#how-a-project-reads-a-repository).
|
|
369
389
|
|
|
370
390
|
## A recipe that requires a plugin
|
|
371
391
|
|
|
@@ -187,7 +187,7 @@ Trusting a repository trusts every namespace and recipe in it, including recipes
|
|
|
187
187
|
and it is the only security boundary sous draws. Trust authorizes those recipes to run code on your
|
|
188
188
|
machine with your own permissions, whether sous runs it during a build or your agent runs it (a
|
|
189
189
|
skill's scripts, a hook), and sous sandboxes neither. Before a repository is trusted nothing from it
|
|
190
|
-
runs, and the question itself reads only its index. Sous cannot tell you whether a repository
|
|
190
|
+
runs, and the question itself reads only its manifest and its index. Sous cannot tell you whether a repository
|
|
191
191
|
deserves that, and says so rather than implying otherwise. Where there is no terminal to ask on, the
|
|
192
192
|
run fails and names the repositories and the exact command that grants the trust:
|
|
193
193
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sous-io/sous",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Compiles AI coding agent configuration (CLAUDE.md, skills, memories) from LiquidJS templates",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,49 +39,49 @@
|
|
|
39
39
|
"sous.config.schema.json"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@sous-io/sous-plugin-api": "1.2.
|
|
42
|
+
"@sous-io/sous-plugin-api": "1.2.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"esbuild": "^0.27.4",
|
|
46
46
|
"jsonc-parser": "^3.3.1",
|
|
47
47
|
"yaml": "^2.9.0",
|
|
48
48
|
"zod": "^4.4.3",
|
|
49
|
-
"@sous-io/sous-lib-
|
|
50
|
-
"@sous-io/sous-lib-
|
|
51
|
-
"@sous-io/sous-plugin-authoring": "1.2.
|
|
52
|
-
"@sous-io/sous-plugin-build": "1.2.
|
|
53
|
-
"@sous-io/sous-plugin-claude-code": "1.2.
|
|
54
|
-
"@sous-io/sous-plugin-
|
|
55
|
-
"@sous-io/sous-plugin-
|
|
56
|
-
"@sous-io/sous-plugin-confd": "1.2.
|
|
57
|
-
"@sous-io/sous-plugin-
|
|
58
|
-
"@sous-io/sous-plugin-formats": "1.2.
|
|
59
|
-
"@sous-io/sous-plugin-git": "1.2.
|
|
60
|
-
"@sous-io/sous-plugin-
|
|
61
|
-
"@sous-io/sous-plugin-
|
|
62
|
-
"@sous-io/sous-plugin-
|
|
63
|
-
"@sous-io/sous-plugin-
|
|
64
|
-
"@sous-io/sous-plugin-
|
|
65
|
-
"@sous-io/sous-plugin-
|
|
66
|
-
"@sous-io/sous-plugin-
|
|
67
|
-
"@sous-io/sous-plugin-
|
|
68
|
-
"@sous-io/sous-plugin-local": "1.2.
|
|
69
|
-
"@sous-io/sous-plugin-
|
|
70
|
-
"@sous-io/sous-plugin-
|
|
71
|
-
"@sous-io/sous-plugin-
|
|
72
|
-
"@sous-io/sous-plugin-
|
|
73
|
-
"@sous-io/sous-plugin-
|
|
74
|
-
"@sous-io/sous-plugin-
|
|
75
|
-
"@sous-io/sous-plugin-refs": "1.2.
|
|
76
|
-
"@sous-io/sous-plugin-update": "1.2.
|
|
77
|
-
"@sous-io/sous-plugin-variables": "1.2.
|
|
78
|
-
"@sous-io/sous-plugin-
|
|
79
|
-
"@sous-io/sous-plugin-
|
|
80
|
-
"@sous-io/sous-plugin-
|
|
81
|
-
"@sous-io/sous-plugin-editor": "1.2.
|
|
82
|
-
"@sous-io/sous-plugin-doctor": "1.2.
|
|
83
|
-
"@sous-io/sous-plugin-
|
|
84
|
-
"@sous-io/sous-plugin-
|
|
49
|
+
"@sous-io/sous-lib-core": "1.2.1",
|
|
50
|
+
"@sous-io/sous-lib-documents": "1.2.1",
|
|
51
|
+
"@sous-io/sous-plugin-authoring": "1.2.1",
|
|
52
|
+
"@sous-io/sous-plugin-build": "1.2.1",
|
|
53
|
+
"@sous-io/sous-plugin-claude-code": "1.2.1",
|
|
54
|
+
"@sous-io/sous-plugin-compiler": "1.2.1",
|
|
55
|
+
"@sous-io/sous-plugin-cli": "1.2.1",
|
|
56
|
+
"@sous-io/sous-plugin-confd": "1.2.1",
|
|
57
|
+
"@sous-io/sous-plugin-config-files": "1.2.1",
|
|
58
|
+
"@sous-io/sous-plugin-formats": "1.2.1",
|
|
59
|
+
"@sous-io/sous-plugin-git": "1.2.1",
|
|
60
|
+
"@sous-io/sous-plugin-github": "1.2.1",
|
|
61
|
+
"@sous-io/sous-plugin-gitlab": "1.2.1",
|
|
62
|
+
"@sous-io/sous-plugin-harnesses": "1.2.1",
|
|
63
|
+
"@sous-io/sous-plugin-host": "1.2.1",
|
|
64
|
+
"@sous-io/sous-plugin-expressions": "1.2.1",
|
|
65
|
+
"@sous-io/sous-plugin-inspect": "1.2.1",
|
|
66
|
+
"@sous-io/sous-plugin-liquid": "1.2.1",
|
|
67
|
+
"@sous-io/sous-plugin-init": "1.2.1",
|
|
68
|
+
"@sous-io/sous-plugin-local": "1.2.1",
|
|
69
|
+
"@sous-io/sous-plugin-memories": "1.2.1",
|
|
70
|
+
"@sous-io/sous-plugin-mcp": "1.2.1",
|
|
71
|
+
"@sous-io/sous-plugin-pnpm": "1.2.1",
|
|
72
|
+
"@sous-io/sous-plugin-recipe-answers": "1.2.1",
|
|
73
|
+
"@sous-io/sous-plugin-recipes": "1.2.1",
|
|
74
|
+
"@sous-io/sous-plugin-npm": "1.2.1",
|
|
75
|
+
"@sous-io/sous-plugin-refs": "1.2.1",
|
|
76
|
+
"@sous-io/sous-plugin-update": "1.2.1",
|
|
77
|
+
"@sous-io/sous-plugin-variables": "1.2.1",
|
|
78
|
+
"@sous-io/sous-plugin-yarn": "1.2.1",
|
|
79
|
+
"@sous-io/sous-plugin-handlers": "1.2.1",
|
|
80
|
+
"@sous-io/sous-plugin-skills": "1.2.1",
|
|
81
|
+
"@sous-io/sous-plugin-editor": "1.2.1",
|
|
82
|
+
"@sous-io/sous-plugin-doctor": "1.2.1",
|
|
83
|
+
"@sous-io/sous-plugin-codex": "1.2.1",
|
|
84
|
+
"@sous-io/sous-plugin-migrations": "1.2.1"
|
|
85
85
|
},
|
|
86
86
|
"engines": {
|
|
87
87
|
"node": ">=22"
|
|
@@ -45,6 +45,14 @@ A recipe repository holds three kinds of file that sous reads:
|
|
|
45
45
|
- `sous.index.json`, the **index**: the catalog projects read, written only by `sous repo release`.
|
|
46
46
|
NEVER edit it by hand.
|
|
47
47
|
|
|
48
|
+
A project reads `sous.repo.yaml` first (the root's, then `.sous/`'s) and follows its `index` setting:
|
|
49
|
+
a `published` block or `index: embedded` holds the index in the manifest; `index: <path>.json` names
|
|
50
|
+
an index file; `index: tags` has projects build the index from the release tags; with none of these,
|
|
51
|
+
the index is the `sous.index.json` beside the manifest, and without one nothing is published yet. A
|
|
52
|
+
root `sous.index.json` is read only when there is no manifest. `sous repo release` writes the
|
|
53
|
+
root `sous.index.json`. The full rules, and what a tags-only repository costs to read:
|
|
54
|
+
https://sous.io/markdown/#/repositories-file-formats?id=how-a-project-reads-a-repository
|
|
55
|
+
|
|
48
56
|
Manifests are YAML (`.yaml`, `.yml`) or JSON (`.json`, `.jsonc`, both allowing comments and
|
|
49
57
|
trailing commas), never JavaScript: sous reads them before anyone has trusted the repository, so
|
|
50
58
|
nothing in them may run. A key sous does not know is refused in the repo manifest and skipped with
|