@sous-io/sous 1.2.2 → 1.3.0
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 +134 -134
- package/docs/markdown/_sidebar.md +2 -0
- package/docs/markdown/commands.md +9 -9
- package/docs/markdown/config-inspection.md +1 -1
- package/docs/markdown/config-layers.md +2 -2
- package/docs/markdown/project-recipes.md +2 -2
- package/docs/markdown/repositories-authoring.md +9 -6
- package/docs/markdown/repositories-consuming.md +8 -6
- package/docs/markdown/repositories-contributing.md +11 -14
- package/docs/markdown/repositories-file-formats.md +14 -14
- package/docs/markdown/repositories-providers.md +18 -17
- package/docs/markdown/repositories-quickstart.md +13 -12
- package/docs/markdown/repositories-troubleshooting.md +8 -8
- package/docs/markdown/repositories-variables.md +2 -2
- package/docs/markdown/repositories.md +36 -18
- package/docs/markdown/skill-categories.md +5 -4
- package/package.json +38 -38
- package/recipes/core/sous-skills/skills/about-agent-skills/SKILL.tpl.md +1 -1
- package/recipes/core/sous-skills/skills/about-liquid-templates/SKILL.tpl.md +1 -1
- package/recipes/core/sous-skills/skills/about-sous/SKILL.tpl.md +17 -11
- package/recipes/core/sous-skills/skills/about-sous-configuration/SKILL.tpl.md +8 -1
- package/recipes/core/sous-skills/skills/about-sous-recipes/SKILL.tpl.md +1 -1
- package/recipes/core/sous-skills/skills/about-sous-repos/SKILL.tpl.md +7 -6
- package/recipes/core/sous-skills/skills/create-skill/SKILL.tpl.md +1 -1
- package/recipes/core/sous-skills/sous.recipe.yaml +6 -12
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
- [What sous init writes, and sous init hooks](architecture/specifications/S14-init-and-git-hooks.md)
|
|
43
43
|
- [Claude Code](architecture/specifications/S15-claude-code.md)
|
|
44
44
|
- [Codex](architecture/specifications/S16-codex.md)
|
|
45
|
+
- [Publishing](architecture/specifications/S17-publishing.md)
|
|
45
46
|
- **ADRs**
|
|
46
47
|
- [0001: Repositories](adrs/0001-repositories.md)
|
|
47
48
|
- [0002: Recipe answers in the template scope](adrs/0002-recipe-answers-in-templates.md)
|
|
@@ -87,3 +88,4 @@
|
|
|
87
88
|
- [0042: Retired recipes stay in the index and name their replacements](adrs/0042-retired-recipes.md)
|
|
88
89
|
- [0043: Every command runs the waiting migrations first](adrs/0043-migrations-before-every-command.md)
|
|
89
90
|
- [0044: A recipe can recommend other recipes, and sous asks before subscribing to them](adrs/0044-recipe-recommendations.md)
|
|
91
|
+
- [0045: `core` comes from `sous`, and `the-pantry` replaces `sous-recipes`](adrs/0045-core-in-sous-and-the-pantry.md)
|
|
@@ -285,7 +285,7 @@ one has the same key as a subscribed recipe, the subscribed one is not built, an
|
|
|
285
285
|
(unless the subscribed one is `core`):
|
|
286
286
|
|
|
287
287
|
```text
|
|
288
|
-
Skipped the subscribed
|
|
288
|
+
Skipped the subscribed the-pantry:tooling/linting: this project's own recipe project:tooling/linting is used instead.
|
|
289
289
|
```
|
|
290
290
|
|
|
291
291
|
A build compiles only the recipes whose subscriptions are switched on on this machine. Each one it skips gets a
|
|
@@ -589,7 +589,7 @@ Inspects the built configuration; see [Inspecting and validating](config-inspect
|
|
|
589
589
|
|
|
590
590
|
```bash
|
|
591
591
|
sous config show | jq .compilation
|
|
592
|
-
sous config get repos.
|
|
592
|
+
sous config get repos.the-pantry.url --layers
|
|
593
593
|
```
|
|
594
594
|
|
|
595
595
|
## repo
|
|
@@ -606,7 +606,7 @@ Manages the recipe repositories the project trusts; see [Repositories](repositor
|
|
|
606
606
|
- `repo list` lists the trusted repositories; `--verbose` adds the namespaces each publishes.
|
|
607
607
|
|
|
608
608
|
```bash
|
|
609
|
-
sous repo add https://github.com/sous-io/
|
|
609
|
+
sous repo add https://github.com/sous-io/the-pantry --name recipes
|
|
610
610
|
sous repo remove recipes --dry-run
|
|
611
611
|
```
|
|
612
612
|
|
|
@@ -631,9 +631,9 @@ checkout. `--global` links it for every project on this machine, and `--branch`,
|
|
|
631
631
|
newest versions their ranges allow, and `--remove` deletes a checkout sous cloned.
|
|
632
632
|
|
|
633
633
|
```bash
|
|
634
|
-
sous repo link
|
|
635
|
-
sous repo link
|
|
636
|
-
sous repo unlink
|
|
634
|
+
sous repo link the-pantry ~/Projects/the-pantry
|
|
635
|
+
sous repo link the-pantry --generate-branch --latest
|
|
636
|
+
sous repo unlink the-pantry --update
|
|
637
637
|
```
|
|
638
638
|
|
|
639
639
|
### `sous repo contribute REF`
|
|
@@ -754,7 +754,7 @@ explaining the repository `project`.
|
|
|
754
754
|
asks and where its files go, even before anything installs it.
|
|
755
755
|
|
|
756
756
|
```bash
|
|
757
|
-
sous namespace show sous
|
|
757
|
+
sous namespace show sous:core
|
|
758
758
|
sous recipe show omakase/house
|
|
759
759
|
```
|
|
760
760
|
|
|
@@ -802,9 +802,9 @@ $ sous subscription add workflow --non-interactive
|
|
|
802
802
|
Error: Sous has to ask which 'workflow' you meant, and it is not running where it can ask.
|
|
803
803
|
Why: the '--non-interactive' flag was passed.
|
|
804
804
|
'workflow' matched 2 things:
|
|
805
|
-
|
|
805
|
+
the-pantry:workflow (the whole namespace 'workflow' in the repository 'the-pantry')
|
|
806
806
|
qa:workflow (the whole namespace 'workflow' in the repository 'qa')
|
|
807
|
-
Answer it ahead of time: write the full reference (for example '
|
|
807
|
+
Answer it ahead of time: write the full reference (for example 'the-pantry:workflow'), or
|
|
808
808
|
pass '--accept-first' to take the first candidate listed above.
|
|
809
809
|
```
|
|
810
810
|
|
|
@@ -71,7 +71,7 @@ Prints one value by dot-path, with `[n]` for array indices:
|
|
|
71
71
|
|
|
72
72
|
```bash
|
|
73
73
|
sous config get name
|
|
74
|
-
sous config get repos.
|
|
74
|
+
sous config get repos.the-pantry.url
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
Scalars print raw (no quotes); objects and arrays print as pretty JSON. A missing path exits
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Layers and Merging
|
|
2
2
|
|
|
3
3
|
Sous builds one config for a project from many sources: the primary `sous.config.*` file, each
|
|
4
|
-
file in `conf.d/`, the config files recipes ship, the entries sous adds itself (the
|
|
5
|
-
|
|
4
|
+
file in `conf.d/`, the config files recipes ship, the entries sous adds itself (the repositories
|
|
5
|
+
`sous` and `the-pantry`, and the `core` subscription), and any plugin that changes the config. Sous combines
|
|
6
6
|
them all before any command does its work, and again after a command that changed the config.
|
|
7
7
|
|
|
8
8
|
## Which files are read
|
|
@@ -132,7 +132,7 @@ published recipe into `.sous/recipes/` to change it. The project recipe is used.
|
|
|
132
132
|
keeps its pin in the lockfile but is not built, and every build says so:
|
|
133
133
|
|
|
134
134
|
```text
|
|
135
|
-
Skipped the subscribed
|
|
135
|
+
Skipped the subscribed the-pantry:tooling/linting: this project's own recipe project:tooling/linting is used instead.
|
|
136
136
|
```
|
|
137
137
|
|
|
138
138
|
Delete the project recipe, or leave it out with `projectRecipes.exclude`, and the next build uses
|
|
@@ -154,7 +154,7 @@ subscribes:
|
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
```json
|
|
157
|
-
"workflow/task-files": { "kind": "subscribes", "repo": "
|
|
157
|
+
"workflow/task-files": { "kind": "subscribes", "repo": "the-pantry", "version": "1.0.2",
|
|
158
158
|
"requestedBy": ["tooling/review-helpers"], "hash": "sha256-..." }
|
|
159
159
|
```
|
|
160
160
|
|
|
@@ -47,8 +47,11 @@ directory that already holds a sous config keeps it, and init is skipped with a
|
|
|
47
47
|
The command never replaces a file that exists, so it is safe to run in a directory that already holds a README
|
|
48
48
|
or a `.gitignore`. A file that exists (`README.md`, `CONTRIBUTING.md`, `sous.repo.yaml`, the workflow, the example
|
|
49
49
|
recipe's files) is left as it is and named in a note; when it keeps an existing `sous.repo.yaml`, it writes no
|
|
50
|
-
example recipe, which that manifest would not list. `.gitignore`
|
|
51
|
-
below the lines already there, and a second run leaves
|
|
50
|
+
example recipe, which that manifest would not list. `.gitignore` and `.gitattributes` each gain a block between
|
|
51
|
+
sous's marker comments, below the lines already there, and a second run leaves them as they are. The
|
|
52
|
+
`.gitattributes` block, `* text=auto eol=lf`, keeps every checkout at LF line endings: sous hashes recipe files
|
|
53
|
+
byte for byte, so a checkout that turned them into CRLF (git on Windows, by default) would change every
|
|
54
|
+
recipe's hash. `--overwrite` replaces the existing files with
|
|
52
55
|
the scaffold's. `--force` is the same flag as `--yes`; it used to mean overwrite.
|
|
53
56
|
|
|
54
57
|
`sous.repo.yaml` says what the repository publishes, and each recipe folder carries one `sous.recipe.yaml` beside the files it contributes. The scaffold writes no
|
|
@@ -56,7 +59,7 @@ the scaffold's. `--force` is the same flag as `--yes`; it used to mean overwrite
|
|
|
56
59
|
`sous repo release` records the catalog of published versions below the fields you edit. `CONTRIBUTING.md` is
|
|
57
60
|
for agents: it says that contribution instructions are written for agents, and that `sous build` after cloning
|
|
58
61
|
installs the sous core skills, which explain how a recipe repository works. The scaffold follows
|
|
59
|
-
[`sous-io/
|
|
62
|
+
[`sous-io/the-pantry`](https://github.com/sous-io/the-pantry), a complete repository minus its recipes, and
|
|
60
63
|
its placeholder skill is named `SKILL.tpl.md` because it ends with a footer that only a render fills in. Nothing else is
|
|
61
64
|
fixed: recipe folders may live anywhere, and what makes a folder a recipe is that `sous.repo.yaml` lists its
|
|
62
65
|
path under `recipes`. Both hand-written manifests are YAML or JSON and never JavaScript, because manifests are
|
|
@@ -309,7 +312,7 @@ are asked and its answers reach your templates. Both hold plain strings naming t
|
|
|
309
312
|
depends:
|
|
310
313
|
- workflow/qa-helper # a sibling: ^ its version at release
|
|
311
314
|
- workflow/qa-helper@1.1.4 # a sibling at exactly one version
|
|
312
|
-
- github://sous-io/
|
|
315
|
+
- github://sous-io/the-pantry/workflow/sat@^1.0 # another repository
|
|
313
316
|
- gitlab://gitlab.example.com/group/subgroup/proj/-/qa/lint # a self-hosted host, with subgroups
|
|
314
317
|
- https://github.com/acme/recipes/tree/main/recipes/lint # a URL copied from the browser
|
|
315
318
|
subscribes:
|
|
@@ -343,7 +346,7 @@ recommends:
|
|
|
343
346
|
reason: >-
|
|
344
347
|
/review flags untested changes much more precisely when the coverage skill is present. Skip it if your
|
|
345
348
|
project has no test suite.
|
|
346
|
-
- ref: github://sous-io/
|
|
349
|
+
- ref: github://sous-io/the-pantry/workflow/task-files@^1.2
|
|
347
350
|
reason: Lets /review attach its findings to the current task file.
|
|
348
351
|
```
|
|
349
352
|
|
|
@@ -679,7 +682,7 @@ commands this section and [Edit a repository in place](#edit-a-repository-in-pla
|
|
|
679
682
|
|
|
680
683
|
`sous repo submit` proposes a change to a repository's maintainers and follows it through; it never publishes
|
|
681
684
|
and never writes to a repository directly. Run it inside the recipe repository you changed, or from a project
|
|
682
|
-
that links it: `sous repo submit
|
|
685
|
+
that links it: `sous repo submit the-pantry` runs in the linked checkout, and with no argument the project's
|
|
683
686
|
only linked repository is used (several are a question). A repository you have since unlinked is still
|
|
684
687
|
submitted from the checkout sous cloned for it, with a note saying so; with no checkout at all there is no
|
|
685
688
|
working copy to propose from, and `submit` says so.
|
|
@@ -11,15 +11,15 @@ decision covers is [Trust](repositories.md#trust). Only what the repository publ
|
|
|
11
11
|
([How a project reads a repository](repositories-file-formats.md#how-a-project-reads-a-repository)):
|
|
12
12
|
|
|
13
13
|
```term
|
|
14
|
-
$ sous repo add https://github.com/sous-io/
|
|
14
|
+
$ sous repo add https://github.com/sous-io/the-pantry
|
|
15
15
|
// the trust question, then a small download
|
|
16
16
|
▶ Adding a repository:
|
|
17
|
-
Repository:
|
|
18
|
-
Location : https://github.com/sous-io/
|
|
17
|
+
Repository: the-pantry
|
|
18
|
+
Location : https://github.com/sous-io/the-pantry
|
|
19
19
|
Provider : github
|
|
20
20
|
Namespaces: communication, core, tool-usage, workflow
|
|
21
21
|
Recipes : 6
|
|
22
|
-
This project now trusts '
|
|
22
|
+
This project now trusts 'the-pantry'. Nothing from it has been installed.
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
`--name` sets the short name refs will use (it defaults to the last segment of the URL; `sous repo
|
|
@@ -443,8 +443,10 @@ config file rather than the managed layer is named and left alone.
|
|
|
443
443
|
## Opt out of `core`
|
|
444
444
|
|
|
445
445
|
The `core` subscription is an ordinary config entry, explained under
|
|
446
|
-
[the built-in core](repositories.md#the-
|
|
447
|
-
`subscriptions: { core: { enabled: false } }` into your config removes it.
|
|
446
|
+
[the built-in core](repositories.md#the-built-in-repositories-and-core); writing
|
|
447
|
+
`subscriptions: { core: { enabled: false } }` into your config removes it. That is the only way to drop
|
|
448
|
+
`core`: the `sous` repository that publishes it cannot be switched off, and
|
|
449
|
+
`repos: { "the-pantry": { enabled: false } }` switches off the official recipe repository instead.
|
|
448
450
|
|
|
449
451
|
`sous subscription remove core` writes exactly that into the managed subscriptions layer, because
|
|
450
452
|
there is no entry to delete: the one sous provides comes back on the next run, so only a recorded
|
|
@@ -13,7 +13,7 @@ hand.
|
|
|
13
13
|
Name the repository, or any namespace or recipe it publishes:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
sous repo contribute
|
|
16
|
+
sous repo contribute the-pantry # the repository itself
|
|
17
17
|
sous repo contribute workflow/task-files # the repository that publishes this recipe
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -53,7 +53,7 @@ Finishing proposes whatever is not proposed yet, so you can go straight to [Fini
|
|
|
53
53
|
now and keep working, run the submit step on its own:
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
|
-
sous repo submit
|
|
56
|
+
sous repo submit the-pantry --title "Clarify the resume steps" --body "The resume steps skipped the task file."
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
`sous repo submit` validates the repository, pushes the branch (through a fork on your own account when you
|
|
@@ -64,15 +64,15 @@ under [Contribute to someone else's repository](repositories-authoring.md#contri
|
|
|
64
64
|
## Revise it
|
|
65
65
|
|
|
66
66
|
Review comments are answered with more commits on the same branch. Commit them, then run
|
|
67
|
-
`sous repo submit
|
|
67
|
+
`sous repo submit the-pantry` again: it finds the open proposal for the branch and pushes the new commits into
|
|
68
68
|
it. A new `--title` or `--body` replaces the proposal's own. With nothing new to send, it reports where the
|
|
69
|
-
proposal stands (review, checks, and whether it can merge). `sous repo submit
|
|
69
|
+
proposal stands (review, checks, and whether it can merge). `sous repo submit the-pantry --status` only
|
|
70
70
|
reports.
|
|
71
71
|
|
|
72
72
|
## Finish
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
|
-
sous repo contribute
|
|
75
|
+
sous repo contribute the-pantry --finish
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
Finishing first looks at the branch for work no proposal carries yet: uncommitted changes, commits that were never
|
|
@@ -102,7 +102,7 @@ A contribution ships when the repository's maintainers merge it and the reposito
|
|
|
102
102
|
that happened before you finished, `--finish` already moved your pins to it. If it happens later, move them with
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
|
-
sous update
|
|
105
|
+
sous update the-pantry
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
which runs the same update `unlink --update` runs; with `--dry-run` it only shows what it would move. See
|
|
@@ -117,7 +117,7 @@ edits it, and says how to put it back. The rest of `sous.repo.yaml` is yours to
|
|
|
117
117
|
example.
|
|
118
118
|
|
|
119
119
|
**Versions depend on how the repository releases.** The release workflow `sous repo init` scaffolds, which
|
|
120
|
-
`
|
|
120
|
+
`the-pantry` also runs, publishes on every merge to the default branch with `sous repo release --ci`, and that
|
|
121
121
|
raises no versions: the version a merge publishes is the one the merged change declares. A recipe whose files
|
|
122
122
|
changed while its `version` still equals its last release tag stops that release. So, unless the repository's
|
|
123
123
|
contribution guide says its maintainers raise versions themselves, raise the recipe's `version` in its
|
|
@@ -126,15 +126,12 @@ or a new optional variable, and a major step for anything that breaks an existin
|
|
|
126
126
|
renaming a variable, or tightening a variable's validation). The changelog `sous repo submit` generates lists any
|
|
127
127
|
recipe your change touches without a version raise, with a warning that a `--ci` release refuses it, so a missed
|
|
128
128
|
one is visible in the proposal. The repository's
|
|
129
|
-
own guide is named by the `contribute` field of its `sous.repo.yaml`; for `
|
|
129
|
+
own guide is named by the `contribute` field of its `sous.repo.yaml`; for `the-pantry` it is its
|
|
130
130
|
`CONTRIBUTING.md`, and a repository `sous repo init` created starts with a `CONTRIBUTING.md` of the same kind.
|
|
131
131
|
|
|
132
|
-
**Core is edited in sous itself.** The `core`
|
|
133
|
-
source is
|
|
134
|
-
|
|
135
|
-
[`submissions`](repositories-file-formats.md#the-submissions-block) block: `sous repo submit` warns before
|
|
136
|
-
proposing a change that touches one and names where to send it instead, and the repository's own pull request
|
|
137
|
-
check refuses such a change. Propose core edits as a pull request to `sous-io/sous`.
|
|
132
|
+
**Core is edited in sous itself.** The `core` recipe is published from `sous-io/sous`, the repository of sous
|
|
133
|
+
itself, and its source is `.sous/recipes/core/sous-skills/` there. Propose core edits as a pull request to
|
|
134
|
+
`sous-io/sous`.
|
|
138
135
|
|
|
139
136
|
## The commands this chains
|
|
140
137
|
|
|
@@ -24,7 +24,7 @@ ref := [ repo ":" ] namespace [ "/" recipe [ "@" range ] ]
|
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
So `workflow` is a whole namespace, `workflow/task-files@^1.2.0` one recipe constrained to a range (npm's
|
|
27
|
-
rules; namespaces are not versioned), and `
|
|
27
|
+
rules; namespaces are not versioned), and `the-pantry:workflow/task-files` that recipe in a named
|
|
28
28
|
repository. Only a consuming project writes the `repo:` qualifier; it is that project's own label.
|
|
29
29
|
|
|
30
30
|
| Thing | Shape |
|
|
@@ -140,14 +140,14 @@ name: qa-remote-dep
|
|
|
140
140
|
version: 0.1.0
|
|
141
141
|
depends: # 'subscribes' takes the same two spellings
|
|
142
142
|
- workflow/qa-helper
|
|
143
|
-
- github://sous-io/
|
|
143
|
+
- github://sous-io/the-pantry/workflow/sub-agent-delegation@^1.0
|
|
144
144
|
recommends: # offered to the subscriber, who decides
|
|
145
145
|
- quality/lint-rules
|
|
146
146
|
- ref: quality/test-coverage
|
|
147
147
|
reason: >-
|
|
148
148
|
/review flags untested changes much more precisely when the coverage skill is present. Skip it if
|
|
149
149
|
your project has no test suite.
|
|
150
|
-
- ref: github://sous-io/
|
|
150
|
+
- ref: github://sous-io/the-pantry/workflow/task-files@^1.2
|
|
151
151
|
reason: Lets /review attach its findings to the current task file.
|
|
152
152
|
contents: # what a subscriber actually receives
|
|
153
153
|
- kind: skills
|
|
@@ -296,7 +296,7 @@ Both manifests accept a `submissions` block. On `sous.repo.yaml` it covers every
|
|
|
296
296
|
```yaml
|
|
297
297
|
submissions:
|
|
298
298
|
allowed: false # defaults to true
|
|
299
|
-
instead: Propose changes in sous-io/sous, under recipes/core/sous-skills/.
|
|
299
|
+
instead: Propose changes in sous-io/sous, under .sous/recipes/core/sous-skills/.
|
|
300
300
|
```
|
|
301
301
|
|
|
302
302
|
It exists for a recipe whose files are copied in from somewhere else: an edit merged into the copy is
|
|
@@ -328,7 +328,7 @@ older than 1.2.0 refuses a manifest holding it.
|
|
|
328
328
|
### Dependencies named by location
|
|
329
329
|
|
|
330
330
|
`depends`, `subscribes` and `recommends` name their targets by where they live: `workflow/qa-helper` is a sibling in this
|
|
331
|
-
same repository, and `github://sous-io/
|
|
331
|
+
same repository, and `github://sous-io/the-pantry/workflow/sub-agent-delegation@^1.0` is a recipe in
|
|
332
332
|
another one. Every spelling in [Ref forms](#ref-forms) that names a namespace or a recipe is accepted here,
|
|
333
333
|
except a `repo:` qualifier (one project's private name for a repository), a local path or `local://`
|
|
334
334
|
locator (a convenience, not a published location), and a location naming a whole repository with nothing
|
|
@@ -356,7 +356,7 @@ which each place allows. A refused form is an error saying what to write there i
|
|
|
356
356
|
| A bare name | `workflow` | a namespace (on the command line, also a recipe or anything else by that name) |
|
|
357
357
|
| Namespace and recipe | `workflow/alpha` | a recipe |
|
|
358
358
|
| Namespace, spelled out | `workflow/*` | a namespace |
|
|
359
|
-
| Repository-qualified | `
|
|
359
|
+
| Repository-qualified | `the-pantry:workflow/alpha` | a recipe in the repository this project calls `the-pantry` |
|
|
360
360
|
| With a range | `workflow/alpha@^1.2` | a recipe, within an npm-style range |
|
|
361
361
|
| Provider-scheme locator | `github://owner/repo/workflow`, `.../workflow/*`, `.../workflow/alpha` | a namespace or a recipe in that repository |
|
|
362
362
|
| A host other than the provider's own | `gitlab://gitlab.example.com/group/proj/-/workflow/alpha` | the same, on a self-hosted instance |
|
|
@@ -445,10 +445,10 @@ subscribes. The data may also be built from the release tags; see
|
|
|
445
445
|
"versions": { "0.1.0": {
|
|
446
446
|
"dependencies": {
|
|
447
447
|
"workflow/qa-helper": { "range": "^0.1.0", "declared": "workflow", "kind": "subscribes" },
|
|
448
|
-
"workflow/sub-agent-delegation": { "range": "^1.0", "repo": "github.com/sous-io/
|
|
449
|
-
"declared": "github://sous-io/
|
|
448
|
+
"workflow/sub-agent-delegation": { "range": "^1.0", "repo": "github.com/sous-io/the-pantry",
|
|
449
|
+
"declared": "github://sous-io/the-pantry/workflow/sub-agent-delegation@^1.0",
|
|
450
450
|
"kind": "depends" } },
|
|
451
|
-
"depends": [ "github://sous-io/
|
|
451
|
+
"depends": [ "github://sous-io/the-pantry/workflow/sub-agent-delegation@^1.0" ],
|
|
452
452
|
"subscribes": [ "workflow" ],
|
|
453
453
|
"recommends": [
|
|
454
454
|
{ "key": "quality/lint-rules", "range": "^0.3.0", "declared": "quality/lint-rules" },
|
|
@@ -536,7 +536,7 @@ define: it reads the index without error and treats a retired recipe as gone, so
|
|
|
536
536
|
restore there, as before, until the project moves to a newer sous.
|
|
537
537
|
|
|
538
538
|
**The `seeded` field.** Sous ships the `core` recipe in its own npm package, so a project can build before
|
|
539
|
-
reaching the network. That copy is folded into the
|
|
539
|
+
reaching the network. That copy is folded into the `sous` repository's published data in memory and resolved like
|
|
540
540
|
any other, marked `seeded: true`; if the repository already publishes it, the published copy wins. Sous
|
|
541
541
|
never writes `seeded` onto a fetched index, and when it writes the placeholder into the index cache it
|
|
542
542
|
stamps a fixed `$comment`, so a later run can tell its own placeholder from a real index and replace it.
|
|
@@ -663,7 +663,7 @@ A cached index's `readFrom` names the file the copy was read from (`sous.repo.ya
|
|
|
663
663
|
The marker makes an entry self-describing, so the store is sweepable without consulting a project:
|
|
664
664
|
|
|
665
665
|
```json
|
|
666
|
-
{ "formatVersion": 1, "repo": "github.com/sous-io/
|
|
666
|
+
{ "formatVersion": 1, "repo": "github.com/sous-io/the-pantry", "namespace": "workflow",
|
|
667
667
|
"name": "sub-agent-delegation", "version": "1.0.0", "sizeBytes": 3032,
|
|
668
668
|
"hash": "sha256-6841b6f61a9a62d84152bc0fcfe246af35b7f75001527d6addf55e51068f8387",
|
|
669
669
|
"fetchedAt": "2026-09-12T07:06:57.123Z", "lastAccessAt": "2026-09-12T07:06:57.292Z" }
|
|
@@ -696,8 +696,8 @@ These live at the top level of the merged config; [The config file](configuratio
|
|
|
696
696
|
|
|
697
697
|
```yaml
|
|
698
698
|
repos:
|
|
699
|
-
|
|
700
|
-
url: https://github.com/sous-io/
|
|
699
|
+
the-pantry:
|
|
700
|
+
url: https://github.com/sous-io/the-pantry
|
|
701
701
|
provider: github # inferred from the URL when omitted; github, gitlab, local, or a host a plugin adds
|
|
702
702
|
enabled: true # false opts out of a repository sous provides itself
|
|
703
703
|
alwaysPull: false # install a newer in-range version rather than holding the lock
|
|
@@ -728,7 +728,7 @@ projectRecipes: # the project's own recipes; both values are the defa
|
|
|
728
728
|
|-----|----------|-------|
|
|
729
729
|
| `repos` | the short name refs use | Adding a repository IS trusting it, and removing the entry withdraws that trust. The name `project` is reserved for the project's own recipes and is an error here |
|
|
730
730
|
| `subscriptions` | a ref key | A bare namespace (every recipe in it, including ones published later) or `namespace/recipe`. No repo qualifier and no range in the key |
|
|
731
|
-
| `enabled: false` | either of the two above | The opt-out for the entries sous provides itself
|
|
731
|
+
| `enabled: false` | either of the two above | The opt-out for the entries sous provides itself: the `the-pantry` repository and the `core` subscription. The `sous` repository cannot be switched off. An entry that holds only `enabled: false` needs no `url` |
|
|
732
732
|
| `declinedRecommendations` | a list | `string[]`, empty by default. Each entry is a recommended recipe or namespace the project declined, in canonical form (`namespace/recipe` or `namespace`); see [Recommended recipes](repositories-consuming.md#recommended-recipes) |
|
|
733
733
|
| `store` | fixed fields | Plain numbers, all optional; the values sous ships are defaults, not assumptions |
|
|
734
734
|
| `recipes` | content kind | What each kind does; see [recipes: what each content kind does](#recipes-what-each-content-kind-does) |
|
|
@@ -46,9 +46,9 @@ When you name a repository, sous tries each provider in turn (`github`, then `gi
|
|
|
46
46
|
Three spellings of a hosted URL are all understood, because all three are what people paste:
|
|
47
47
|
|
|
48
48
|
```text
|
|
49
|
-
https://github.com/sous-io/
|
|
50
|
-
git@github.com:sous-io/
|
|
51
|
-
ssh://git@github.com/sous-io/
|
|
49
|
+
https://github.com/sous-io/the-pantry
|
|
50
|
+
git@github.com:sous-io/the-pantry.git
|
|
51
|
+
ssh://git@github.com/sous-io/the-pantry
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
A trailing slash and a trailing `.git` are dropped before anything else happens, and the scheme
|
|
@@ -76,7 +76,7 @@ A named provider is honored for any host nobody recognizes. It is refused only w
|
|
|
76
76
|
**different** provider plainly owns the URL, because that is a contradiction rather than a hint:
|
|
77
77
|
|
|
78
78
|
```text
|
|
79
|
-
Error: The gitlab provider does not handle https://github.com/sous-io/
|
|
79
|
+
Error: The gitlab provider does not handle https://github.com/sous-io/the-pantry; that is a
|
|
80
80
|
github URL, which the github provider handles.
|
|
81
81
|
Drop '--provider' and let sous work it out, or name 'github'.
|
|
82
82
|
```
|
|
@@ -94,10 +94,11 @@ Error: Sous does not recognize the host in the repository URL
|
|
|
94
94
|
`sous repo list` shows which provider each trusted repository resolved to:
|
|
95
95
|
|
|
96
96
|
```text
|
|
97
|
-
Repository
|
|
98
|
-
|
|
99
|
-
qa-recipes
|
|
100
|
-
sous
|
|
97
|
+
Repository Provider Origin Linked Recipes URL
|
|
98
|
+
---------- -------- -------- ------ ----------- ---------------------------------------
|
|
99
|
+
qa-recipes local user no 0 /home/me/Projects/qa-recipes
|
|
100
|
+
sous github built in no not fetched https://github.com/sous-io/sous
|
|
101
|
+
the-pantry github built in no not fetched https://github.com/sous-io/the-pantry
|
|
101
102
|
```
|
|
102
103
|
|
|
103
104
|
## Repository identity
|
|
@@ -106,7 +107,7 @@ Canonicalizing a URL produces the repository's **identity**, `<host>/<owner path
|
|
|
106
107
|
lowercased and with any `.git` suffix gone:
|
|
107
108
|
|
|
108
109
|
```text
|
|
109
|
-
github.com/sous-io/
|
|
110
|
+
github.com/sous-io/the-pantry
|
|
110
111
|
gitlab.example.com/group/subgroup/project
|
|
111
112
|
localhost/home/me/projects/my-recipes
|
|
112
113
|
```
|
|
@@ -117,13 +118,13 @@ every machine-wide thing keys by:
|
|
|
117
118
|
|
|
118
119
|
| Keyed by identity | Looks like |
|
|
119
120
|
|---|---|
|
|
120
|
-
| the store entry | `~/.sous/cache/github.com/sous-io/
|
|
121
|
-
| the cached index | `~/.sous/cache/_indexes/github.com/sous-io/
|
|
122
|
-
| the index sidecar | `~/.sous/cache/_indexes/github.com/sous-io/
|
|
123
|
-
| the tags of a repository that publishes through them | `~/.sous/cache/_tags/github.com/sous-io/
|
|
124
|
-
| the lockfile's `identity` field | `github.com/sous-io/
|
|
121
|
+
| the store entry | `~/.sous/cache/github.com/sous-io/the-pantry/<namespace>/<recipe>/<version>/` |
|
|
122
|
+
| the cached index | `~/.sous/cache/_indexes/github.com/sous-io/the-pantry.json` |
|
|
123
|
+
| the index sidecar | `~/.sous/cache/_indexes/github.com/sous-io/the-pantry.meta.json` |
|
|
124
|
+
| the tags of a repository that publishes through them | `~/.sous/cache/_tags/github.com/sous-io/the-pantry.git` and `.json` |
|
|
125
|
+
| the lockfile's `identity` field | `github.com/sous-io/the-pantry` |
|
|
125
126
|
|
|
126
|
-
A repository's **short name** (`
|
|
127
|
+
A repository's **short name** (`the-pantry`) is something your project chose, and it keys
|
|
127
128
|
nothing shared: two projects may call one repository different things, and two may use one name
|
|
128
129
|
for different repositories. Keying by identity is what lets them share one cached copy without
|
|
129
130
|
colliding. See [The store on disk](repositories-file-formats.md#the-store-on-disk).
|
|
@@ -135,7 +136,7 @@ the `local` provider the HTTPS slot carries the absolute directory, because that
|
|
|
135
136
|
when a recipe is fetched.
|
|
136
137
|
|
|
137
138
|
?> A published manifest names a dependency in another repository by location, such as a locator
|
|
138
|
-
whose scheme is the provider's identifier: `github://sous-io/
|
|
139
|
+
whose scheme is the provider's identifier: `github://sous-io/the-pantry/workflow/sat@^1.1`. A
|
|
139
140
|
first segment containing a dot is read as the host, so `gitlab://gitlab.example.com/group/project/-/ns/recipe`
|
|
140
141
|
addresses a self-hosted instance; without one, the provider's public host is assumed. Where a
|
|
141
142
|
repository path ends, and what a browser URL's path looks like, is each provider's own rule, so a URL
|
|
@@ -301,7 +302,7 @@ anything is written and prints the repository's own contribution route instead:
|
|
|
301
302
|
```text
|
|
302
303
|
Error: The 'local' provider cannot propose a change on your behalf.
|
|
303
304
|
This repository asks that changes be sent this way:
|
|
304
|
-
https://github.com/sous-io/
|
|
305
|
+
https://github.com/sous-io/the-pantry/blob/main/CONTRIBUTING.md
|
|
305
306
|
```
|
|
306
307
|
|
|
307
308
|
That second line is the `contribute` field from the repository's `sous.repo.yaml`; sous prints it
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Repositories Quickstart
|
|
2
2
|
|
|
3
3
|
Twelve steps take you from an empty directory to a project whose agent skills come from the
|
|
4
|
-
official repository and from a repository you wrote yourself, with a lockfile
|
|
5
|
-
restore from. Budget about ten minutes.
|
|
4
|
+
official recipe repository (`the-pantry`) and from a repository you wrote yourself, with a lockfile
|
|
5
|
+
a colleague can restore from. Budget about ten minutes.
|
|
6
6
|
|
|
7
7
|
This page is the guided tour; [Repositories](repositories.md) explains the model behind it, and
|
|
8
8
|
[Consuming recipes](repositories-consuming.md) and
|
|
@@ -73,14 +73,15 @@ sous recipe list
|
|
|
73
73
|
```text
|
|
74
74
|
Recipe Repository Latest Pinned Subscribed What it is
|
|
75
75
|
-------------------------- ------------ ------ ------ ---------- ------------------------------
|
|
76
|
-
communication/control-flow
|
|
77
|
-
core/sous-skills sous
|
|
78
|
-
workflow/task-files
|
|
76
|
+
communication/control-flow the-pantry 1.0.0 no Generic interaction skills
|
|
77
|
+
core/sous-skills sous 0.2.0 0.2.0 yes What sous is, and how it works
|
|
78
|
+
workflow/task-files the-pantry 1.0.2 no Per-branch task files
|
|
79
79
|
...
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
This reads the cached index of every repository the project trusts, so it works offline and
|
|
83
|
-
downloads nothing.
|
|
83
|
+
downloads nothing. Both built-in repositories are trusted out of the box: `sous`, which publishes
|
|
84
|
+
`core`, and `the-pantry`, the official recipe repository.
|
|
84
85
|
|
|
85
86
|
Before subscribing to something, read it:
|
|
86
87
|
|
|
@@ -89,7 +90,7 @@ sous recipe show workflow/task-files
|
|
|
89
90
|
```
|
|
90
91
|
|
|
91
92
|
```text
|
|
92
|
-
Repository :
|
|
93
|
+
Repository : the-pantry
|
|
93
94
|
Latest version : 1.0.2
|
|
94
95
|
Subscribed : no
|
|
95
96
|
...
|
|
@@ -116,8 +117,8 @@ two questions:
|
|
|
116
117
|
➔ What was installed:
|
|
117
118
|
Recipe Version Repository Why
|
|
118
119
|
----------------------------- ------- ------------ --------------------------
|
|
119
|
-
workflow/sub-agent-delegation 1.0.0
|
|
120
|
-
workflow/task-files 1.0.2
|
|
120
|
+
workflow/sub-agent-delegation 1.0.0 the-pantry needed by workflow/task-files
|
|
121
|
+
workflow/task-files 1.0.2 the-pantry you subscribed to it
|
|
121
122
|
|
|
122
123
|
➔ Answers stored:
|
|
123
124
|
taskFileRoot : .sous/tasks TASK_FILE_ROOT in .env
|
|
@@ -289,9 +290,9 @@ sous subscription add workflow/example
|
|
|
289
290
|
workflow/example 0.1.0 my-recipes you subscribed to it
|
|
290
291
|
```
|
|
291
292
|
|
|
292
|
-
Your skill is now in `.claude/skills/` beside the ones from the official repository
|
|
293
|
-
a recipe's files is special once they are on disk, and nothing
|
|
294
|
-
else's.
|
|
293
|
+
Your skill is now in `.claude/skills/` beside the ones from the official recipe repository
|
|
294
|
+
(`the-pantry`). Nothing about a recipe's files is special once they are on disk, and nothing
|
|
295
|
+
distinguishes yours from anyone else's.
|
|
295
296
|
|
|
296
297
|
## 11. Commit the lockfile
|
|
297
298
|
|
|
@@ -10,7 +10,7 @@ lines under the first sentence of a failure, because that is where the remedy is
|
|
|
10
10
|
|
|
11
11
|
```text
|
|
12
12
|
Error: None of this project's repositories publishes the recipe 'workflow/nope'.
|
|
13
|
-
Checked just now: qa-recipes,
|
|
13
|
+
Checked just now: qa-recipes, the-pantry.
|
|
14
14
|
Check the spelling, or run 'sous repo search nope' to look for it. If a repository this project
|
|
15
15
|
has not added publishes it, add that one with 'sous repo add <url>'.
|
|
16
16
|
```
|
|
@@ -43,8 +43,8 @@ Error: Sous has to ask which 'task-files' you meant, and it is not running where
|
|
|
43
43
|
'task-files' matched 2 things:
|
|
44
44
|
acme:workflow/task-files (the recipe 'task-files' in the namespace 'workflow' of the
|
|
45
45
|
repository 'acme')
|
|
46
|
-
|
|
47
|
-
the repository '
|
|
46
|
+
the-pantry:workflow/task-files (the recipe 'task-files' in the namespace 'workflow' of
|
|
47
|
+
the repository 'the-pantry')
|
|
48
48
|
Answer it ahead of time: write the full reference (for example 'acme:workflow/task-files'), or
|
|
49
49
|
pass '--accept-first' to take the first candidate listed above.
|
|
50
50
|
```
|
|
@@ -217,7 +217,7 @@ fatal: unable to access 'https://github.com/acme/recipes/': Could not resolve ho
|
|
|
217
217
|
## A store entry that fails its hash
|
|
218
218
|
|
|
219
219
|
```text
|
|
220
|
-
The cached copy of github.com/sous-io/sous
|
|
220
|
+
The cached copy of github.com/sous-io/sous:core/sous-skills@0.2.0 did not match its
|
|
221
221
|
recorded content hash, so it was removed from the store and will be fetched again.
|
|
222
222
|
```
|
|
223
223
|
|
|
@@ -256,10 +256,10 @@ same rule.
|
|
|
256
256
|
## Core skills missing after a sous upgrade
|
|
257
257
|
|
|
258
258
|
Every project is subscribed to the `core` namespace, and the matching recipe ships inside the sous
|
|
259
|
-
package, so a first run with no network still gets it. Right after an upgrade the
|
|
260
|
-
|
|
261
|
-
into that repository's
|
|
262
|
-
[The
|
|
259
|
+
package, so a first run with no network still gets it. Right after an upgrade the `sous` repository
|
|
260
|
+
has usually not published the matching version yet, so sous folds the packaged version
|
|
261
|
+
into that repository's published data in memory and leaves the cache untouched; see
|
|
262
|
+
[The built-in repositories](repositories.md#the-built-in-repositories-and-core). Seeding
|
|
263
263
|
never fails a build, and when it genuinely fails it says so and carries on:
|
|
264
264
|
|
|
265
265
|
```text
|
|
@@ -287,8 +287,8 @@ sous vars ask taskFileRoot # one variable, by the name its
|
|
|
287
287
|
sous vars ask SOUS_VAR_TASK_FILE_ROOT # the same one, by a name in use that answers it
|
|
288
288
|
sous vars ask workflow/task-files.taskFileRoot # the same one, spelled out in full
|
|
289
289
|
sous vars ask task-files # every question one recipe asks
|
|
290
|
-
sous vars ask
|
|
291
|
-
sous vars ask https://github.com/sous-io/
|
|
290
|
+
sous vars ask the-pantry # every question that repository's recipes ask
|
|
291
|
+
sous vars ask https://github.com/sous-io/the-pantry/tree/main/recipes/workflow/task-files
|
|
292
292
|
# the same recipe, as a URL copied from the browser
|
|
293
293
|
```
|
|
294
294
|
|