create-vibe-maestro 0.4.2 → 0.4.4
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/CHANGELOG.md +92 -0
- package/README.md +11 -11
- package/dist/cli/archive-run.js +75 -0
- package/dist/cli/context-run.js +10 -0
- package/dist/cli/maestro.js +46 -4
- package/dist/cli/pack-run.js +42 -3
- package/dist/cli/upgrade-run.js +44 -5
- package/dist/core/archive/audits.js +37 -0
- package/dist/core/archive/disk.js +38 -0
- package/dist/core/archive/index.js +286 -0
- package/dist/core/archive/limits.js +27 -0
- package/dist/core/archive/links.js +65 -0
- package/dist/core/archive/log.js +83 -0
- package/dist/core/archive/markdown.js +28 -0
- package/dist/core/archive/plan.js +183 -0
- package/dist/core/archive/types.js +1 -0
- package/dist/core/audits.js +37 -0
- package/dist/core/context.js +47 -2
- package/dist/core/doctor/fs-utils.js +3 -2
- package/dist/core/doctor/index.js +5 -2
- package/dist/core/doctor/memory.js +52 -0
- package/dist/core/doctor/plans.js +4 -4
- package/dist/core/doctor/wiki.js +9 -33
- package/dist/core/gitignore.js +3 -1
- package/dist/core/inventory.js +2 -10
- package/dist/core/pack.js +130 -12
- package/dist/core/plan.js +43 -2
- package/dist/core/preflight.js +6 -5
- package/dist/core/template.js +2 -1
- package/dist/core/text-diff.js +108 -0
- package/dist/core/transaction.js +132 -0
- package/dist/core/upgrade/analyze.js +82 -5
- package/dist/core/upgrade/baseline.js +12 -0
- package/dist/core/upgrade/index.js +31 -87
- package/dist/core/upgrade/releases.js +143 -2
- package/dist/core/wiki-links.js +27 -0
- package/docs/ROADMAP.md +8 -4
- package/docs/USER_GUIDE.md +117 -35
- package/package.json +1 -1
- package/registry/baseline/0.4.2/project/.claude/agents/code-reviewer.md +13 -0
- package/registry/baseline/0.4.2/project/.claude/rules/maestro.md +37 -0
- package/registry/baseline/0.4.2/project/maestro/runbooks/cowork-audit.md +11 -0
- package/registry/baseline/0.4.2/project/maestro/templates/handoff.md +25 -0
- package/registry/baseline/0.4.2/project/protocols/audit.md +5 -0
- package/registry/baseline/0.4.2/project/protocols/build.md +18 -0
- package/registry/baseline/0.4.2/project/protocols/completion.md +22 -0
- package/registry/baseline/0.4.2/project/protocols/handoff.md +15 -0
- package/registry/baseline/0.4.2/project/protocols/plan.md +149 -0
- package/registry/baseline/0.4.2/project/protocols/start.md +64 -0
- package/registry/baseline/0.4.2/project/protocols/wiki.md +9 -0
- package/registry/baseline/0.4.2/project/wiki/plans/README.md +131 -0
- package/registry/baseline/0.4.2/project/wiki/plans/TEMPLATE.md +75 -0
- package/registry/baseline/0.4.3/project/.claude/rules/maestro.md +40 -0
- package/registry/baseline/0.4.3/project/maestro/templates/handoff.md +29 -0
- package/registry/baseline/0.4.3/project/protocols/build.md +120 -0
- package/registry/baseline/0.4.3/project/protocols/completion.md +23 -0
- package/registry/baseline/0.4.3/project/protocols/handoff.md +17 -0
- package/registry/baseline/0.4.3/project/protocols/plan.md +159 -0
- package/registry/baseline/0.4.3/project/protocols/status.md +5 -0
- package/registry/baseline/0.4.3/project/protocols/wiki.md +17 -0
- package/registry/baseline/0.4.3/project/wiki/plans/README.md +135 -0
- package/registry/baseline/0.4.3/project/wiki/plans/TEMPLATE.md +83 -0
- package/registry/capabilities.v1.json +19 -19
- package/templates/project/.claude/agents/code-reviewer.md +18 -7
- package/templates/project/.claude/rules/maestro.md +7 -3
- package/templates/project/.claude/settings.json +1 -0
- package/templates/project/maestro/runbooks/cowork-audit.md +9 -2
- package/templates/project/maestro/templates/audit.md +31 -0
- package/templates/project/maestro/templates/handoff.md +6 -2
- package/templates/project/protocols/audit.md +70 -1
- package/templates/project/protocols/build.md +111 -9
- package/templates/project/protocols/completion.md +8 -7
- package/templates/project/protocols/handoff.md +7 -4
- package/templates/project/protocols/plan.md +34 -23
- package/templates/project/protocols/start.md +1 -1
- package/templates/project/protocols/status.md +1 -1
- package/templates/project/protocols/wiki.md +10 -2
- package/templates/project/wiki/icebox.md +12 -0
- package/templates/project/wiki/index.md +5 -0
- package/templates/project/wiki/log.md +1 -0
- package/templates/project/wiki/passport.md +1 -1
- package/templates/project/wiki/plans/0001-starter.md +15 -4
- package/templates/project/wiki/plans/README.md +27 -3
- package/templates/project/wiki/plans/TEMPLATE.md +23 -6
- /package/{templates → registry/baseline/0.4.2}/project/protocols/build/audit-phase.md +0 -0
- /package/{templates → registry/baseline/0.4.2}/project/protocols/build/audit-plan.md +0 -0
- /package/{templates → registry/baseline/0.4.2}/project/protocols/build/step-1-rules.md +0 -0
- /package/{templates → registry/baseline/0.4.2}/project/protocols/build/step-2-spec.md +0 -0
- /package/{templates → registry/baseline/0.4.2}/project/protocols/build/step-3-architecture.md +0 -0
- /package/{templates → registry/baseline/0.4.2}/project/protocols/build/step-5-feature-loop.md +0 -0
- /package/{templates → registry/baseline/0.4.2}/project/protocols/context-budget.md +0 -0
- /package/{templates → registry/baseline/0.4.2}/project/protocols/discovery.md +0 -0
- /package/{templates → registry/baseline/0.4.2}/project/protocols/lessons.md +0 -0
- /package/{templates → registry/baseline/0.4.2}/project/protocols/seams.md +0 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { posix } from 'node:path';
|
|
2
|
+
import { frontmatter } from '../doctor/text.js';
|
|
3
|
+
import { HOT_PATH, planFileName } from '../doctor/plans.js';
|
|
4
|
+
import { ACTIVE_PLAN_NONE, isWikiRelativePlanRef, PLAN_APPROVAL_DIGEST_KEY, PLAN_NULL, planDigestMatches } from '../plan.js';
|
|
5
|
+
import { countChars, formatChars } from './limits.js';
|
|
6
|
+
import { linkName } from './links.js';
|
|
7
|
+
import { markdownLines, withoutBom } from './markdown.js';
|
|
8
|
+
import { blocker } from './types.js';
|
|
9
|
+
export const PLANS_ARCHIVE_DIR = 'wiki/plans/archive';
|
|
10
|
+
/** Законченные планы: к ним не возвращаются, их отпечаток никто не сверит. `blocked` — пауза, он сюда не входит. */
|
|
11
|
+
const FINISHED_STATUSES = ['completed', 'rejected', 'superseded'];
|
|
12
|
+
export function planFiles(files) {
|
|
13
|
+
const plans = [];
|
|
14
|
+
for (const [path, text] of files) {
|
|
15
|
+
if (planFileName(path) === null)
|
|
16
|
+
continue;
|
|
17
|
+
const plain = withoutBom(text);
|
|
18
|
+
const meta = frontmatter(plain);
|
|
19
|
+
const recorded = meta?.[PLAN_APPROVAL_DIGEST_KEY];
|
|
20
|
+
const digest = recorded === undefined || recorded === PLAN_NULL ? null : recorded;
|
|
21
|
+
plans.push({
|
|
22
|
+
path,
|
|
23
|
+
text,
|
|
24
|
+
meta,
|
|
25
|
+
digest,
|
|
26
|
+
guarded: digest !== null && !FINISHED_STATUSES.includes(meta?.status ?? ''),
|
|
27
|
+
intact: digest === null || planDigestMatches(digest, plain),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return plans;
|
|
31
|
+
}
|
|
32
|
+
export const planArchivePath = (planPath) => `${PLANS_ARCHIVE_DIR}/${posix.basename(planPath)}`;
|
|
33
|
+
/** Шапка нового архива плана. */
|
|
34
|
+
function planArchiveHeader(plan, eol) {
|
|
35
|
+
const name = posix.basename(plan.path);
|
|
36
|
+
return [
|
|
37
|
+
'---', 'type: plan-archive', `plan: ${plan.meta?.id ?? name.slice(0, -3)}`, `source: ${plan.path}`, '---', '',
|
|
38
|
+
`# Архив плана: ${name.slice(0, -3)}`, '',
|
|
39
|
+
`Закрытые правки, перенесённые из [плана](../${linkName(name)}) командой \`vibe-maestro archive\`: текст прежний, поправлены только адреса ссылок. Это история: читайте поиском, руками не правьте и обратно в план не копируйте.`, '', '',
|
|
40
|
+
].join(eol);
|
|
41
|
+
}
|
|
42
|
+
/** Дописывает блоки в архив плана: новый файл — с шапкой, между блоками — пустая строка. */
|
|
43
|
+
export function appendToPlanArchive(existing, plan, blocks, eol) {
|
|
44
|
+
let text = existing ?? planArchiveHeader(plan, eol);
|
|
45
|
+
for (const block of blocks) {
|
|
46
|
+
if (!/(?:\r?\n){2}$/.test(text))
|
|
47
|
+
text += /\r?\n$/.test(text) ? eol : `${eol}${eol}`;
|
|
48
|
+
text += block;
|
|
49
|
+
}
|
|
50
|
+
return text;
|
|
51
|
+
}
|
|
52
|
+
/** Строка в архиве плана: чем заменён отпечаток и когда. */
|
|
53
|
+
export const digestLine = (date, before, after, eol) => `Отпечаток плана заменён командой \`vibe-maestro archive\` ${date}: \`${before}\` → \`${after}\`. Текст совпадал с прежним отпечатком, изменились только перенесённые разделы и адреса ссылок.${eol}`;
|
|
54
|
+
/** Записывает новый отпечаток в строку frontmatter, остальные байты те же. */
|
|
55
|
+
export function writeDigest(text, digest) {
|
|
56
|
+
return text.replace(new RegExp(`^${PLAN_APPROVAL_DIGEST_KEY}:.*$`, 'm'), `${PLAN_APPROVAL_DIGEST_KEY}: ${digest}`);
|
|
57
|
+
}
|
|
58
|
+
const HEADING_RE = /^ {0,3}(#{1,6})[ \t]+(.*?)[ \t]*\r?\n?$/;
|
|
59
|
+
const WORD_RE = /^[\p{L}\p{N}_]/u;
|
|
60
|
+
const COLLECTIONS = ['Правки после утверждения', 'Изменения после утверждения'];
|
|
61
|
+
const APPROVAL = 'Утверждение';
|
|
62
|
+
const POINTER_RE = /^В архиве: \[[^\]]*\]\(archive\/[^)]*\)\.?$/;
|
|
63
|
+
const UNCHECKED_RE = /^[ \t]*(?:[-*+]|\d+[.)])[ \t]+\[ \]/gm;
|
|
64
|
+
/** Сколько заголовков показать в отказе: у живых планов их сотни. */
|
|
65
|
+
const LISTED = 30;
|
|
66
|
+
/** Заголовки и аргументы сравниваются без разметки и с одинарными пробелами. */
|
|
67
|
+
export function plainTitle(value) {
|
|
68
|
+
return value.replace(/`|\*\*|[«»]/g, '').replace(/\s+/g, ' ').trim();
|
|
69
|
+
}
|
|
70
|
+
const startsWithWord = (title, wanted) => title.startsWith(wanted) && !WORD_RE.test(title.slice(wanted.length));
|
|
71
|
+
function mentionsSlice(text, slice) {
|
|
72
|
+
const escaped = slice.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
73
|
+
return new RegExp(`(?<![\\p{L}\\p{N}_])${escaped}(?![\\p{L}\\p{N}_])`, 'u').test(text);
|
|
74
|
+
}
|
|
75
|
+
export function planHeadings(text) {
|
|
76
|
+
const body = /^\uFEFF?---\r?\n[\s\S]*?\r?\n---(?:\r?\n|$)/.exec(text)?.[0].length ?? 0;
|
|
77
|
+
const headings = [];
|
|
78
|
+
for (const { line, offset, code } of markdownLines(text)) {
|
|
79
|
+
if (code || offset < body)
|
|
80
|
+
continue;
|
|
81
|
+
const match = HEADING_RE.exec(line);
|
|
82
|
+
if (match !== null)
|
|
83
|
+
headings.push({ level: match[1]?.length ?? 0, line, title: plainTitle(match[2] ?? ''), start: offset, end: text.length });
|
|
84
|
+
}
|
|
85
|
+
headings.forEach((heading, index) => {
|
|
86
|
+
heading.end = headings.slice(index + 1).find((next) => next.level <= heading.level)?.start ?? text.length;
|
|
87
|
+
});
|
|
88
|
+
return headings;
|
|
89
|
+
}
|
|
90
|
+
function listed(headings) {
|
|
91
|
+
const shown = headings.slice(0, LISTED).map((heading) => `«${heading.title.slice(0, 80)}»`).join('; ');
|
|
92
|
+
return headings.length > LISTED ? `${shown}; и ещё ${headings.length - LISTED}` : shown;
|
|
93
|
+
}
|
|
94
|
+
function chooseSection(text, plan, argument, headings, collection) {
|
|
95
|
+
const wanted = plainTitle(argument);
|
|
96
|
+
const candidates = headings.filter((heading) => heading.level === 2 || heading.level === 3);
|
|
97
|
+
const found = wanted === '' ? [] : candidates.filter((heading) => startsWithWord(heading.title, wanted));
|
|
98
|
+
const movable = candidates.filter((heading) => heading.start > collection.start);
|
|
99
|
+
if (found.length === 0)
|
|
100
|
+
return { blocker: blocker('archive-section-not-found', `В плане нет раздела, заголовок которого начинается с «${argument}». Правки плана: ${listed(movable) || 'их нет'}.`, plan.path) };
|
|
101
|
+
if (found.length > 1)
|
|
102
|
+
return { blocker: blocker('archive-section-ambiguous', `«${argument}» подходит к разделам: ${listed(found)}. Уточните начало заголовка; одинаковые заголовки так не перенести.`, plan.path) };
|
|
103
|
+
const heading = found[0];
|
|
104
|
+
const title = `«${heading.title}»`;
|
|
105
|
+
if (heading === collection || COLLECTIONS.includes(heading.title))
|
|
106
|
+
return { blocker: blocker('archive-section-collection', `${title} — сборник правок: внутри могут быть и открытые. Называйте закрытые правки по одной.`, plan.path) };
|
|
107
|
+
if (heading.start < collection.start)
|
|
108
|
+
return { blocker: blocker('archive-section-main-part', `${title} — основная часть плана, она в архив не переносится. Переносить можно только разделы ниже «${collection.title}».`, plan.path) };
|
|
109
|
+
const nested = headings.filter((other) => other.start > heading.start && other.start < heading.end);
|
|
110
|
+
const slice = plan.meta?.current_slice;
|
|
111
|
+
const declaredSlice = slice === undefined || slice === PLAN_NULL ? null : slice;
|
|
112
|
+
for (const part of [heading, ...nested]) {
|
|
113
|
+
if (COLLECTIONS.includes(part.title))
|
|
114
|
+
return { blocker: blocker('archive-section-collection', `Внутри ${title} стоит сборник правок «${part.title}»: внутри него могут быть и открытые.`, plan.path) };
|
|
115
|
+
if (part === heading ? startsWithWord(part.title, APPROVAL) : part.title === APPROVAL)
|
|
116
|
+
return { blocker: blocker('archive-section-approval', `«${part.title}» — запись об утверждении плана, она остаётся в плане.`, plan.path) };
|
|
117
|
+
if (declaredSlice !== null && mentionsSlice(part.title, declaredSlice))
|
|
118
|
+
return { blocker: blocker('archive-section-current-slice', `В заголовке «${part.title}» стоит текущая порция ${declaredSlice}: открытое в архив не переносится.`, plan.path) };
|
|
119
|
+
}
|
|
120
|
+
const section = text.slice(heading.start, heading.end);
|
|
121
|
+
const rest = section.slice(heading.line.length);
|
|
122
|
+
const warnings = [];
|
|
123
|
+
if (declaredSlice !== null && mentionsSlice(rest, declaredSlice))
|
|
124
|
+
warnings.push(`раздел ${title} упоминает текущую порцию ${declaredSlice}.`);
|
|
125
|
+
const unchecked = [...rest.matchAll(UNCHECKED_RE)].length;
|
|
126
|
+
if (unchecked > 0)
|
|
127
|
+
warnings.push(`в разделе ${title} неотмеченных пунктов [ ]: ${formatChars(unchecked)}.`);
|
|
128
|
+
return { choice: { heading, nested, already: POINTER_RE.test(rest.trim()), warnings } };
|
|
129
|
+
}
|
|
130
|
+
/** `active_plan` из `wiki/hot.md`. */
|
|
131
|
+
export function declaredPlan(files) {
|
|
132
|
+
const hot = files.get(HOT_PATH);
|
|
133
|
+
return (hot === undefined ? null : frontmatter(withoutBom(hot)))?.active_plan ?? ACTIVE_PLAN_NONE;
|
|
134
|
+
}
|
|
135
|
+
/** Находит названные разделы активного плана; ничего не меняет. */
|
|
136
|
+
export function resolveSections(files, plans, wanted) {
|
|
137
|
+
const refuse = (item, plan = null) => ({ plan, chosen: [], blockers: [item] });
|
|
138
|
+
const declared = declaredPlan(files);
|
|
139
|
+
if (declared === ACTIVE_PLAN_NONE)
|
|
140
|
+
return refuse(blocker('archive-section-no-plan', 'Активного плана нет (active_plan: none): --section работает только в активном плане.', HOT_PATH));
|
|
141
|
+
const plan = isWikiRelativePlanRef(declared) ? plans.find((item) => item.path === `wiki/${declared}`) : undefined;
|
|
142
|
+
if (plan === undefined)
|
|
143
|
+
return refuse(blocker('archive-section-plan-missing', `Объявленный активный план не найден: ${declared}.`, HOT_PATH));
|
|
144
|
+
if (plan.meta === null)
|
|
145
|
+
return refuse(blocker('archive-section-plan-invalid', 'Frontmatter плана не разобран: сначала поправьте его (doctor).', plan.path), plan);
|
|
146
|
+
if (!plan.intact)
|
|
147
|
+
return refuse(blocker('archive-plan-changed', 'Текст плана изменился после утверждения (approved_digest не совпадает): перенос записал бы новый отпечаток поверх неутверждённой правки. Покажите изменения человеку; после его «да» запишите отпечаток из вывода preflight и повторите.', plan.path), plan);
|
|
148
|
+
const headings = planHeadings(plan.text);
|
|
149
|
+
const collection = headings.find((heading) => (heading.level === 2 || heading.level === 3) && COLLECTIONS.some((name) => startsWithWord(heading.title, name)));
|
|
150
|
+
if (collection === undefined)
|
|
151
|
+
return refuse(blocker('archive-section-no-collection', `В плане нет раздела «${COLLECTIONS[0]}» или «${COLLECTIONS[1]}»: переносить можно только правки, которые стоят ниже него.`, plan.path), plan);
|
|
152
|
+
const chosen = [];
|
|
153
|
+
const blockers = [];
|
|
154
|
+
for (const argument of wanted) {
|
|
155
|
+
const result = chooseSection(plan.text, plan, argument, headings, collection);
|
|
156
|
+
if (result.blocker !== undefined)
|
|
157
|
+
blockers.push(result.blocker);
|
|
158
|
+
else if (result.choice !== undefined) {
|
|
159
|
+
const { heading } = result.choice;
|
|
160
|
+
const overlapping = chosen.find((other) => heading.start < other.heading.end && other.heading.start < heading.end);
|
|
161
|
+
if (overlapping !== undefined)
|
|
162
|
+
blockers.push(blocker('archive-section-overlap', `Разделы «${overlapping.heading.title}» и «${heading.title}» пересекаются: назовите один из них.`, plan.path));
|
|
163
|
+
else
|
|
164
|
+
chosen.push(result.choice);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return { plan, chosen, blockers };
|
|
168
|
+
}
|
|
169
|
+
export function cutSections(text, chosen, archivePath, eol) {
|
|
170
|
+
const name = posix.basename(archivePath);
|
|
171
|
+
const sections = [];
|
|
172
|
+
let remaining = '';
|
|
173
|
+
let cursor = 0;
|
|
174
|
+
for (const { heading } of [...chosen].filter((item) => !item.already).sort((left, right) => left.heading.start - right.heading.start)) {
|
|
175
|
+
sections.push(text.slice(heading.start, heading.end));
|
|
176
|
+
const line = /\n$/.test(heading.line) ? heading.line : `${heading.line}${eol}`;
|
|
177
|
+
remaining += `${text.slice(cursor, heading.start)}${line}${eol}В архиве: [${name.replace(/[[\]]/g, '')}](archive/${linkName(name)}).${eol}${eol}`;
|
|
178
|
+
cursor = heading.end;
|
|
179
|
+
}
|
|
180
|
+
return { remaining: remaining + text.slice(cursor), sections };
|
|
181
|
+
}
|
|
182
|
+
/** Размер раздела для отчёта. */
|
|
183
|
+
export const sectionChars = (text, heading) => countChars(text.slice(heading.start, heading.end));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const blocker = (code, message, path) => ({ code, message, ...(path === undefined ? {} : { path }) });
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { frontmatter } from './doctor/text.js';
|
|
2
|
+
/**
|
|
3
|
+
* Разбор отчёта проверки: один для doctor и archive. Если бы archive считал
|
|
4
|
+
* закрытым то, что doctor не разобрал, в архив уехал бы неразборчивый отчёт.
|
|
5
|
+
*/
|
|
6
|
+
const AUDIT_STATUSES = new Set(['open', 'resolved']);
|
|
7
|
+
export function parseAudit(text) {
|
|
8
|
+
const meta = frontmatter(text);
|
|
9
|
+
let malformed = !meta?.audit_id || !meta.status || !AUDIT_STATUSES.has(meta.status);
|
|
10
|
+
const starts = [...text.matchAll(/^## Finding ([A-Za-z0-9][A-Za-z0-9._-]*)\s*$/gm)];
|
|
11
|
+
if (starts.length === 0)
|
|
12
|
+
malformed = true;
|
|
13
|
+
const blocking = [];
|
|
14
|
+
const ids = new Set();
|
|
15
|
+
for (let index = 0; index < starts.length; index += 1) {
|
|
16
|
+
const current = starts[index];
|
|
17
|
+
const id = current?.[1] ?? '';
|
|
18
|
+
const body = text.slice((current?.index ?? 0) + (current?.[0].length ?? 0), starts[index + 1]?.index ?? text.length);
|
|
19
|
+
const fields = (name) => [...body.matchAll(new RegExp(`^- ${name}:[ \\t]*(.*?)[ \\t]*$`, 'gm'))].map((match) => match[1]?.trim() ?? '');
|
|
20
|
+
const severityValues = fields('severity');
|
|
21
|
+
const targetValues = fields('target');
|
|
22
|
+
const evidenceValues = fields('evidence');
|
|
23
|
+
const statusValues = fields('status');
|
|
24
|
+
const resolutionValues = fields('resolution');
|
|
25
|
+
const severity = severityValues[0];
|
|
26
|
+
const status = statusValues[0];
|
|
27
|
+
if (ids.has(id) || severityValues.length !== 1 || targetValues.length !== 1 || evidenceValues.length !== 1 || statusValues.length !== 1 || resolutionValues.length !== 1 || !['critical', 'high', 'medium', 'low'].includes(severity ?? '') || !targetValues[0] || !evidenceValues[0] || !AUDIT_STATUSES.has(status ?? '') || !resolutionValues[0])
|
|
28
|
+
malformed = true;
|
|
29
|
+
else if (meta?.status !== 'open' && status === 'open')
|
|
30
|
+
malformed = true;
|
|
31
|
+
else if ((severity === 'critical' || severity === 'high') && status === 'open')
|
|
32
|
+
blocking.push({ id, severity });
|
|
33
|
+
ids.add(id);
|
|
34
|
+
}
|
|
35
|
+
// Разобранный отчёт `resolved` не содержит открытых находок: иначе он был бы malformed.
|
|
36
|
+
return { malformed, closed: !malformed && meta?.status === 'resolved', blocking };
|
|
37
|
+
}
|
package/dist/core/context.js
CHANGED
|
@@ -12,6 +12,35 @@ import { join, resolve } from 'node:path';
|
|
|
12
12
|
/** Окно модели по умолчанию. Сессия больше него была бы невозможна — тогда окно 1 000 000. */
|
|
13
13
|
export const DEFAULT_BUDGET = 200_000;
|
|
14
14
|
export const LARGE_WINDOW = 1_000_000;
|
|
15
|
+
/**
|
|
16
|
+
* Окно модели по её названию в журнале (`message.model`); null — название незнакомо.
|
|
17
|
+
*
|
|
18
|
+
* Окно 200 000 — закрытый список прошлого: Claude 3.x, Opus 4 / 4.1 / 4.5, Sonnet 4 / 4.5,
|
|
19
|
+
* Haiku 4.5 (справочник моделей Anthropic на 06.10.2026). Модели Claude новее — Opus и Sonnet
|
|
20
|
+
* с 4.6, всё семейство 5 и новее, Fable и Mythos — 1 000 000 (HYPOTHESIS для будущих версий).
|
|
21
|
+
* Префикс площадки (`anthropic.`, `us.anthropic.`), дата выпуска и `@дата` Vertex отбрасываются.
|
|
22
|
+
*/
|
|
23
|
+
export function windowForModel(model) {
|
|
24
|
+
// `[1m]` — так Claude Code называет модель с явно включённым окном 1 000 000.
|
|
25
|
+
if (/\[1m\]$/i.test(model.trim()))
|
|
26
|
+
return LARGE_WINDOW;
|
|
27
|
+
const name = model.trim().toLowerCase()
|
|
28
|
+
.replace(/^(?:[a-z]+\.)?anthropic\./, '')
|
|
29
|
+
.replace(/@\d{8}$/, '')
|
|
30
|
+
.replace(/-\d{8}(?:-v\d+:\d+)?$/, '');
|
|
31
|
+
if (/^claude-3(?:-\d)?-(?:opus|sonnet|haiku)$/.test(name))
|
|
32
|
+
return DEFAULT_BUDGET;
|
|
33
|
+
const match = /^claude-(opus|sonnet|haiku|fable|mythos)-(\d+)(?:-(\d))?$/.exec(name);
|
|
34
|
+
if (match === null)
|
|
35
|
+
return null;
|
|
36
|
+
const major = Number(match[2]);
|
|
37
|
+
const minor = Number(match[3] ?? '0');
|
|
38
|
+
if (major < 4)
|
|
39
|
+
return DEFAULT_BUDGET;
|
|
40
|
+
if (major === 4 && minor <= 5)
|
|
41
|
+
return DEFAULT_BUDGET;
|
|
42
|
+
return LARGE_WINDOW;
|
|
43
|
+
}
|
|
15
44
|
/** HYPOTHESIS: пороги подобраны на глаз и уточняются повторным замером. */
|
|
16
45
|
export const FINISH_SLICE_SHARE = 0.4;
|
|
17
46
|
export const NEW_SESSION_SHARE = 0.7;
|
|
@@ -115,6 +144,9 @@ export async function measureContext(options) {
|
|
|
115
144
|
}
|
|
116
145
|
const seen = new Set();
|
|
117
146
|
let last = null;
|
|
147
|
+
let lastModel;
|
|
148
|
+
/** Самый большой контекст у каждой модели: после смены модели окно судится по ней одной. */
|
|
149
|
+
const largestByModel = new Map();
|
|
118
150
|
let totalInput = 0;
|
|
119
151
|
let largest = 0;
|
|
120
152
|
let recordedSession;
|
|
@@ -141,7 +173,9 @@ export async function measureContext(options) {
|
|
|
141
173
|
if (size === 0)
|
|
142
174
|
continue;
|
|
143
175
|
last = usage;
|
|
176
|
+
lastModel = typeof entry.message?.model === 'string' ? entry.message.model : undefined;
|
|
144
177
|
largest = Math.max(largest, size);
|
|
178
|
+
largestByModel.set(lastModel ?? '', Math.max(largestByModel.get(lastModel ?? '') ?? 0, size));
|
|
145
179
|
if (seen.has(id))
|
|
146
180
|
continue;
|
|
147
181
|
seen.add(id);
|
|
@@ -151,8 +185,17 @@ export async function measureContext(options) {
|
|
|
151
185
|
return { reportVersion: 1, ok: false, budget, transcript, message: 'В журнале сессии пока нет ни одного ответа модели.' };
|
|
152
186
|
}
|
|
153
187
|
const contextTokens = count(last.input_tokens) + count(last.cache_read_input_tokens) + count(last.cache_creation_input_tokens) + count(last.output_tokens);
|
|
154
|
-
|
|
155
|
-
|
|
188
|
+
// `--window` главнее; иначе окно по модели; незнакомая модель — как раньше, по размеру сессии.
|
|
189
|
+
const byModel = lastModel === undefined ? null : windowForModel(lastModel);
|
|
190
|
+
let windowSource = 'option';
|
|
191
|
+
if (options.budget === undefined) {
|
|
192
|
+
windowSource = byModel === null ? 'unknown-model' : 'model';
|
|
193
|
+
budget = byModel ?? DEFAULT_BUDGET;
|
|
194
|
+
// Сессия больше 200 000 у модели «на 200 000» значит, что у неё включено окно 1 000 000.
|
|
195
|
+
// Смотрится только эта модель: прежняя модель с большим окном не раздувает окно новой.
|
|
196
|
+
if ((byModel === null ? largest : largestByModel.get(lastModel ?? '') ?? 0) > budget)
|
|
197
|
+
budget = LARGE_WINDOW;
|
|
198
|
+
}
|
|
156
199
|
const share = contextTokens / budget;
|
|
157
200
|
return {
|
|
158
201
|
reportVersion: 1,
|
|
@@ -161,6 +204,8 @@ export async function measureContext(options) {
|
|
|
161
204
|
...(recordedSession === undefined ? {} : { sessionId: recordedSession }),
|
|
162
205
|
contextTokens,
|
|
163
206
|
budget,
|
|
207
|
+
...(lastModel === undefined ? {} : { model: lastModel }),
|
|
208
|
+
windowSource,
|
|
164
209
|
percent: Math.round(share * 100),
|
|
165
210
|
level: levelFor(share),
|
|
166
211
|
totalInputTokens: totalInput,
|
|
@@ -20,7 +20,7 @@ export async function absolutePathHasSymlink(absolutePath) {
|
|
|
20
20
|
}
|
|
21
21
|
return false;
|
|
22
22
|
}
|
|
23
|
-
/** Проверяет относительный путь внутри проекта покомпонентно; отсутствующий путь не symlink. */
|
|
23
|
+
/** Проверяет относительный путь внутри проекта покомпонентно; отсутствующий путь и путь сквозь файл не symlink. */
|
|
24
24
|
export async function pathHasSymlink(root, relativePath) {
|
|
25
25
|
let current = root;
|
|
26
26
|
for (const part of relativePath.split('/')) {
|
|
@@ -30,7 +30,8 @@ export async function pathHasSymlink(root, relativePath) {
|
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
32
32
|
catch (cause) {
|
|
33
|
-
|
|
33
|
+
const { code } = cause;
|
|
34
|
+
if (code === 'ENOENT' || code === 'ENOTDIR')
|
|
34
35
|
return false;
|
|
35
36
|
throw cause;
|
|
36
37
|
}
|
|
@@ -10,6 +10,7 @@ import { checkProjectEntries } from './entries.js';
|
|
|
10
10
|
import { checkGit } from './git.js';
|
|
11
11
|
import { checkInbox } from './inbox.js';
|
|
12
12
|
import { checkInventory, checkManagedFiles } from './managed.js';
|
|
13
|
+
import { checkMemory } from './memory.js';
|
|
13
14
|
import { checkPlans } from './plans.js';
|
|
14
15
|
import { checkProtocols } from './protocols.js';
|
|
15
16
|
import { checkSources } from './sources.js';
|
|
@@ -42,7 +43,7 @@ function versionFinding(rootInput, manifest, canonical) {
|
|
|
42
43
|
: info('project-version-newer', `Проект обновлён более новой версией ${projectVersion}, а проверяет ${VERSION}. Точная проверка: ${checkSame}.`, MANIFEST_PATH);
|
|
43
44
|
}
|
|
44
45
|
return order < 0
|
|
45
|
-
? error('project-outdated', `Проект создан Vibe Coding Maestro ${projectVersion}, а запущена ${VERSION}: у этих версий разный состав файлов. Проверить проект его версией: ${checkSame}. Обновить проект до ${VERSION}: ${upgrade} (без --apply только показывает
|
|
46
|
+
? error('project-outdated', `Проект создан Vibe Coding Maestro ${projectVersion}, а запущена ${VERSION}: у этих версий разный состав файлов. Проверить проект его версией: ${checkSame}. Обновить проект до ${VERSION}: ${upgrade} (без --apply только показывает изменения, с --diff — сами правки построчно).`, MANIFEST_PATH)
|
|
46
47
|
: error('project-newer', `Проект создан более новой версией ${projectVersion}, а запущена ${VERSION}. Проверьте проект его версией: ${checkSame}.`, MANIFEST_PATH);
|
|
47
48
|
}
|
|
48
49
|
export async function doctorProject(rootInput, options = {}) {
|
|
@@ -114,7 +115,9 @@ export async function doctorProject(rootInput, options = {}) {
|
|
|
114
115
|
checkInventory(manifest, findings);
|
|
115
116
|
const { managedDocs, managedFiles } = await checkManagedFiles(root, manifest, checksums, findings);
|
|
116
117
|
await checkProtocols(root, findings);
|
|
117
|
-
|
|
118
|
+
const wiki = await checkWiki(root, findings);
|
|
119
|
+
checkPlans(root, wiki, findings);
|
|
120
|
+
checkMemory(rootInput, wiki, findings);
|
|
118
121
|
await checkGit(root, managedDocs, findings, managedFiles);
|
|
119
122
|
await checkInbox(root, findings);
|
|
120
123
|
await checkSources(root, findings);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { countChars, formatChars, HANDOFF_LIMIT, HOT_LIMIT, LOG_LIMIT, PLAN_LIMIT } from '../archive/limits.js';
|
|
2
|
+
import { quotePathArg, serviceInvocation, VERSION } from '../meta.js';
|
|
3
|
+
import { ACTIVE_PLAN_NONE, isCalendarDate, isWikiRelativePlanRef } from '../plan.js';
|
|
4
|
+
import { HOT_PATH } from './plans.js';
|
|
5
|
+
import { frontmatter } from './text.js';
|
|
6
|
+
import { info } from './types.js';
|
|
7
|
+
const LOG_FILE = 'wiki/log.md';
|
|
8
|
+
/** Передача — плоская папка, имя `ГГГГ-ММ-ДД-….md`; прочие имена не проверяются. */
|
|
9
|
+
const HANDOFF_RE = /^wiki\/handoffs\/(\d{4}-\d{2}-\d{2})-[^/]+\.md$/;
|
|
10
|
+
/** Передачи с самой поздней датой в имени: с них начнёт следующая сессия. */
|
|
11
|
+
function latestHandoffs(decoded) {
|
|
12
|
+
const dated = [...decoded.keys()].flatMap((path) => {
|
|
13
|
+
const date = HANDOFF_RE.exec(path)?.[1];
|
|
14
|
+
return date !== undefined && isCalendarDate(date) ? [{ path, date }] : [];
|
|
15
|
+
});
|
|
16
|
+
const latest = dated.reduce((max, item) => (item.date > max ? item.date : max), '');
|
|
17
|
+
return dated.filter((item) => item.date === latest).map((item) => item.path).sort();
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Длина того, что читает начало сессии. Только `info`: пороги — гипотеза
|
|
21
|
+
* (`archive/limits.ts`), и блокировать работу по гипотезе нельзя.
|
|
22
|
+
*/
|
|
23
|
+
export function checkMemory(rootInput, decoded, findings) {
|
|
24
|
+
const archive = `${serviceInvocation(VERSION)} archive --path ${quotePathArg(rootInput)}`;
|
|
25
|
+
const over = (path, limit) => {
|
|
26
|
+
const text = decoded.get(path);
|
|
27
|
+
if (text === undefined)
|
|
28
|
+
return null;
|
|
29
|
+
const chars = countChars(text);
|
|
30
|
+
return chars > limit ? chars : null;
|
|
31
|
+
};
|
|
32
|
+
const size = (chars, limit) => `${formatChars(chars)} знаков при ориентире ${formatChars(limit)}`;
|
|
33
|
+
const hot = over(HOT_PATH, HOT_LIMIT);
|
|
34
|
+
if (hot !== null)
|
|
35
|
+
findings.push(info('memory-hot-long', `Горячий контекст длинный: ${size(hot, HOT_LIMIT)} (около 60 строк). При передаче перепишите его коротко, справочное вынесите в отдельные файлы.`, HOT_PATH));
|
|
36
|
+
const hotText = decoded.get(HOT_PATH);
|
|
37
|
+
const declared = (hotText === undefined ? null : frontmatter(hotText))?.active_plan ?? ACTIVE_PLAN_NONE;
|
|
38
|
+
if (declared !== ACTIVE_PLAN_NONE && isWikiRelativePlanRef(declared)) {
|
|
39
|
+
const path = `wiki/${declared}`;
|
|
40
|
+
const plan = over(path, PLAN_LIMIT);
|
|
41
|
+
if (plan !== null)
|
|
42
|
+
findings.push(info('memory-plan-long', `Активный план длинный: ${size(plan, PLAN_LIMIT)}. Закрытые правки уберите в архив: \`${archive} --section "<начало заголовка>"\` (без --apply только показывает перенос).`, path));
|
|
43
|
+
}
|
|
44
|
+
const log = over(LOG_FILE, LOG_LIMIT);
|
|
45
|
+
if (log !== null)
|
|
46
|
+
findings.push(info('memory-log-long', `Журнал длинный: ${size(log, LOG_LIMIT)}. Старые записи уберите в архив: \`${archive}\` (без --apply только показывает перенос).`, LOG_FILE));
|
|
47
|
+
for (const path of latestHandoffs(decoded)) {
|
|
48
|
+
const handoff = over(path, HANDOFF_LIMIT);
|
|
49
|
+
if (handoff !== null)
|
|
50
|
+
findings.push(info('memory-handoff-long', `Последняя передача длинная: ${size(handoff, HANDOFF_LIMIT)}. Следующую пишите короче, подробности — ссылками; старые передачи — история, их не сокращают.`, path));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
|
-
import { ACTIVE_PLAN_NONE, APPROVAL_REQUIRED_STATUSES, isExternalSourceRef, isWikiRelativePlanRef,
|
|
3
|
+
import { ACTIVE_PLAN_NONE, APPROVAL_REQUIRED_STATUSES, isExternalSourceRef, isWikiRelativePlanRef, planDigestMatches, validatePlanFrontmatter } from '../plan.js';
|
|
4
4
|
import { frontmatter } from './text.js';
|
|
5
5
|
import { error } from './types.js';
|
|
6
6
|
export const PLANS_DIR = 'wiki/plans';
|
|
@@ -14,7 +14,7 @@ const NON_PLAN_FILES = new Set(['README.md', 'TEMPLATE.md']);
|
|
|
14
14
|
* ту же границу держит `isWikiRelativePlanRef`, поэтому preflight не может счесть
|
|
15
15
|
* доказанным план, невидимый здесь.
|
|
16
16
|
*/
|
|
17
|
-
function planFileName(path) {
|
|
17
|
+
export function planFileName(path) {
|
|
18
18
|
const match = /^wiki\/plans\/([^/]+\.md)$/.exec(path);
|
|
19
19
|
const name = match?.[1];
|
|
20
20
|
return name === undefined || NON_PLAN_FILES.has(name) ? null : name;
|
|
@@ -40,8 +40,8 @@ export function checkPlans(root, decoded, findings) {
|
|
|
40
40
|
if (plan === null)
|
|
41
41
|
continue;
|
|
42
42
|
plans.set(path, plan);
|
|
43
|
-
if (APPROVAL_REQUIRED_STATUSES.includes(plan.status) && plan.approvedDigest !== null && plan.approvedDigest
|
|
44
|
-
findings.push(error('plan-changed-after-approval', 'Текст утверждённого плана изменился после утверждения (approved_digest не совпадает). Покажите изменения человеку; после повторного «план утверждаю» запишите новый отпечаток из вывода preflight.', path));
|
|
43
|
+
if (APPROVAL_REQUIRED_STATUSES.includes(plan.status) && plan.approvedDigest !== null && !planDigestMatches(plan.approvedDigest, text)) {
|
|
44
|
+
findings.push(error('plan-changed-after-approval', 'Текст утверждённого плана изменился после утверждения (approved_digest не совпадает). Покажите изменения человеку; после его «да» — повторного «план утверждаю» или «да» на правку посреди плана (protocols/plan.md) — запишите новый отпечаток из вывода preflight.', path));
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
const byId = new Map();
|
package/dist/core/doctor/wiki.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
import { readFile } from 'node:fs/promises';
|
|
3
3
|
import { dirname, relative, resolve, sep } from 'node:path';
|
|
4
|
+
import { parseAudit } from '../audits.js';
|
|
5
|
+
import { isExternalLink, linkPath, markdownLinks } from '../wiki-links.js';
|
|
4
6
|
import { markdownFiles, pathHasSymlink } from './fs-utils.js';
|
|
5
7
|
import { decodeUtf8, frontmatter, hasFrontmatterBlock } from './text.js';
|
|
6
8
|
import { critical, error } from './types.js';
|
|
@@ -32,9 +34,9 @@ export async function checkWiki(root, findings) {
|
|
|
32
34
|
? 'Этот файл wiki должен начинаться frontmatter: строки key: value между ---.'
|
|
33
35
|
: 'Frontmatter не разобран: допустимы строки key: value, комментарии # и списки «- item» под ключом.', path));
|
|
34
36
|
}
|
|
35
|
-
for (const
|
|
36
|
-
const destination = (
|
|
37
|
-
if (!destination ||
|
|
37
|
+
for (const link of markdownLinks(text)) {
|
|
38
|
+
const destination = linkPath(link.destination);
|
|
39
|
+
if (!destination || isExternalLink(destination))
|
|
38
40
|
continue;
|
|
39
41
|
let raw;
|
|
40
42
|
try {
|
|
@@ -56,38 +58,12 @@ export async function checkWiki(root, findings) {
|
|
|
56
58
|
findings.push(error('text-unreadable', `Не удалось прочитать Markdown: ${cause instanceof Error ? cause.message : String(cause)}`, path));
|
|
57
59
|
}
|
|
58
60
|
}
|
|
59
|
-
const auditStatuses = new Set(['open', 'resolved']);
|
|
60
61
|
for (const [path, text] of decoded) {
|
|
61
|
-
if (!/^wiki\/audits\/[^/]+\.md$/.test(path))
|
|
62
|
+
if (!/^wiki\/audits\/(?:archive\/)?[^/]+\.md$/.test(path))
|
|
62
63
|
continue;
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
if (starts.length === 0)
|
|
67
|
-
malformed = true;
|
|
68
|
-
const ids = new Set();
|
|
69
|
-
for (let index = 0; index < starts.length; index += 1) {
|
|
70
|
-
const current = starts[index];
|
|
71
|
-
const id = current?.[1] ?? '';
|
|
72
|
-
const body = text.slice((current?.index ?? 0) + (current?.[0].length ?? 0), starts[index + 1]?.index ?? text.length);
|
|
73
|
-
const fields = (name) => [...body.matchAll(new RegExp(`^- ${name}:[ \\t]*(.*?)[ \\t]*$`, 'gm'))].map((match) => match[1]?.trim() ?? '');
|
|
74
|
-
const severityValues = fields('severity');
|
|
75
|
-
const targetValues = fields('target');
|
|
76
|
-
const evidenceValues = fields('evidence');
|
|
77
|
-
const statusValues = fields('status');
|
|
78
|
-
const resolutionValues = fields('resolution');
|
|
79
|
-
const severity = severityValues[0];
|
|
80
|
-
const status = statusValues[0];
|
|
81
|
-
if (ids.has(id) || severityValues.length !== 1 || targetValues.length !== 1 || evidenceValues.length !== 1 || statusValues.length !== 1 || resolutionValues.length !== 1 || !['critical', 'high', 'medium', 'low'].includes(severity ?? '') || !targetValues[0] || !evidenceValues[0] || !auditStatuses.has(status ?? '') || !resolutionValues[0])
|
|
82
|
-
malformed = true;
|
|
83
|
-
else if (meta?.status !== 'open' && status === 'open')
|
|
84
|
-
malformed = true;
|
|
85
|
-
else if ((severity === 'critical' || severity === 'high') && status === 'open')
|
|
86
|
-
findings.push(error('audit-blocking-finding', `Открытая ${severity} находка ${id} блокирует doctor.`, path));
|
|
87
|
-
ids.add(id);
|
|
88
|
-
}
|
|
89
|
-
if (/^## Finding /m.test(text) && starts.length === 0)
|
|
90
|
-
malformed = true;
|
|
64
|
+
const { malformed, blocking } = parseAudit(text);
|
|
65
|
+
for (const { id, severity } of blocking)
|
|
66
|
+
findings.push(error('audit-blocking-finding', `Открытая ${severity} находка ${id} блокирует doctor.`, path));
|
|
91
67
|
if (malformed)
|
|
92
68
|
findings.push(error('audit-malformed', 'Audit требует audit_id, допустимый status и валидные findings.', path));
|
|
93
69
|
}
|
package/dist/core/gitignore.js
CHANGED
|
@@ -16,7 +16,9 @@ export const REQUIRED_GITIGNORE_ENTRIES = [
|
|
|
16
16
|
'.claude/worktrees/',
|
|
17
17
|
'.claude/settings.local.json',
|
|
18
18
|
];
|
|
19
|
-
|
|
19
|
+
/** Заголовок блока Maestro в `.gitignore` проекта. */
|
|
20
|
+
export const GITIGNORE_BLOCK_HEADER = `# --- ${PRODUCT_NAME} ---`;
|
|
21
|
+
const BLOCK_HEADER = GITIGNORE_BLOCK_HEADER;
|
|
20
22
|
/**
|
|
21
23
|
* Приводит строку .gitignore к сравнимому виду.
|
|
22
24
|
* node_modules и node_modules/ считаются одной записью, отступы не значимы.
|
package/dist/core/inventory.js
CHANGED
|
@@ -17,6 +17,7 @@ export const TEMPLATE_FILES = [
|
|
|
17
17
|
'.claude/agents/code-reviewer.md',
|
|
18
18
|
'.claude/agents/explorer.md',
|
|
19
19
|
'maestro/templates/handoff.md',
|
|
20
|
+
'maestro/templates/audit.md',
|
|
20
21
|
'maestro/templates/adr.md',
|
|
21
22
|
'maestro/templates/progress.md',
|
|
22
23
|
'.gitattributes',
|
|
@@ -24,20 +25,10 @@ export const TEMPLATE_FILES = [
|
|
|
24
25
|
'protocols/status.md',
|
|
25
26
|
'protocols/wiki.md',
|
|
26
27
|
'protocols/handoff.md',
|
|
27
|
-
'protocols/discovery.md',
|
|
28
28
|
'protocols/plan.md',
|
|
29
29
|
'protocols/audit.md',
|
|
30
|
-
'protocols/context-budget.md',
|
|
31
|
-
'protocols/seams.md',
|
|
32
|
-
'protocols/lessons.md',
|
|
33
30
|
'protocols/completion.md',
|
|
34
31
|
'protocols/start.md',
|
|
35
|
-
'protocols/build/step-1-rules.md',
|
|
36
|
-
'protocols/build/step-2-spec.md',
|
|
37
|
-
'protocols/build/step-3-architecture.md',
|
|
38
|
-
'protocols/build/step-5-feature-loop.md',
|
|
39
|
-
'protocols/build/audit-plan.md',
|
|
40
|
-
'protocols/build/audit-phase.md',
|
|
41
32
|
];
|
|
42
33
|
/** Стартовые содержательные документы: Maestro создаёт, затем ими владеет проект. */
|
|
43
34
|
export const CONTENT_OWNED_FILES = [
|
|
@@ -51,6 +42,7 @@ export const CONTENT_OWNED_FILES = [
|
|
|
51
42
|
'wiki/roadmap.md',
|
|
52
43
|
'wiki/passport.md',
|
|
53
44
|
'wiki/restore.md',
|
|
45
|
+
'wiki/icebox.md',
|
|
54
46
|
'wiki/concepts/discovery.md',
|
|
55
47
|
'wiki/plans/0001-starter.md',
|
|
56
48
|
];
|