@open-agent-toolkit/cli 0.3.27 → 0.3.29
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/README.md +8 -0
- package/assets/bundle-metadata.json +1 -1
- package/assets/docs/contributing/documentation.md +11 -2
- package/assets/docs/docs-tooling/add-docs-to-a-repo.md +12 -0
- package/assets/docs/docs-tooling/check.md +154 -0
- package/assets/docs/docs-tooling/commands.md +61 -11
- package/assets/docs/docs-tooling/index.md +1 -0
- package/assets/docs/docs-tooling/meta.json +7 -1
- package/assets/docs/docs-tooling/workflows.md +4 -0
- package/assets/docs/reference/cli-reference.md +2 -0
- package/assets/docs/reference/configuration.md +1 -0
- package/assets/public-package-versions.json +4 -4
- package/assets/skills/authoring-docs/SKILL.md +2 -2
- package/assets/skills/authoring-docs/references/information-architecture.md +5 -2
- package/assets/skills/authoring-docs/references/page-templates/alert-runbook.md +63 -0
- package/assets/skills/authoring-docs/references/page-templates/command-reference.md +55 -0
- package/assets/skills/authoring-docs/references/page-templates/decisions-pointer.md +44 -0
- package/assets/skills/authoring-docs/references/page-templates/engineering-feature.md +53 -0
- package/assets/skills/authoring-docs/references/page-templates/per-area-agents.md +42 -0
- package/assets/skills/authoring-docs/references/page-templates/product-feature.md +49 -0
- package/assets/skills/authoring-docs/references/page-templates/qa-validation.md +59 -0
- package/assets/skills/authoring-docs/references/page-templates/screen-spec.md +51 -0
- package/assets/skills/authoring-docs/references/page-templates/skill-command-guide.md +44 -0
- package/assets/skills/authoring-docs/references/page-templates/solution-record.md +43 -0
- package/assets/skills/authoring-docs/references/templates.md +22 -2
- package/assets/skills/oat-docs-analyze/SKILL.md +13 -2
- package/assets/skills/oat-docs-authoring/SKILL.md +1 -1
- package/assets/skills/oat-docs-authoring/references/validation.md +4 -0
- package/assets/skills/oat-docs-bootstrap/SKILL.md +63 -6
- package/assets/skills/oat-docs-bootstrap/references/pr-ci.md +89 -0
- package/assets/templates/docs-app-fuma/AGENTS.md +9 -2
- package/assets/templates/docs-app-fuma/docs/contributing/docs-toolchain.md +40 -3
- package/assets/templates/docs-app-fuma/docs/contributing.md +7 -1
- package/assets/templates/docs-app-fuma/docs/index.md +1 -1
- package/assets/templates/docs-app-fuma/gitignore.template +12 -0
- package/assets/templates/docs-app-fuma/package.json.template +2 -1
- package/assets/templates/docs-app-fuma/pnpm-workspace.yaml +5 -0
- package/assets/templates/docs-app-mkdocs/AGENTS.md +4 -2
- package/assets/templates/docs-app-mkdocs/docs/contributing/docs-toolchain.md +4 -2
- package/assets/templates/docs-app-mkdocs/docs/contributing.md +7 -1
- package/assets/templates/docs-app-mkdocs/docs/index.md +1 -1
- package/assets/templates/docs-app-mkdocs/gitignore.template +8 -0
- package/assets/templates/docs-app-mkdocs/package.json.template +3 -2
- package/dist/commands/config/index.d.ts.map +1 -1
- package/dist/commands/config/index.js +35 -3
- package/dist/commands/docs/check/check.d.ts +3 -0
- package/dist/commands/docs/check/check.d.ts.map +1 -0
- package/dist/commands/docs/check/check.js +48 -0
- package/dist/commands/docs/check/check.types.d.ts +17 -0
- package/dist/commands/docs/check/check.types.d.ts.map +1 -0
- package/dist/commands/docs/check/check.types.js +1 -0
- package/dist/commands/docs/check/checker.d.ts +8 -0
- package/dist/commands/docs/check/checker.d.ts.map +1 -0
- package/dist/commands/docs/check/checker.js +82 -0
- package/dist/commands/docs/check/commands.d.ts +5 -0
- package/dist/commands/docs/check/commands.d.ts.map +1 -0
- package/dist/commands/docs/check/commands.js +232 -0
- package/dist/commands/docs/check/diagrams.d.ts +5 -0
- package/dist/commands/docs/check/diagrams.d.ts.map +1 -0
- package/dist/commands/docs/check/diagrams.js +197 -0
- package/dist/commands/docs/check/files.d.ts +21 -0
- package/dist/commands/docs/check/files.d.ts.map +1 -0
- package/dist/commands/docs/check/files.js +121 -0
- package/dist/commands/docs/check/markdown.d.ts +60 -0
- package/dist/commands/docs/check/markdown.d.ts.map +1 -0
- package/dist/commands/docs/check/markdown.js +125 -0
- package/dist/commands/docs/check/mermaid-runtime.d.ts +3 -0
- package/dist/commands/docs/check/mermaid-runtime.d.ts.map +1 -0
- package/dist/commands/docs/check/mermaid-runtime.js +57 -0
- package/dist/commands/docs/check/navigation.d.ts +4 -0
- package/dist/commands/docs/check/navigation.d.ts.map +1 -0
- package/dist/commands/docs/check/navigation.js +104 -0
- package/dist/commands/docs/check/reader-rules.d.ts +6 -0
- package/dist/commands/docs/check/reader-rules.d.ts.map +1 -0
- package/dist/commands/docs/check/reader-rules.js +214 -0
- package/dist/commands/docs/index.d.ts.map +1 -1
- package/dist/commands/docs/index.js +2 -0
- package/dist/commands/docs/init/content.d.ts +23 -0
- package/dist/commands/docs/init/content.d.ts.map +1 -0
- package/dist/commands/docs/init/content.js +361 -0
- package/dist/commands/docs/init/index.d.ts +1 -0
- package/dist/commands/docs/init/index.d.ts.map +1 -1
- package/dist/commands/docs/init/index.js +40 -1
- package/dist/commands/docs/init/markdown.d.ts.map +1 -1
- package/dist/commands/docs/init/markdown.js +21 -2
- package/dist/commands/docs/init/resolve-options.d.ts +4 -1
- package/dist/commands/docs/init/resolve-options.d.ts.map +1 -1
- package/dist/commands/docs/init/resolve-options.js +4 -0
- package/dist/commands/docs/init/scaffold.d.ts +1 -0
- package/dist/commands/docs/init/scaffold.d.ts.map +1 -1
- package/dist/commands/docs/init/scaffold.js +57 -4
- package/dist/commands/docs/nav/contents.d.ts +4 -0
- package/dist/commands/docs/nav/contents.d.ts.map +1 -1
- package/dist/commands/docs/nav/contents.js +10 -0
- package/dist/config/documentation-check.d.ts +38 -0
- package/dist/config/documentation-check.d.ts.map +1 -0
- package/dist/config/documentation-check.js +132 -0
- package/dist/config/oat-config.d.ts +2 -0
- package/dist/config/oat-config.d.ts.map +1 -1
- package/dist/config/oat-config.js +4 -0
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config/resolve.js +1 -0
- package/dist/release/public-package-contract.d.ts.map +1 -1
- package/dist/release/public-package-contract.js +13 -0
- package/package.json +11 -2
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { dirname, extname, join, resolve } from 'node:path';
|
|
2
|
+
import { parseIndexContents, resolveEntryTarget, } from '../../docs/nav/contents.js';
|
|
3
|
+
import { isExcludedPath } from '../../docs/shared/exclusions.js';
|
|
4
|
+
import { DOCS_CHECK_THRESHOLDS } from '../../../config/documentation-check.js';
|
|
5
|
+
import { containedFile, inside, posix, present, readerDirectories, } from './files.js';
|
|
6
|
+
import { nodeText } from './markdown.js';
|
|
7
|
+
export async function checkReaders(target, pages, report) {
|
|
8
|
+
const t = {
|
|
9
|
+
...DOCS_CHECK_THRESHOLDS,
|
|
10
|
+
...target.documentation.check?.thresholds,
|
|
11
|
+
};
|
|
12
|
+
const byPath = new Map(pages.map((p) => [p.path, p]));
|
|
13
|
+
const dirs = readerDirectories(pages.map((p) => p.path));
|
|
14
|
+
const separators = new Map();
|
|
15
|
+
for (const dir of dirs) {
|
|
16
|
+
const path = posix(join(dir, 'index.md'));
|
|
17
|
+
const page = byPath.get(path);
|
|
18
|
+
let grouped = false;
|
|
19
|
+
if (!page)
|
|
20
|
+
report('directory-index', 'error', path, 'Reader-bearing directory needs index.md with a nonempty ## Contents map.');
|
|
21
|
+
else {
|
|
22
|
+
try {
|
|
23
|
+
const entries = parseIndexContents(page.body, path, {
|
|
24
|
+
locations: true,
|
|
25
|
+
});
|
|
26
|
+
const retained = [];
|
|
27
|
+
for (const entry of entries) {
|
|
28
|
+
const lexical = resolve(target.contentRoot, dir, entry.href.split('#')[0] ?? '');
|
|
29
|
+
if (inside(target.contentRoot, lexical) &&
|
|
30
|
+
isExcludedPath(target.matcher, posix(lexical.slice(target.contentRoot.length + 1))))
|
|
31
|
+
continue;
|
|
32
|
+
retained.push(entry);
|
|
33
|
+
if (entry.description && /(?:\.\.\.|…)\s*$/.test(entry.description))
|
|
34
|
+
report('contents-description', 'error', path, 'Contents description is truncated; finish the sentence.', entry.line);
|
|
35
|
+
if (entry.separator)
|
|
36
|
+
separators.set(entry.separator, { path, line: entry.line });
|
|
37
|
+
try {
|
|
38
|
+
// Existing strict Contents resolution owns local map semantics.
|
|
39
|
+
await resolveEntryTarget(target.contentRoot, join(target.contentRoot, dir), dir, entry, ['.md', '.mdx'], target.matcher);
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
report('directory-index', 'error', path, String(error.message), entry.line);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
grouped = retained.some((e) => e.group !== undefined);
|
|
46
|
+
if (dir === '.' && !grouped) {
|
|
47
|
+
if (retained.length > t.rootError)
|
|
48
|
+
report('root-width', 'error', path, `Flat root has ${retained.length} Contents links; maximum ${t.rootError}.`);
|
|
49
|
+
else if (retained.length > t.rootWarn)
|
|
50
|
+
report('root-width', 'warn', path, `Flat root has ${retained.length} Contents links; group above ${t.rootWarn}.`);
|
|
51
|
+
}
|
|
52
|
+
const catalog = page.frontmatter.catalog === true ||
|
|
53
|
+
page.source.includes('<!-- AUTOGENERATED by `oat docs generate-index`.');
|
|
54
|
+
if (!grouped && !catalog) {
|
|
55
|
+
if (retained.length > t.contentsError)
|
|
56
|
+
report('contents-width', 'error', path, `Ungrouped Contents has ${retained.length} links; maximum ${t.contentsError}.`);
|
|
57
|
+
else if (retained.length > t.contentsWarn)
|
|
58
|
+
report('contents-width', 'warn', path, `Ungrouped Contents has ${retained.length} links; group above ${t.contentsWarn}.`);
|
|
59
|
+
}
|
|
60
|
+
const contentsHeading = page.nodes.find((n) => n.type === 'heading' &&
|
|
61
|
+
n.depth === 2 &&
|
|
62
|
+
nodeText(n).trim() === 'Contents');
|
|
63
|
+
const words = page.nodes
|
|
64
|
+
.filter((n) => n.type === 'paragraph' &&
|
|
65
|
+
(n.position?.end.line ?? Infinity) <
|
|
66
|
+
(contentsHeading?.position?.start.line ?? 0))
|
|
67
|
+
.map(nodeText)
|
|
68
|
+
.join(' ')
|
|
69
|
+
.trim()
|
|
70
|
+
.split(/\s+/)
|
|
71
|
+
.filter(Boolean).length;
|
|
72
|
+
if (words < t.overviewWords)
|
|
73
|
+
report('overview', 'warn', path, `Overview has ${words} words; use at least ${t.overviewWords} before Contents.`);
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
report('directory-index', 'error', path, error.message);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const count = pages.filter((p) => dirname(p.path) === dir).length;
|
|
80
|
+
const child = dirs.some((d) => d !== dir && (dir === '.' || d.startsWith(`${dir}/`)));
|
|
81
|
+
if (!child) {
|
|
82
|
+
if (count === 1 && page)
|
|
83
|
+
report('leaf-size', 'error', path, 'Index-only leaf has no reader destination; flatten it or add its reader pages.');
|
|
84
|
+
else if (count === 2)
|
|
85
|
+
report('leaf-size', 'warn', path, 'Leaf has only two direct reader pages including index.md; consider flattening.');
|
|
86
|
+
}
|
|
87
|
+
if (!grouped) {
|
|
88
|
+
if (count > t.folderError)
|
|
89
|
+
report('folder-size', 'error', path, `Folder has ${count} direct reader pages including index; maximum ${t.folderError} without groups.`);
|
|
90
|
+
else if (count > t.folderWarn)
|
|
91
|
+
report('folder-size', 'warn', path, `Folder has ${count} direct reader pages including index; group above ${t.folderWarn}.`);
|
|
92
|
+
}
|
|
93
|
+
const depth = dir === '.' ? 0 : dir.split('/').length;
|
|
94
|
+
if (depth >= t.depthError)
|
|
95
|
+
report('depth', 'error', path, `Directory depth ${depth}; error at ${t.depthError} (content root is 0).`);
|
|
96
|
+
else if (depth >= t.depthWarn)
|
|
97
|
+
report('depth', 'warn', path, `Directory depth ${depth}; warning at ${t.depthWarn} (content root is 0).`);
|
|
98
|
+
}
|
|
99
|
+
if (separators.size > 1)
|
|
100
|
+
for (const { path, line } of separators.values())
|
|
101
|
+
report('contents-separator', 'warn', path, `Contents separators differ within this tree (${[...separators.keys()].sort().join(', ')}).`, line);
|
|
102
|
+
for (const p of pages) {
|
|
103
|
+
if (!p.frontmatterError) {
|
|
104
|
+
const desc = p.frontmatter.description;
|
|
105
|
+
if (typeof desc !== 'string' || !desc.trim())
|
|
106
|
+
report('description', 'error', p.path, 'Frontmatter description is required and must be nonempty.', 1);
|
|
107
|
+
else if (desc.trim().length < t.descriptionMin ||
|
|
108
|
+
desc.trim().length > t.descriptionMax)
|
|
109
|
+
report('description', 'warn', p.path, `Description has ${desc.trim().length} characters; expected ${t.descriptionMin}–${t.descriptionMax}.`, 1);
|
|
110
|
+
}
|
|
111
|
+
const h1 = p.nodes.filter((n) => n.type === 'heading' && n.depth === 1);
|
|
112
|
+
if (h1.length !== 1)
|
|
113
|
+
report('h1', 'error', p.path, `Expected one real H1; found ${h1.length}.`, h1[1]?.position?.start.line ?? 1);
|
|
114
|
+
const reference = p.frontmatter.type === 'reference' ||
|
|
115
|
+
/(?:^|\/)references?(?:\/|$)/.test(p.path);
|
|
116
|
+
const lines = p.source.split(/\r?\n/).length - (p.source.endsWith('\n') ? 1 : 0);
|
|
117
|
+
const limit = reference ? t.referenceLines : t.pageLines;
|
|
118
|
+
if (lines > limit)
|
|
119
|
+
report('page-length', 'warn', p.path, `Page has ${lines} physical source lines; limit ${limit}${reference ? ' for reference pages' : ''}.`);
|
|
120
|
+
const h3 = p.nodes.filter((n) => n.type === 'heading' && n.depth === 3).length;
|
|
121
|
+
if (reference && h3 > t.referenceH3)
|
|
122
|
+
report('page-length', 'warn', p.path, `Reference page has ${h3} real H3 headings; limit ${t.referenceH3}.`);
|
|
123
|
+
for (const link of p.links) {
|
|
124
|
+
const href = link.href;
|
|
125
|
+
if (/^(?:[a-z][a-z\d+.-]*:|\/\/)/i.test(href))
|
|
126
|
+
continue;
|
|
127
|
+
let pathname;
|
|
128
|
+
let anchor;
|
|
129
|
+
try {
|
|
130
|
+
const hash = href.indexOf('#');
|
|
131
|
+
pathname = decodeURIComponent((hash < 0 ? href : href.slice(0, hash)).split('?')[0]);
|
|
132
|
+
anchor = hash < 0 ? '' : decodeURIComponent(href.slice(hash + 1));
|
|
133
|
+
}
|
|
134
|
+
catch {
|
|
135
|
+
report('links', 'error', p.path, `Malformed percent encoding in link "${href}".`, link.line);
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
if (!pathname) {
|
|
139
|
+
if (anchor && !p.anchors.has(anchor))
|
|
140
|
+
report('links', 'error', p.path, `Unresolved anchor "${href}".`, link.line);
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
if (pathname.startsWith('~/'))
|
|
144
|
+
continue; // provenance reports it, never read home paths
|
|
145
|
+
const file = pathname.startsWith('/')
|
|
146
|
+
? resolve(target.contentRoot, `.${pathname}`)
|
|
147
|
+
: resolve(target.contentRoot, dirname(p.path), pathname);
|
|
148
|
+
if (!inside(target.contentRoot, file))
|
|
149
|
+
continue; // provenance warns without outside IO
|
|
150
|
+
const relativePath = posix(file.slice(target.contentRoot.length + 1));
|
|
151
|
+
if (isExcludedPath(target.matcher, relativePath))
|
|
152
|
+
continue;
|
|
153
|
+
let resolved = file;
|
|
154
|
+
let isFile = await containedFile(target.contentRoot, file);
|
|
155
|
+
if (!isFile && !extname(pathname)) {
|
|
156
|
+
for (const suffix of ['.md', '.mdx', '/index.md'])
|
|
157
|
+
if (await containedFile(target.contentRoot, file + suffix)) {
|
|
158
|
+
resolved = file + suffix;
|
|
159
|
+
isFile = true;
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
// Framework public assets have a separate explicit allowed root. Rendered
|
|
164
|
+
// absolute routes are validated only when they identify a reader file.
|
|
165
|
+
if (!isFile && pathname.startsWith('/') && link.image) {
|
|
166
|
+
const publicRoot = join(target.appRoot, 'public');
|
|
167
|
+
isFile =
|
|
168
|
+
(await present(publicRoot)) &&
|
|
169
|
+
(await containedFile(publicRoot, resolve(publicRoot, `.${pathname}`)));
|
|
170
|
+
}
|
|
171
|
+
if (!isFile &&
|
|
172
|
+
pathname.startsWith('/') &&
|
|
173
|
+
!link.image &&
|
|
174
|
+
!/\.mdx?$/.test(pathname))
|
|
175
|
+
continue;
|
|
176
|
+
if (!isFile)
|
|
177
|
+
report('links', 'error', p.path, `Unresolved in-root link "${href}".`, link.line);
|
|
178
|
+
else if (anchor && /\.mdx?$/.test(resolved)) {
|
|
179
|
+
const destination = byPath.get(posix(resolved.slice(target.contentRoot.length + 1)));
|
|
180
|
+
if (destination && !destination.anchors.has(anchor))
|
|
181
|
+
report('links', 'error', p.path, `Unresolved anchor "${href}".`, link.line);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
export function checkProvenance(target, pages, report) {
|
|
187
|
+
const patterns = [
|
|
188
|
+
/\.oat\//u,
|
|
189
|
+
/\b[Bb][Ll]-[\w-]+/u,
|
|
190
|
+
/(?:~\/|\/Users\/|\/home\/)/u,
|
|
191
|
+
...(target.documentation.check?.provenance?.ticketPatterns ?? []).map((p) => new RegExp(p, 'u')),
|
|
192
|
+
...(target.documentation.check?.provenance?.milestonePatterns ?? []).map((p) => new RegExp(p, 'u')),
|
|
193
|
+
];
|
|
194
|
+
for (const p of pages) {
|
|
195
|
+
p.source.split(/\r?\n/).forEach((text, line) => {
|
|
196
|
+
if (patterns.some((pattern) => pattern.test(text)))
|
|
197
|
+
report('provenance', 'warn', p.path, 'Reader page contains a planning/backlog/home path or configured ticket/milestone pattern; remove it or record a reason-bearing decision-pointer exception.', line + 1);
|
|
198
|
+
});
|
|
199
|
+
for (const link of p.links) {
|
|
200
|
+
if (/^(?:[a-z][a-z\d+.-]*:|\/)/i.test(link.href))
|
|
201
|
+
continue;
|
|
202
|
+
const href = link.href.split(/[?#]/)[0];
|
|
203
|
+
let decoded;
|
|
204
|
+
try {
|
|
205
|
+
decoded = decodeURIComponent(href);
|
|
206
|
+
}
|
|
207
|
+
catch {
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
if (!inside(target.contentRoot, resolve(target.contentRoot, dirname(p.path), decoded)))
|
|
211
|
+
report('provenance', 'warn', p.path, `Link "${link.href}" escapes the docs root; target was not read.`, link.line);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/docs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/docs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,wBAAgB,iBAAiB,IAAI,OAAO,CAU3C"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
import { createDocsAnalyzeCommand } from './analyze.js';
|
|
3
3
|
import { createDocsApplyCommand } from './apply.js';
|
|
4
|
+
import { createDocsCheckCommand } from './check/check.js';
|
|
4
5
|
import { createDocsGenerateIndexCommand } from './index-generate/index.js';
|
|
5
6
|
import { createDocsInitCommand } from './init/index.js';
|
|
6
7
|
import { createDocsMigrateCommand } from './migrate/index.js';
|
|
@@ -8,6 +9,7 @@ import { createDocsNavCommand } from './nav/index.js';
|
|
|
8
9
|
export function createDocsCommand() {
|
|
9
10
|
return new Command('docs')
|
|
10
11
|
.description('OAT documentation bootstrap and maintenance commands')
|
|
12
|
+
.addCommand(createDocsCheckCommand())
|
|
11
13
|
.addCommand(createDocsAnalyzeCommand())
|
|
12
14
|
.addCommand(createDocsApplyCommand())
|
|
13
15
|
.addCommand(createDocsGenerateIndexCommand())
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const IA_PRESETS: readonly ['product-engineering-qa', 'consumer-maintainer', 'domain-engineering', 'task-type', 'toolkit-cli', 'flat-small'];
|
|
2
|
+
export type IaPreset = (typeof IA_PRESETS)[number];
|
|
3
|
+
export interface PresetSelection {
|
|
4
|
+
iaPreset?: IaPreset;
|
|
5
|
+
plannedPages?: number;
|
|
6
|
+
}
|
|
7
|
+
/** Validate the opt-in pair before planning or writing any scaffold files. */
|
|
8
|
+
export declare function resolvePresetSelection(preset?: string, count?: string | number): PresetSelection;
|
|
9
|
+
export declare function mergeTemplateExclusion(paths?: string[]): string[];
|
|
10
|
+
/** Shared narrow content plan; bodies are loaded from the bundled canonical skill. */
|
|
11
|
+
export declare function planPresetContent(options: PresetSelection & {
|
|
12
|
+
assetsRoot: string;
|
|
13
|
+
siteName: string;
|
|
14
|
+
siteDescription?: string;
|
|
15
|
+
markdown: boolean;
|
|
16
|
+
}): Promise<{
|
|
17
|
+
files: {
|
|
18
|
+
name: string;
|
|
19
|
+
content: string;
|
|
20
|
+
}[];
|
|
21
|
+
guidance: string;
|
|
22
|
+
} | null>;
|
|
23
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../src/commands/docs/init/content.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,YACrB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,YAAY,CACJ,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACnD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,8EAA8E;AAC9E,wBAAgB,sBAAsB,CACpC,MAAM,CAAC,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GACtB,eAAe,CAiBjB;AAmSD,wBAAgB,sBAAsB,CAAC,KAAK,GAAE,MAAM,EAAO,GAAG,MAAM,EAAE,CAErE;AAQD,sFAAsF;AACtF,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,eAAe,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;CACnB,GACA,OAAO,CAAC;IACT,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,CAAC,CAwFR"}
|
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
import { readFile } from 'node:fs/promises';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
export const IA_PRESETS = [
|
|
4
|
+
'product-engineering-qa',
|
|
5
|
+
'consumer-maintainer',
|
|
6
|
+
'domain-engineering',
|
|
7
|
+
'task-type',
|
|
8
|
+
'toolkit-cli',
|
|
9
|
+
'flat-small',
|
|
10
|
+
];
|
|
11
|
+
/** Validate the opt-in pair before planning or writing any scaffold files. */
|
|
12
|
+
export function resolvePresetSelection(preset, count) {
|
|
13
|
+
if (preset === undefined && count === undefined)
|
|
14
|
+
return {};
|
|
15
|
+
if (preset === undefined || count === undefined)
|
|
16
|
+
throw new Error('--ia-preset and --planned-pages are required together.');
|
|
17
|
+
if (!IA_PRESETS.includes(preset))
|
|
18
|
+
throw new Error(`Unknown IA preset "${preset}". Choose: ${IA_PRESETS.join(', ')}.`);
|
|
19
|
+
if (!/^\d+$/.test(String(count)) ||
|
|
20
|
+
!Number.isSafeInteger(Number(count)) ||
|
|
21
|
+
Number(count) < 1)
|
|
22
|
+
throw new Error('--planned-pages must be an integer of at least 1 (anticipated reader pages only).');
|
|
23
|
+
return { iaPreset: preset, plannedPages: Number(count) };
|
|
24
|
+
}
|
|
25
|
+
const engineering = {
|
|
26
|
+
path: 'engineering',
|
|
27
|
+
title: 'Engineering',
|
|
28
|
+
principle: 'Domain and implementation contracts alongside paired feature pages',
|
|
29
|
+
purpose: 'Engineering is hybrid: enter by domain or implementation contract when changing shared behavior, and by feature when following its paired Product and QA pages.',
|
|
30
|
+
sections: [
|
|
31
|
+
[
|
|
32
|
+
'Domain contracts',
|
|
33
|
+
'Place shared domain rules, interface boundaries and invariants here; link the features that depend on them.',
|
|
34
|
+
],
|
|
35
|
+
[
|
|
36
|
+
'Feature implementation',
|
|
37
|
+
'Link implementation details for each feature to its Product intent, shared domain contracts and QA validation.',
|
|
38
|
+
],
|
|
39
|
+
[
|
|
40
|
+
'Operations and failure modes',
|
|
41
|
+
'Place diagnosis, recovery and operational limits here; link runbooks and incident solution records.',
|
|
42
|
+
],
|
|
43
|
+
],
|
|
44
|
+
};
|
|
45
|
+
const TRACKS = {
|
|
46
|
+
'product-engineering-qa': [
|
|
47
|
+
{
|
|
48
|
+
path: 'product',
|
|
49
|
+
title: 'Product',
|
|
50
|
+
principle: 'Feature or journey',
|
|
51
|
+
purpose: 'Product readers enter by feature or journey to understand availability, intended behavior and user-visible boundaries.',
|
|
52
|
+
sections: [
|
|
53
|
+
[
|
|
54
|
+
'Availability',
|
|
55
|
+
'Describe who can use each feature, supported environments and known availability limits; link its feature page.',
|
|
56
|
+
],
|
|
57
|
+
[
|
|
58
|
+
'Journeys and behavior',
|
|
59
|
+
'Place feature goals and ordered user journeys here, with their expected user-visible outcomes.',
|
|
60
|
+
],
|
|
61
|
+
[
|
|
62
|
+
'States and boundaries',
|
|
63
|
+
'Document visible states, transitions, empty and error behavior, and what each feature excludes.',
|
|
64
|
+
],
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
engineering,
|
|
68
|
+
{
|
|
69
|
+
path: 'qa',
|
|
70
|
+
title: 'QA',
|
|
71
|
+
principle: 'Feature or journey with reproducible verification',
|
|
72
|
+
purpose: 'QA readers enter by feature or journey to reproduce behavior with named seeds, ready signals, exact expectations and cleanup.',
|
|
73
|
+
sections: [
|
|
74
|
+
[
|
|
75
|
+
'Seeds and configuration',
|
|
76
|
+
'Place reproducible test data, configuration and ready signals here; identify safe setup and cleanup.',
|
|
77
|
+
],
|
|
78
|
+
[
|
|
79
|
+
'Scenarios',
|
|
80
|
+
'Organize validation by feature or journey, with actions, exact expectations and links to the supported contract.',
|
|
81
|
+
],
|
|
82
|
+
[
|
|
83
|
+
'Execution evidence',
|
|
84
|
+
'Keep dated runs, observed results and discrepancies here, separate from planned automation and implemented assertions.',
|
|
85
|
+
],
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
'consumer-maintainer': [
|
|
90
|
+
{
|
|
91
|
+
path: 'consumer',
|
|
92
|
+
title: 'Consumer',
|
|
93
|
+
principle: 'Reader task and supported contract',
|
|
94
|
+
purpose: 'Consumers enter by the task they need to complete and the supported contract they can rely on.',
|
|
95
|
+
sections: [
|
|
96
|
+
[
|
|
97
|
+
'Start here',
|
|
98
|
+
'Link the shortest supported first task, including prerequisites and a result the reader can verify.',
|
|
99
|
+
],
|
|
100
|
+
[
|
|
101
|
+
'Tasks',
|
|
102
|
+
'Place bounded procedures for consumer goals here; link required inputs and verification steps.',
|
|
103
|
+
],
|
|
104
|
+
[
|
|
105
|
+
'Supported reference',
|
|
106
|
+
'Collect supported interfaces, inputs, outputs and compatibility limits for consumer lookup.',
|
|
107
|
+
],
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
path: 'maintainer',
|
|
112
|
+
title: 'Maintainer',
|
|
113
|
+
principle: 'Change, operation and maintenance responsibility',
|
|
114
|
+
purpose: 'Maintainers enter by the responsibility they own: implementation, delivery, operations or support of the shared contract.',
|
|
115
|
+
sections: [
|
|
116
|
+
[
|
|
117
|
+
'Implementation contracts',
|
|
118
|
+
'Place internal interfaces, invariants and ownership boundaries here for maintainers changing behavior.',
|
|
119
|
+
],
|
|
120
|
+
[
|
|
121
|
+
'Delivery',
|
|
122
|
+
'Document release preparation, compatibility checks, rollout and rollback responsibilities here.',
|
|
123
|
+
],
|
|
124
|
+
[
|
|
125
|
+
'Operations',
|
|
126
|
+
'Link routine maintenance, diagnostic procedures and recovery runbooks, with their authority and safety boundaries.',
|
|
127
|
+
],
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
'domain-engineering': [engineering],
|
|
132
|
+
'task-type': [
|
|
133
|
+
{
|
|
134
|
+
path: 'tutorials',
|
|
135
|
+
title: 'Tutorials',
|
|
136
|
+
principle: 'Learning by a complete safe exercise',
|
|
137
|
+
purpose: 'Learners enter through a guided exercise with a clear starting state and an independently verifiable result.',
|
|
138
|
+
sections: [
|
|
139
|
+
[
|
|
140
|
+
'Prerequisites',
|
|
141
|
+
'State the required knowledge, access, environment and safe starting data before the reader begins.',
|
|
142
|
+
],
|
|
143
|
+
[
|
|
144
|
+
'Guided exercise',
|
|
145
|
+
'Walk through one complete learning exercise in order, explaining what each step demonstrates.',
|
|
146
|
+
],
|
|
147
|
+
[
|
|
148
|
+
'Expected result',
|
|
149
|
+
'Show how to recognize a successful exercise and compare the observed result with the learning goal.',
|
|
150
|
+
],
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
path: 'how-to',
|
|
155
|
+
title: 'How-to',
|
|
156
|
+
principle: 'One concrete reader task',
|
|
157
|
+
purpose: 'Readers who know their goal enter by task, confirm prerequisites and follow a bounded procedure.',
|
|
158
|
+
sections: [
|
|
159
|
+
[
|
|
160
|
+
'Prerequisites',
|
|
161
|
+
'State the required knowledge, access, environment and safe starting data before the reader begins.',
|
|
162
|
+
],
|
|
163
|
+
[
|
|
164
|
+
'Procedure',
|
|
165
|
+
'Give the ordered actions for one concrete task, including decision points and supported alternatives.',
|
|
166
|
+
],
|
|
167
|
+
[
|
|
168
|
+
'Verification and cleanup',
|
|
169
|
+
'Explain how to check the task result, remove temporary resources and recover from an incomplete attempt.',
|
|
170
|
+
],
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
path: 'reference',
|
|
175
|
+
title: 'Reference',
|
|
176
|
+
principle: 'Lookup by supported interface or contract',
|
|
177
|
+
purpose: 'Readers enter by a named interface or contract to find exact inputs, outputs, defaults and supported limits.',
|
|
178
|
+
sections: [
|
|
179
|
+
[
|
|
180
|
+
'Interfaces',
|
|
181
|
+
'Describe supported commands, APIs or configuration fields with their accepted inputs and observable outputs.',
|
|
182
|
+
],
|
|
183
|
+
[
|
|
184
|
+
'Defaults and limits',
|
|
185
|
+
'Record source-verified defaults, supported ranges and compatibility constraints for precise lookup.',
|
|
186
|
+
],
|
|
187
|
+
[
|
|
188
|
+
'Failure behavior',
|
|
189
|
+
'Describe errors, partial outcomes and recovery expectations for each supported interface.',
|
|
190
|
+
],
|
|
191
|
+
],
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
path: 'explanation',
|
|
195
|
+
title: 'Explanation',
|
|
196
|
+
principle: 'Understanding concepts and tradeoffs',
|
|
197
|
+
purpose: 'Readers enter by a concept or design question to understand relationships, constraints and tradeoffs.',
|
|
198
|
+
sections: [
|
|
199
|
+
[
|
|
200
|
+
'Concepts',
|
|
201
|
+
'Explain the vocabulary and mental models readers need before following task or reference pages.',
|
|
202
|
+
],
|
|
203
|
+
[
|
|
204
|
+
'Relationships',
|
|
205
|
+
'Show how the concepts and components depend on one another, linking their canonical contracts.',
|
|
206
|
+
],
|
|
207
|
+
[
|
|
208
|
+
'Tradeoffs',
|
|
209
|
+
'Explain design choices, alternatives and constraints, linking the decisions that establish them.',
|
|
210
|
+
],
|
|
211
|
+
],
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
'toolkit-cli': [
|
|
215
|
+
{
|
|
216
|
+
path: 'tools',
|
|
217
|
+
title: 'Tools',
|
|
218
|
+
principle: 'Tool, skill or command invocation',
|
|
219
|
+
purpose: 'Tool users enter by command or skill, confirm prerequisites and mutation scope, then inspect the expected output.',
|
|
220
|
+
sections: [
|
|
221
|
+
[
|
|
222
|
+
'Invocation',
|
|
223
|
+
'Document how to invoke each command or skill, including prerequisites and supported examples.',
|
|
224
|
+
],
|
|
225
|
+
[
|
|
226
|
+
'Inputs and side effects',
|
|
227
|
+
'Describe accepted arguments and configuration, mutation scope, required approval and external effects.',
|
|
228
|
+
],
|
|
229
|
+
[
|
|
230
|
+
'Outputs',
|
|
231
|
+
'Document result fields, generated artifacts, exit behavior and the next action each outcome supports.',
|
|
232
|
+
],
|
|
233
|
+
],
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
path: 'workflows',
|
|
237
|
+
title: 'Workflows',
|
|
238
|
+
principle: 'Reader goal across a sequence of tools',
|
|
239
|
+
purpose: 'Workflow users enter by their goal and follow an ordered sequence of tools with explicit authority and handoffs.',
|
|
240
|
+
sections: [
|
|
241
|
+
[
|
|
242
|
+
'Starting state',
|
|
243
|
+
'State the reader goal, required inputs, authority and ready signals before a workflow begins.',
|
|
244
|
+
],
|
|
245
|
+
[
|
|
246
|
+
'Sequence and handoffs',
|
|
247
|
+
'Order the tools and decisions, naming what each step passes to the next responsible actor.',
|
|
248
|
+
],
|
|
249
|
+
[
|
|
250
|
+
'Completion evidence',
|
|
251
|
+
'Define the observable result that closes the workflow and where to retain its execution evidence.',
|
|
252
|
+
],
|
|
253
|
+
],
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
'flat-small': [
|
|
257
|
+
{
|
|
258
|
+
path: 'start-here',
|
|
259
|
+
title: 'Start here',
|
|
260
|
+
principle: 'Reader goal in a flat grouped index',
|
|
261
|
+
purpose: 'Readers enter by their immediate goal, using one grouped index instead of navigating a hierarchy before choosing a task.',
|
|
262
|
+
sections: [
|
|
263
|
+
[
|
|
264
|
+
'Reader tasks',
|
|
265
|
+
'Group links by the immediate goals readers need to accomplish, keeping each procedure focused.',
|
|
266
|
+
],
|
|
267
|
+
[
|
|
268
|
+
'Reference',
|
|
269
|
+
'Link canonical interface and configuration facts for lookup without repeating them in task pages.',
|
|
270
|
+
],
|
|
271
|
+
[
|
|
272
|
+
'Operations',
|
|
273
|
+
'Link routine maintenance, diagnostic procedures and recovery runbooks, with their authority and safety boundaries.',
|
|
274
|
+
],
|
|
275
|
+
],
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
};
|
|
279
|
+
const SUPPORT_TEMPLATES = [
|
|
280
|
+
'alert-runbook',
|
|
281
|
+
'solution-record',
|
|
282
|
+
'command-reference',
|
|
283
|
+
'skill-command-guide',
|
|
284
|
+
'decisions-pointer',
|
|
285
|
+
'per-area-agents',
|
|
286
|
+
];
|
|
287
|
+
const TRIAD_TEMPLATES = [
|
|
288
|
+
'product-feature',
|
|
289
|
+
'engineering-feature',
|
|
290
|
+
'qa-validation',
|
|
291
|
+
'screen-spec',
|
|
292
|
+
...SUPPORT_TEMPLATES,
|
|
293
|
+
];
|
|
294
|
+
export function mergeTemplateExclusion(paths = []) {
|
|
295
|
+
return [...new Set([...paths, 'contributing/templates/**'])];
|
|
296
|
+
}
|
|
297
|
+
function page(title, description, body) {
|
|
298
|
+
return `---\ntitle: ${JSON.stringify(title)}\ndescription: ${JSON.stringify(description)}\n---\n\n# ${title}\n\n${body}\n`;
|
|
299
|
+
}
|
|
300
|
+
function link(title, path, description) {
|
|
301
|
+
return `- [${title}](${path}) - ${description}`;
|
|
302
|
+
}
|
|
303
|
+
/** Shared narrow content plan; bodies are loaded from the bundled canonical skill. */
|
|
304
|
+
export async function planPresetContent(options) {
|
|
305
|
+
const selection = resolvePresetSelection(options.iaPreset, options.plannedPages);
|
|
306
|
+
if (!selection.iaPreset)
|
|
307
|
+
return null;
|
|
308
|
+
const preset = selection.iaPreset;
|
|
309
|
+
const tracks = TRACKS[preset];
|
|
310
|
+
const flat = selection.plannedPages < 15 || preset === 'flat-small';
|
|
311
|
+
const files = [];
|
|
312
|
+
const rootLinks = [];
|
|
313
|
+
for (const track of tracks) {
|
|
314
|
+
const guideName = flat ? `${track.path}.md` : `${track.path}/start-here.md`;
|
|
315
|
+
const indexName = `${track.path}/index.md`;
|
|
316
|
+
const guideTitle = `${track.title}: choose a safe first task`;
|
|
317
|
+
const guide = `${track.purpose}\n\n## Choose the right contract\n\nIdentify your goal and supported environment before acting. Check availability, permissions and prerequisites in the repository's current source and reviewed guidance. A missing fact is a review gap, not permission to guess.\n\n## Establish a safe starting state\n\nPrefer an isolated example or read-only inspection. Record relevant configuration and inputs, avoid real personal data, and identify the owner of any external dependency. For changes, confirm approval and a cleanup or rollback route before proceeding.\n\n## Verify the result\n\nCompare the observable result with the supported contract. Keep concepts in prose; use backticks only for literals verified in source. Separate proposed automation, implemented test assertions and dated execution evidence. Escalate a discrepancy with the input, expected result and observed evidence.\n\n## Continue\n\nReturn to the [${flat ? 'documentation map' : `${track.title} map`}](index.md) to choose the next reader goal.\n`;
|
|
318
|
+
files.push({
|
|
319
|
+
name: guideName,
|
|
320
|
+
content: page(guideTitle, `Select prerequisites, boundaries and a verifiable first result for ${track.title.toLowerCase()} work.`, guide),
|
|
321
|
+
});
|
|
322
|
+
if (flat) {
|
|
323
|
+
rootLinks.push(`### ${track.title}\n\n${track.purpose}\n\n${link(guideTitle, guideName, 'Choose a safe starting state and verify the result.')}\n`);
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
const sections = track.sections
|
|
327
|
+
.map(([title, guidance]) => `## ${title}\n\n${guidance}`)
|
|
328
|
+
.join('\n\n');
|
|
329
|
+
files.push({
|
|
330
|
+
name: indexName,
|
|
331
|
+
content: page(track.title, track.purpose, `${track.purpose}\n\nEntry principle: ${track.principle}. This track owns its canonical facts; route to shared contracts and paired pages rather than copying their claims.\n\n## Contents\n\n${link(guideTitle, 'start-here.md', 'Choose a safe starting state and verify the result.')}\n\n${sections}`),
|
|
332
|
+
});
|
|
333
|
+
rootLinks.push(link(track.title, indexName, track.purpose));
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
const contributor = options.markdown
|
|
337
|
+
? 'contributing.md'
|
|
338
|
+
: 'contributing/index.md';
|
|
339
|
+
rootLinks.push(`${flat ? '### Contributing\n\n' : ''}${link('Contributing', contributor, 'Authoring conventions and template selection.')}\n`);
|
|
340
|
+
files.unshift({
|
|
341
|
+
name: 'index.md',
|
|
342
|
+
content: page(options.siteName, options.siteDescription?.trim() ||
|
|
343
|
+
`Reader entry points for the ${preset} model.`, `Choose the entry matching your work context. This documentation uses the ${preset} reader model; its entry principles guide placement, while page count controls materialized depth. Confirm repository-specific behavior against source before acting.\n\n## Contents\n\n${rootLinks.join('\n')}`),
|
|
344
|
+
});
|
|
345
|
+
const templates = preset === 'product-engineering-qa'
|
|
346
|
+
? TRIAD_TEMPLATES
|
|
347
|
+
: preset === 'domain-engineering'
|
|
348
|
+
? ['engineering-feature', ...SUPPORT_TEMPLATES]
|
|
349
|
+
: SUPPORT_TEMPLATES;
|
|
350
|
+
for (const name of templates) {
|
|
351
|
+
files.push({
|
|
352
|
+
name: `contributing/templates/${name}.md`,
|
|
353
|
+
content: await readFile(join(options.assetsRoot, 'skills', 'authoring-docs', 'references', 'page-templates', `${name}.md`), 'utf8'),
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
const table = tracks
|
|
357
|
+
.map((track) => `| ${flat ? `index.md (group: ${track.title})` : `${track.path}/`} | ${track.title} | ${track.principle} |`)
|
|
358
|
+
.join('\n');
|
|
359
|
+
const guidance = `## Preset selection\n\nAccepted selection supplied to init: ${preset}; anticipated reader pages: ${selection.plannedPages}. ${flat ? 'Reader structure is collapsed into grouped root headings.' : 'Reader directories are materialized at 15 or more anticipated pages.'} Contributor, template and toolchain pages are outside this reader-page estimate.\n\n| Location | Reader track | Entry principle |\n| --- | --- | --- |\n${table}\n\n${tracks.map((t) => t.purpose).join('\n\n')}\n\nUse contributing/templates/ as non-reader drafting assets. Screen specs are conditional on several journeys sharing a screen; no screen page or per-track AGENTS file is created automatically. Preserve canonical facts and paired links. This selection is not a persisted IA decision: complete the existing explicit approval/adoption and record-ia flow before claiming an authored IA record or config mirror. It does not initialize project management. Existing surfaces route to analyze and individually approved apply; init never restructures them.\n`;
|
|
360
|
+
return { files, guidance };
|
|
361
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/docs/init/index.ts"],"names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