@sous-io/sous 1.0.18 → 1.1.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 +463 -356
- package/docs/markdown/README.md +8 -7
- package/docs/markdown/_sidebar.md +29 -0
- package/docs/markdown/codex.md +129 -0
- package/docs/markdown/commands.md +305 -25
- package/docs/markdown/config-inspection.md +27 -5
- package/docs/markdown/config-layers.md +8 -8
- package/docs/markdown/config-variables.md +42 -3
- package/docs/markdown/configuration.md +289 -20
- package/docs/markdown/design-principles.md +1 -1
- package/docs/markdown/editing-files.md +599 -0
- package/docs/markdown/handlers.md +221 -0
- package/docs/markdown/repositories-authoring.md +70 -17
- package/docs/markdown/repositories-consuming.md +15 -10
- package/docs/markdown/repositories-contributing.md +1 -1
- package/docs/markdown/repositories-file-formats.md +114 -4
- package/docs/markdown/repositories-quickstart.md +10 -7
- package/docs/markdown/repositories-variables.md +4 -1
- package/docs/markdown/repositories.md +5 -2
- package/package.json +38 -33
- package/recipes/core/sous-skills/skills/about-sous/SKILL.tpl.md +36 -3
- package/recipes/core/sous-skills/skills/about-sous-configuration/SKILL.tpl.md +5 -0
- package/recipes/core/sous-skills/skills/about-sous-recipes/SKILL.tpl.md +4 -3
- package/recipes/core/sous-skills/skills/about-sous-repos/SKILL.tpl.md +20 -7
- package/recipes/core/sous-skills/sous.recipe.yaml +1 -1
- package/sous.config.schema.json +271 -21
|
@@ -348,7 +348,10 @@ published identity and then the path inside it, on a line of its own. Any part m
|
|
|
348
348
|
@~workflow/qa-helper/_partials/*.md
|
|
349
349
|
```
|
|
350
350
|
|
|
351
|
-
A glob includes every file it matches
|
|
351
|
+
A glob includes every file it matches: at each folder its own files first, then its sub-folders, names
|
|
352
|
+
compared ignoring case, with `_` first, then digits, then letters (see
|
|
353
|
+
[Include syntax](configuration.md#include-syntax)); a glob that matches nothing includes nothing and its line
|
|
354
|
+
is removed. The `~` is required. A bare `@path` is always a relative path or a declared alias, so an include
|
|
352
355
|
line can never quietly stop meaning a file on disk. In your own templates, `~<namespace>`
|
|
353
356
|
resolves against every recipe the lockfile pins, whatever brought it in: a recipe you subscribe
|
|
354
357
|
to, a member of a set you subscribe to, or a library another recipe depends on. Inside a recipe,
|
|
@@ -361,7 +364,7 @@ listed it), the error names it:
|
|
|
361
364
|
|
|
362
365
|
```text
|
|
363
366
|
Error: Include not found: @~workflow/member/memories/member.md
|
|
364
|
-
in file: .sous/
|
|
367
|
+
in file: .sous/MEMORIES.tpl.md
|
|
365
368
|
namespace: workflow
|
|
366
369
|
recipe: workflow/member
|
|
367
370
|
The namespace "workflow" holds no recipe named "workflow/member".
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sous-io/sous",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
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,44 +39,49 @@
|
|
|
39
39
|
"sous.config.schema.json"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@sous-io/plugin-api": "1.0
|
|
42
|
+
"@sous-io/sous-plugin-api": "1.1.0"
|
|
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/
|
|
50
|
-
"@sous-io/
|
|
51
|
-
"@sous-io/
|
|
52
|
-
"@sous-io/plugin-
|
|
53
|
-
"@sous-io/plugin-
|
|
54
|
-
"@sous-io/plugin-
|
|
55
|
-
"@sous-io/plugin-
|
|
56
|
-
"@sous-io/plugin-
|
|
57
|
-
"@sous-io/plugin-
|
|
58
|
-
"@sous-io/plugin-
|
|
59
|
-
"@sous-io/plugin-
|
|
60
|
-
"@sous-io/plugin-
|
|
61
|
-
"@sous-io/plugin-gitlab": "1.0
|
|
62
|
-
"@sous-io/plugin-
|
|
63
|
-
"@sous-io/plugin-
|
|
64
|
-
"@sous-io/plugin-
|
|
65
|
-
"@sous-io/plugin-
|
|
66
|
-
"@sous-io/plugin-
|
|
67
|
-
"@sous-io/plugin-
|
|
68
|
-
"@sous-io/plugin-
|
|
69
|
-
"@sous-io/plugin-
|
|
70
|
-
"@sous-io/plugin-
|
|
71
|
-
"@sous-io/plugin-npm": "1.0
|
|
72
|
-
"@sous-io/plugin-
|
|
73
|
-
"@sous-io/plugin-
|
|
74
|
-
"@sous-io/plugin-
|
|
75
|
-
"@sous-io/plugin-
|
|
76
|
-
"@sous-io/plugin-
|
|
77
|
-
"@sous-io/plugin-
|
|
78
|
-
"@sous-io/plugin-
|
|
79
|
-
"@sous-io/plugin-
|
|
49
|
+
"@sous-io/sous-lib-core": "1.1.0",
|
|
50
|
+
"@sous-io/sous-lib-documents": "1.1.0",
|
|
51
|
+
"@sous-io/sous-plugin-authoring": "1.1.0",
|
|
52
|
+
"@sous-io/sous-plugin-claude-code": "1.1.0",
|
|
53
|
+
"@sous-io/sous-plugin-build": "1.1.0",
|
|
54
|
+
"@sous-io/sous-plugin-cli": "1.1.0",
|
|
55
|
+
"@sous-io/sous-plugin-confd": "1.1.0",
|
|
56
|
+
"@sous-io/sous-plugin-compiler": "1.1.0",
|
|
57
|
+
"@sous-io/sous-plugin-formats": "1.1.0",
|
|
58
|
+
"@sous-io/sous-plugin-config-files": "1.1.0",
|
|
59
|
+
"@sous-io/sous-plugin-expressions": "1.1.0",
|
|
60
|
+
"@sous-io/sous-plugin-git": "1.1.0",
|
|
61
|
+
"@sous-io/sous-plugin-gitlab": "1.1.0",
|
|
62
|
+
"@sous-io/sous-plugin-github": "1.1.0",
|
|
63
|
+
"@sous-io/sous-plugin-harnesses": "1.1.0",
|
|
64
|
+
"@sous-io/sous-plugin-host": "1.1.0",
|
|
65
|
+
"@sous-io/sous-plugin-init": "1.1.0",
|
|
66
|
+
"@sous-io/sous-plugin-inspect": "1.1.0",
|
|
67
|
+
"@sous-io/sous-plugin-liquid": "1.1.0",
|
|
68
|
+
"@sous-io/sous-plugin-local": "1.1.0",
|
|
69
|
+
"@sous-io/sous-plugin-mcp": "1.1.0",
|
|
70
|
+
"@sous-io/sous-plugin-memories": "1.1.0",
|
|
71
|
+
"@sous-io/sous-plugin-npm": "1.1.0",
|
|
72
|
+
"@sous-io/sous-plugin-refs": "1.1.0",
|
|
73
|
+
"@sous-io/sous-plugin-recipes": "1.1.0",
|
|
74
|
+
"@sous-io/sous-plugin-skills": "1.1.0",
|
|
75
|
+
"@sous-io/sous-plugin-recipe-answers": "1.1.0",
|
|
76
|
+
"@sous-io/sous-plugin-pnpm": "1.1.0",
|
|
77
|
+
"@sous-io/sous-plugin-variables": "1.1.0",
|
|
78
|
+
"@sous-io/sous-plugin-update": "1.1.0",
|
|
79
|
+
"@sous-io/sous-plugin-handlers": "1.1.0",
|
|
80
|
+
"@sous-io/sous-plugin-editor": "1.1.0",
|
|
81
|
+
"@sous-io/sous-plugin-yarn": "1.1.0",
|
|
82
|
+
"@sous-io/sous-plugin-doctor": "1.1.0",
|
|
83
|
+
"@sous-io/sous-plugin-migrations": "1.1.0",
|
|
84
|
+
"@sous-io/sous-plugin-codex": "1.1.0"
|
|
80
85
|
},
|
|
81
86
|
"engines": {
|
|
82
87
|
"node": ">=22"
|
|
@@ -17,17 +17,50 @@ copies or renders files to their destinations in this project.
|
|
|
17
17
|
## Files You Must Never Edit
|
|
18
18
|
|
|
19
19
|
Sous manages certain files in this project by compiling them from a central source.
|
|
20
|
-
**You must never edit these directly.** Your changes will be
|
|
21
|
-
|
|
20
|
+
**You must never edit these directly.** Your changes will be overwritten the next time
|
|
21
|
+
Sous runs. Sous copies the edited file to `.sous/backups/<date>/<time>/` first and says so
|
|
22
|
+
in its output, but the edit no longer takes effect:
|
|
22
23
|
|
|
23
24
|
- `.claude/`: Claude Code configuration, skills, and instructions
|
|
24
25
|
- `.codex/`: Codex configuration and skills
|
|
25
|
-
-
|
|
26
|
+
- `.claude/rules/SOUS-MEMORIES.md` and `AGENTS.override.md`: the memories files Sous compiles for
|
|
27
|
+
Claude Code and Codex
|
|
26
28
|
- Any file you did not create yourself in a designated source directory
|
|
27
29
|
|
|
28
30
|
If you need to change something in one of these files, the change must be made at the
|
|
29
31
|
source, in the central configuration this project uses with Sous.
|
|
30
32
|
|
|
33
|
+
## Where the Instructions Come From
|
|
34
|
+
|
|
35
|
+
In a project `sous init` set up, Sous owns all agent configuration. Each coding tool's plugin
|
|
36
|
+
compiles one memories file that tool reads in every session: `.claude/rules/SOUS-MEMORIES.md` for
|
|
37
|
+
Claude Code, which Claude Code loads beside any `CLAUDE.md` the project has, and, once a project
|
|
38
|
+
turns Codex on, `AGENTS.override.md`, which holds the project's `AGENTS.md` first. They and
|
|
39
|
+
`.claude/skills/` are gitignored build output, so `sous build` recreates them after a clone.
|
|
40
|
+
Their source is `.sous/MEMORIES.tpl.md`, which holds no instructions itself; it includes:
|
|
41
|
+
|
|
42
|
+
```markdown
|
|
43
|
+
@memories/**/*.md
|
|
44
|
+
@#memories/**/*.md
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
- The first line pulls in this project's own memories: every markdown file under
|
|
48
|
+
`.sous/memories/`, such as `.sous/memories/imported/` (the `CLAUDE.md` or `AGENTS.md` the
|
|
49
|
+
project had before `sous init`) or `.sous/memories/project.tpl.md`. To change the
|
|
50
|
+
instructions, edit one of these files or add one, then run `sous build`. A memories file that
|
|
51
|
+
compiles to nothing is not written.
|
|
52
|
+
- Files those memories include by a line holding only `@path.md` were moved or copied to
|
|
53
|
+
`.sous/includes/<their path from the project root>`, outside `memories/`, so each one appears
|
|
54
|
+
only where its include line is. Edit them there.
|
|
55
|
+
- The second line pulls in the memories of every recipe this project subscribes to; change those
|
|
56
|
+
upstream, as described below.
|
|
57
|
+
|
|
58
|
+
In a project `sous init` set up, the project's own skills live in `.sous/skills/` (the
|
|
59
|
+
`skillsRoot` answer `sous init` writes), and the config compiles them into `.claude/skills/`;
|
|
60
|
+
skills the project had in `.claude/skills/` before `sous init` were moved there. A project skill
|
|
61
|
+
with the same name as a recipe skill wins, and the build warns that the recipe's copy was not
|
|
62
|
+
written. Whatever `sous init` moved was backed up first to `.sous/backups/<date>/<time>/`.
|
|
63
|
+
|
|
31
64
|
## Changing a File That Came From a Recipe
|
|
32
65
|
|
|
33
66
|
A file whose footer names a recipe (`This skill comes from the <namespace>/<recipe> recipe`)
|
|
@@ -73,6 +73,11 @@ prefer the on-disk copies.
|
|
|
73
73
|
`recipes.skills.outputs`; with neither, the build skips the skills and says why.
|
|
74
74
|
`recipes.memories.first` and `recipes.memories.exclude` (globs over `namespace/recipe`, or
|
|
75
75
|
`/regex/` strings) order and filter the recipe memories.
|
|
76
|
+
- A target in `compilation.targets` wins over a plugin's or a recipe's target that would write
|
|
77
|
+
the same file. A project that compiles its own memories file replaces the one the Claude Code
|
|
78
|
+
plugin builds (`.claude/rules/SOUS-MEMORIES.md`, from `.sous/MEMORIES.tpl.md`; the config
|
|
79
|
+
`sous init` writes compiles none), and a project skill compiled from `.sous/skills/` replaces a
|
|
80
|
+
recipe skill of the same name (the build warns about the recipe's copy).
|
|
76
81
|
- The `plugins` key decides which Sous plugins (packages that extend sous itself) load, beyond
|
|
77
82
|
the built-ins and those listed in the project's `package.json`, and holds each plugin's own
|
|
78
83
|
options. `configuration.md` above documents its fields. Run `sous plugins show` to see which
|
|
@@ -212,9 +212,10 @@ group of `kind: memories`, for example `include: [memories/**/*.md]`. A plain `.
|
|
|
212
212
|
as it is; name a file `*.tpl.md` when it needs the subscriber's answers. The recipe never says where
|
|
213
213
|
a memory lands. A subscribing project can include the memories of every recipe it holds directly
|
|
214
214
|
with one line, `@#memories/**/*.md`, at the virtual path `#memories/<namespace>/<recipe>/<path>`
|
|
215
|
-
(the path being relative to the pattern's static base). The Sous plugin for a coding agent
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
(the path being relative to the pattern's static base). The Sous plugin for a coding agent also
|
|
216
|
+
compiles one memories file that agent reads in every session (`.claude/rules/SOUS-MEMORIES.md` for
|
|
217
|
+
Claude Code, `AGENTS.override.md` for Codex), whose default source holds that line, so the active
|
|
218
|
+
recipes' memories reach the agent without a line of the subscriber's own. A recipe held only through `depends` is a library and
|
|
218
219
|
contributes none, and the subscriber's build warns about a published memory no output includes.
|
|
219
220
|
|
|
220
221
|
## Includes and Partials
|
|
@@ -19,9 +19,12 @@ metadata:
|
|
|
19
19
|
|
|
20
20
|
A **recipe** is a versioned bundle of agent instructions (skills, memories, prompts and config
|
|
21
21
|
layers) that sous installs into every project subscribed to it. A **recipe repository** is a git
|
|
22
|
-
repository that publishes recipes. It is
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
repository that publishes recipes. It is also a sous project, with a `.sous/` directory of its own:
|
|
23
|
+
its `CLAUDE.md`, `AGENTS.md` and `.claude/skills/` are build output, compiled from the sources under
|
|
24
|
+
`.sous/`, so NEVER edit the compiled copies, and run `sous build` after cloning. The commands that
|
|
25
|
+
work on the repository itself (`sous repo release`, `sous repo submit`) run from anywhere inside it,
|
|
26
|
+
and find its root by walking up to the first directory holding a repo manifest, not through that
|
|
27
|
+
config.
|
|
25
28
|
|
|
26
29
|
Everything here holds for every recipe repository, the official `sous-io/sous-recipes` included.
|
|
27
30
|
For one recipe (its manifest, version, variables, contents and dependencies), YOU MUST load
|
|
@@ -168,10 +171,20 @@ yet, then unlinks with `--update`.
|
|
|
168
171
|
|
|
169
172
|
`sous repo init [dir]` writes a new recipe repository into the directory (the current one by
|
|
170
173
|
default): the repo manifest, an empty index, one example recipe with its manifest and a
|
|
171
|
-
placeholder skill, a README, `CONTRIBUTING.md
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
174
|
+
placeholder skill, a README, `CONTRIBUTING.md` for agents, the release workflow and a `.gitignore`.
|
|
175
|
+
`sous-io/sous-recipes` is the model a scaffold follows: a new repository is as complete as it, minus
|
|
176
|
+
its recipes. It does not run git: run `git init`, commit, and add a remote before the first release,
|
|
177
|
+
because `sous repo release` reads and writes tags. Every new recipe folder is then listed under
|
|
178
|
+
`recipes` in `sous.repo.yaml`.
|
|
179
|
+
|
|
180
|
+
After the scaffold it runs `sous init` in the same directory, so the repository is also a sous
|
|
181
|
+
project. Init imports any `CLAUDE.md`, `AGENTS.md` or `.claude/skills/` already there; with nothing
|
|
182
|
+
to import, it writes `.sous/memories/project.tpl.md`, a memory saying this is a sous recipe
|
|
183
|
+
repository and naming the core skills an agent loads before changing anything. Its first build
|
|
184
|
+
compiles the memories file (`.claude/rules/SOUS-MEMORIES.md` for Claude Code) and installs the
|
|
185
|
+
core skills. `--yes`, `--move-includes`, `--copy-includes`,
|
|
186
|
+
`--leave-includes`, `--no-build` and `--dry-run` pass through to init. A directory that already
|
|
187
|
+
holds a sous config keeps it, and init is skipped with a note.
|
|
175
188
|
|
|
176
189
|
## Source for this Skill
|
|
177
190
|
|
package/sous.config.schema.json
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"compilation": {
|
|
66
|
-
"description": "What to compile: targets, their outputs, source comments, the state file, overwriting files sous did not write.",
|
|
66
|
+
"description": "What to compile: targets, their outputs, source comments, the state file, overwriting files sous did not write. Content sous did not produce is backed up to <sousDir>/backups/ before it is overwritten or removed.",
|
|
67
67
|
"type": "object",
|
|
68
68
|
"properties": {
|
|
69
69
|
"_vars": {
|
|
@@ -75,16 +75,178 @@
|
|
|
75
75
|
"type": "string"
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
|
+
"varOverrides": {
|
|
79
|
+
"default": [],
|
|
80
|
+
"description": "Variables for every output whose path matches a pattern, outputs a plugin or a recipe added included. A rule wins over the output's own _vars.",
|
|
81
|
+
"type": "array",
|
|
82
|
+
"items": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"properties": {
|
|
85
|
+
"match": {
|
|
86
|
+
"anyOf": [
|
|
87
|
+
{
|
|
88
|
+
"type": "string",
|
|
89
|
+
"minLength": 1
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"minItems": 1,
|
|
93
|
+
"type": "array",
|
|
94
|
+
"items": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"minLength": 1
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"description": "The output paths the rule applies to: a glob, or a regular expression written /.../, or a list of them."
|
|
101
|
+
},
|
|
102
|
+
"exclude": {
|
|
103
|
+
"description": "Output paths the rule leaves out, though match takes them.",
|
|
104
|
+
"anyOf": [
|
|
105
|
+
{
|
|
106
|
+
"type": "string",
|
|
107
|
+
"minLength": 1
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"minItems": 1,
|
|
111
|
+
"type": "array",
|
|
112
|
+
"items": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"minLength": 1
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"_vars": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"propertyNames": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"additionalProperties": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"description": "The variables to set. They win over the output's own _vars; a later rule wins over an earlier one."
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"required": [
|
|
131
|
+
"match",
|
|
132
|
+
"_vars"
|
|
133
|
+
],
|
|
134
|
+
"additionalProperties": false
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"files": {
|
|
138
|
+
"description": "Every file a build writes, listed while the config is built. Set by sous; anything written here is replaced.",
|
|
139
|
+
"type": "array",
|
|
140
|
+
"items": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"properties": {
|
|
143
|
+
"target": {
|
|
144
|
+
"type": "string"
|
|
145
|
+
},
|
|
146
|
+
"targetIndex": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"minimum": 0,
|
|
149
|
+
"maximum": 9007199254740991
|
|
150
|
+
},
|
|
151
|
+
"source": {
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
"output": {
|
|
155
|
+
"type": "integer",
|
|
156
|
+
"minimum": 0,
|
|
157
|
+
"maximum": 9007199254740991
|
|
158
|
+
},
|
|
159
|
+
"destination": {
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
"harness": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"_vars": {
|
|
166
|
+
"type": "object",
|
|
167
|
+
"propertyNames": {
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
"additionalProperties": {
|
|
171
|
+
"type": "string"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"required": [
|
|
176
|
+
"target",
|
|
177
|
+
"targetIndex",
|
|
178
|
+
"source",
|
|
179
|
+
"output",
|
|
180
|
+
"destination"
|
|
181
|
+
],
|
|
182
|
+
"additionalProperties": false
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"listing": {
|
|
186
|
+
"description": "What listing compilation.files found. Set by sous.",
|
|
187
|
+
"type": "object",
|
|
188
|
+
"properties": {
|
|
189
|
+
"targets": {
|
|
190
|
+
"type": "integer",
|
|
191
|
+
"minimum": 0,
|
|
192
|
+
"maximum": 9007199254740991
|
|
193
|
+
},
|
|
194
|
+
"problems": {
|
|
195
|
+
"type": "array",
|
|
196
|
+
"items": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"properties": {
|
|
199
|
+
"level": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"enum": [
|
|
202
|
+
"error",
|
|
203
|
+
"warning"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
"message": {
|
|
207
|
+
"type": "string"
|
|
208
|
+
},
|
|
209
|
+
"target": {
|
|
210
|
+
"type": "string"
|
|
211
|
+
},
|
|
212
|
+
"file": {
|
|
213
|
+
"type": "string"
|
|
214
|
+
},
|
|
215
|
+
"line": {
|
|
216
|
+
"type": "number"
|
|
217
|
+
},
|
|
218
|
+
"targetIndex": {
|
|
219
|
+
"type": "integer",
|
|
220
|
+
"minimum": 0,
|
|
221
|
+
"maximum": 9007199254740991
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"required": [
|
|
225
|
+
"level",
|
|
226
|
+
"message"
|
|
227
|
+
],
|
|
228
|
+
"additionalProperties": false
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"required": [
|
|
233
|
+
"targets",
|
|
234
|
+
"problems"
|
|
235
|
+
],
|
|
236
|
+
"additionalProperties": false
|
|
237
|
+
},
|
|
78
238
|
"includeSourceComments": {
|
|
79
239
|
"default": false,
|
|
80
240
|
"type": "boolean"
|
|
81
241
|
},
|
|
82
242
|
"overwriteUntracked": {
|
|
83
243
|
"default": true,
|
|
244
|
+
"description": "Overwrite an output file sous did not write, and take it over. Sous copies the file to <sousDir>/backups/ first. With false, the file is left alone and the build warns.",
|
|
84
245
|
"type": "boolean"
|
|
85
246
|
},
|
|
86
247
|
"stateFile": {
|
|
87
248
|
"default": "${sousDir}/sous.state.json",
|
|
249
|
+
"description": "Where sous records every file it wrote and the hash of what it wrote, which tells prune and clear what is theirs to remove and which outputs were edited by hand.",
|
|
88
250
|
"type": "string"
|
|
89
251
|
},
|
|
90
252
|
"targets": {
|
|
@@ -151,22 +313,7 @@
|
|
|
151
313
|
"type": "object",
|
|
152
314
|
"properties": {
|
|
153
315
|
"_if": {
|
|
154
|
-
"
|
|
155
|
-
"propertyNames": {
|
|
156
|
-
"type": "string"
|
|
157
|
-
},
|
|
158
|
-
"additionalProperties": {
|
|
159
|
-
"type": "object",
|
|
160
|
-
"properties": {
|
|
161
|
-
"eq": {
|
|
162
|
-
"type": "string"
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
"required": [
|
|
166
|
-
"eq"
|
|
167
|
-
],
|
|
168
|
-
"additionalProperties": false
|
|
169
|
-
}
|
|
316
|
+
"description": "Removed. Write the condition as a config expression on the output: { \"$if\": { \"expr\": \"...\", \"then\": { ...the output... } } }."
|
|
170
317
|
},
|
|
171
318
|
"_vars": {
|
|
172
319
|
"type": "object",
|
|
@@ -188,6 +335,15 @@
|
|
|
188
335
|
"items": {
|
|
189
336
|
"type": "string"
|
|
190
337
|
}
|
|
338
|
+
},
|
|
339
|
+
"harness": {
|
|
340
|
+
"description": "The harness this output belongs to (claude-code, codex). Templates read it as harness.id.",
|
|
341
|
+
"type": "string",
|
|
342
|
+
"minLength": 1
|
|
343
|
+
},
|
|
344
|
+
"backupExisting": {
|
|
345
|
+
"description": "When true, a file sous did not write at the destination is backed up, a warning is given, and it is overwritten, whatever compilation.overwriteUntracked says.",
|
|
346
|
+
"type": "boolean"
|
|
191
347
|
}
|
|
192
348
|
},
|
|
193
349
|
"additionalProperties": false
|
|
@@ -203,6 +359,29 @@
|
|
|
203
359
|
},
|
|
204
360
|
"additionalProperties": false
|
|
205
361
|
},
|
|
362
|
+
"editor": {
|
|
363
|
+
"description": "Edits to files Sous does not own (editor.edits), applied, recorded and undone by the editor.",
|
|
364
|
+
"type": "object",
|
|
365
|
+
"properties": {
|
|
366
|
+
"edits": {
|
|
367
|
+
"default": [],
|
|
368
|
+
"description": "The master list of edits to files Sous does not own: each entry names a file and one or more operations, an assertion or a silence. Sous applies them after the compiler, records them, and undoes the ones no longer declared.",
|
|
369
|
+
"type": "array",
|
|
370
|
+
"items": {
|
|
371
|
+
"type": "object",
|
|
372
|
+
"propertyNames": {
|
|
373
|
+
"type": "string"
|
|
374
|
+
},
|
|
375
|
+
"additionalProperties": {}
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"historyFile": {
|
|
379
|
+
"description": "Where Sous records the edits it applied, so it can undo them. Default: <sousDir>/sous.edits.json (git-ignored).",
|
|
380
|
+
"type": "string"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"additionalProperties": false
|
|
384
|
+
},
|
|
206
385
|
"intents": {
|
|
207
386
|
"description": "Which plugin's intent wins when two add one name: intents.replace.\"<intent>\": \"<plugin>\".",
|
|
208
387
|
"type": "object",
|
|
@@ -269,7 +448,7 @@
|
|
|
269
448
|
"type": "string"
|
|
270
449
|
},
|
|
271
450
|
"plugins": {
|
|
272
|
-
"description": "Which plugins load, which never load, and each plugin's own options
|
|
451
|
+
"description": "Which plugins load, which never load, and each plugin's own options.",
|
|
273
452
|
"type": "object",
|
|
274
453
|
"properties": {
|
|
275
454
|
"discover": {
|
|
@@ -333,7 +512,10 @@
|
|
|
333
512
|
"type": "string"
|
|
334
513
|
}
|
|
335
514
|
},
|
|
336
|
-
"
|
|
515
|
+
"required": [
|
|
516
|
+
"url"
|
|
517
|
+
],
|
|
518
|
+
"additionalProperties": false
|
|
337
519
|
}
|
|
338
520
|
},
|
|
339
521
|
"runtimeContext": {
|
|
@@ -410,7 +592,7 @@
|
|
|
410
592
|
"properties": {
|
|
411
593
|
"enabled": {
|
|
412
594
|
"type": "boolean",
|
|
413
|
-
"description": "False switches it off
|
|
595
|
+
"description": "False switches it off, keeping its pins, wherever the file that sets it applies: for everyone in a committed file, for one machine in a conf.d file kept out of git."
|
|
414
596
|
},
|
|
415
597
|
"range": {
|
|
416
598
|
"type": "string",
|
|
@@ -429,7 +611,7 @@
|
|
|
429
611
|
"type": "string"
|
|
430
612
|
}
|
|
431
613
|
},
|
|
432
|
-
"additionalProperties":
|
|
614
|
+
"additionalProperties": false
|
|
433
615
|
}
|
|
434
616
|
},
|
|
435
617
|
"tools": {
|
|
@@ -513,6 +695,74 @@
|
|
|
513
695
|
"recipes": {
|
|
514
696
|
"type": "object",
|
|
515
697
|
"properties": {
|
|
698
|
+
"contents": {
|
|
699
|
+
"description": "What each active recipe's manifest publishes, one entry per contents group, added by sous-plugin-recipes (read-only in practice).",
|
|
700
|
+
"type": "array",
|
|
701
|
+
"default": [],
|
|
702
|
+
"items": {
|
|
703
|
+
"type": "object",
|
|
704
|
+
"required": [
|
|
705
|
+
"recipe",
|
|
706
|
+
"dir",
|
|
707
|
+
"kind",
|
|
708
|
+
"include"
|
|
709
|
+
],
|
|
710
|
+
"properties": {
|
|
711
|
+
"recipe": {
|
|
712
|
+
"type": "string"
|
|
713
|
+
},
|
|
714
|
+
"dir": {
|
|
715
|
+
"type": "string"
|
|
716
|
+
},
|
|
717
|
+
"kind": {
|
|
718
|
+
"type": "string"
|
|
719
|
+
},
|
|
720
|
+
"include": {
|
|
721
|
+
"type": "array"
|
|
722
|
+
},
|
|
723
|
+
"exclude": {
|
|
724
|
+
"type": "array",
|
|
725
|
+
"items": {
|
|
726
|
+
"type": "string"
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"handlers": {
|
|
733
|
+
"description": "The handlers the active recipes' manifests list, one entry each.",
|
|
734
|
+
"type": "array",
|
|
735
|
+
"items": {
|
|
736
|
+
"type": "object",
|
|
737
|
+
"required": [
|
|
738
|
+
"recipe",
|
|
739
|
+
"purpose",
|
|
740
|
+
"file",
|
|
741
|
+
"handler"
|
|
742
|
+
],
|
|
743
|
+
"properties": {
|
|
744
|
+
"recipe": {
|
|
745
|
+
"type": "string"
|
|
746
|
+
},
|
|
747
|
+
"purpose": {
|
|
748
|
+
"enum": [
|
|
749
|
+
"check",
|
|
750
|
+
"configure",
|
|
751
|
+
"beforeBuild",
|
|
752
|
+
"afterBuild",
|
|
753
|
+
"uninstall",
|
|
754
|
+
"migrate"
|
|
755
|
+
]
|
|
756
|
+
},
|
|
757
|
+
"file": {
|
|
758
|
+
"type": "string"
|
|
759
|
+
},
|
|
760
|
+
"handler": {
|
|
761
|
+
"type": "string"
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
},
|
|
516
766
|
"memories": {
|
|
517
767
|
"description": "Which recipe memories memory targets and the #memories view take, and in what order.",
|
|
518
768
|
"type": "object",
|