joycraft 1.0.1 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/dist/joycraft-release.json +1 -1
- package/package.json +3 -3
- package/payload/.agents/skills/joycraft-cleanup/SKILL.md +41 -0
- package/payload/.agents/skills/joycraft-entry/SKILL.md +4 -0
- package/payload/.agents/skills/joycraft-implement/SKILL.md +1 -1
- package/payload/.agents/skills/joycraft-session-end/SKILL.md +2 -0
- package/payload/.agents/skills/joycraft-verify/SKILL.md +4 -0
- package/payload/.claude/agents/joycraft-implementer.md +2 -1
- package/payload/.claude/agents/joycraft-reviewer.md +4 -0
- package/payload/.joycraft/references/archive.md +17 -0
- package/payload/.joycraft/references/cleanup.md +35 -0
- package/payload/.joycraft/references/setup.md +13 -0
- package/payload/.joycraft/references/testing.md +10 -0
- package/payload/.joycraft/references/workflow.md +5 -0
- package/payload/.joycraft/runtime/archive.mjs +35 -15
- package/payload/.joycraft/runtime/cleanup.mjs +167 -0
- package/payload/.joycraft/runtime/config.mjs +193 -0
- package/payload/.joycraft/runtime/context/search.mjs +5 -3
- package/payload/.joycraft/runtime/coordinator.mjs +28 -5
- package/payload/.joycraft/runtime/dispatch-start.mjs +8 -1
- package/payload/.joycraft/runtime/review-tools.json +7 -0
- package/payload/.joycraft/runtime/status.mjs +5 -4
- package/payload/.joycraft/runtime/trace.mjs +84 -0
- package/payload/.joycraft/runtime/worktrees.mjs +9 -7
- package/payload/.joycraft/templates/joycraft.yaml +19 -0
- package/payload/PIN +25 -19
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { pathToFileURL } from 'node:url';
|
|
4
|
+
import { isObject, relativePath, requireValue } from './identity.mjs';
|
|
5
|
+
|
|
6
|
+
// joycraft.yaml is project-owned: Joycraft reads it and never rewrites it. The
|
|
7
|
+
// parser accepts a small YAML subset (maps, lists, scalars, flow lists) and names
|
|
8
|
+
// the line of anything else, so a typo never silently changes behavior.
|
|
9
|
+
export const configFile = 'joycraft.yaml';
|
|
10
|
+
export const defaults = Object.freeze({
|
|
11
|
+
paths: Object.freeze({ features: 'docs/features', archive: 'docs/archive', context: 'docs/context' }),
|
|
12
|
+
hooks: Object.freeze({}),
|
|
13
|
+
cleanup: Object.freeze({ impact: Object.freeze([]) }),
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
function scalar(text, line) {
|
|
17
|
+
const value = text.trim();
|
|
18
|
+
if (value === '') return null;
|
|
19
|
+
if (/^"(?:[^"\\]|\\.)*"$/.test(value)) {
|
|
20
|
+
try { return JSON.parse(value); } catch { throw new Error(`${configFile} line ${line}: a double-quoted value has an escape YAML does not allow here: ${value}`); }
|
|
21
|
+
}
|
|
22
|
+
if (/^'(?:[^']|'')*'$/.test(value)) return value.slice(1, -1).replaceAll("''", "'");
|
|
23
|
+
requireValue(!/^["']/.test(value), `${configFile} line ${line}: a quoted value must end with its closing quote and nothing after it: ${value}`);
|
|
24
|
+
if (/^\[.*\]$/.test(value)) {
|
|
25
|
+
const inner = value.slice(1, -1).trim();
|
|
26
|
+
return inner === '' ? [] : splitFlow(inner, line).map(item => scalar(item, line));
|
|
27
|
+
}
|
|
28
|
+
requireValue(!/^[{&*!|>%@`]/.test(value), `${configFile} line ${line}: unsupported YAML syntax: ${value}`);
|
|
29
|
+
if (value === 'true' || value === 'false') return value === 'true';
|
|
30
|
+
if (value === 'null' || value === '~') return null;
|
|
31
|
+
if (/^-?\d+(?:\.\d+)?$/.test(value)) return Number(value);
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function splitFlow(inner, line) {
|
|
36
|
+
const items = [];
|
|
37
|
+
let current = '', quote = null;
|
|
38
|
+
for (const char of inner) {
|
|
39
|
+
if (quote) { current += char; if (char === quote) quote = null; continue; }
|
|
40
|
+
if (char === '"' || char === "'") { quote = char; current += char; continue; }
|
|
41
|
+
requireValue(char !== '[' && char !== '{', `${configFile} line ${line}: nested flow collections are not supported`);
|
|
42
|
+
if (char === ',') { items.push(current); current = ''; continue; }
|
|
43
|
+
current += char;
|
|
44
|
+
}
|
|
45
|
+
requireValue(quote === null, `${configFile} line ${line}: unterminated quote`);
|
|
46
|
+
items.push(current);
|
|
47
|
+
return items;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const stripComment = text => {
|
|
51
|
+
let quote = null;
|
|
52
|
+
for (let index = 0; index < text.length; index += 1) {
|
|
53
|
+
const char = text[index];
|
|
54
|
+
if (quote === '"' && char === '\\') { index += 1; continue; }
|
|
55
|
+
if (quote) { if (char === quote) quote = null; continue; }
|
|
56
|
+
if (char === '"' || char === "'") quote = char;
|
|
57
|
+
else if (char === '#' && (index === 0 || /\s/.test(text[index - 1]))) return text.slice(0, index);
|
|
58
|
+
}
|
|
59
|
+
return text;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** Parse the supported YAML subset into plain objects. */
|
|
63
|
+
export function parseYaml(text) {
|
|
64
|
+
const lines = text.replace(/^\uFEFF/, '').split(/\r?\n/).map((raw, index) => ({ raw: stripComment(raw).replace(/\s+$/, ''), number: index + 1 }))
|
|
65
|
+
.filter(entry => entry.raw.trim() !== '');
|
|
66
|
+
if (lines[0]?.raw.trim() === '---') lines.shift();
|
|
67
|
+
for (const entry of lines) requireValue(entry.raw.trim() !== '---' && entry.raw.trim() !== '...', `${configFile} line ${entry.number}: only one YAML document is supported`);
|
|
68
|
+
for (const entry of lines) requireValue(!entry.raw.includes('\t'), `${configFile} line ${entry.number}: use spaces, not tabs`);
|
|
69
|
+
let position = 0;
|
|
70
|
+
const indentOf = entry => entry.raw.length - entry.raw.trimStart().length;
|
|
71
|
+
|
|
72
|
+
function block(indent) {
|
|
73
|
+
const first = lines[position];
|
|
74
|
+
return first.raw.trimStart().startsWith('- ') || first.raw.trim() === '-' ? list(indent) : map(indent);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function map(indent, target = {}) {
|
|
78
|
+
while (position < lines.length && indentOf(lines[position]) === indent && !lines[position].raw.trimStart().startsWith('-')) {
|
|
79
|
+
const { raw, number } = lines[position];
|
|
80
|
+
const match = /^([A-Za-z0-9_.-]+):(?:\s+(.*))?$/.exec(raw.trim());
|
|
81
|
+
requireValue(match, `${configFile} line ${number}: expected "key: value"`);
|
|
82
|
+
const [, key, rest] = match;
|
|
83
|
+
requireValue(!Object.hasOwn(target, key), `${configFile} line ${number}: duplicate key ${key}`);
|
|
84
|
+
position += 1;
|
|
85
|
+
if (rest !== undefined && rest.trim() !== '') target[key] = scalar(rest, number);
|
|
86
|
+
else if (position < lines.length && indentOf(lines[position]) > indent) target[key] = block(indentOf(lines[position]));
|
|
87
|
+
else if (position < lines.length && indentOf(lines[position]) === indent && /^-(\s|$)/.test(lines[position].raw.trimStart())) target[key] = list(indent);
|
|
88
|
+
else target[key] = null;
|
|
89
|
+
}
|
|
90
|
+
requireValue(position >= lines.length || indentOf(lines[position]) <= indent, `${configFile} line ${lines[position]?.number}: unexpected indentation`);
|
|
91
|
+
return target;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function list(indent) {
|
|
95
|
+
const items = [];
|
|
96
|
+
while (position < lines.length && indentOf(lines[position]) === indent && /^-(\s|$)/.test(lines[position].raw.trimStart())) {
|
|
97
|
+
const { raw, number } = lines[position];
|
|
98
|
+
const rest = raw.trimStart().slice(1);
|
|
99
|
+
if (rest.trim() === '') {
|
|
100
|
+
position += 1;
|
|
101
|
+
requireValue(position < lines.length && indentOf(lines[position]) > indent, `${configFile} line ${number}: empty list item`);
|
|
102
|
+
items.push(block(indentOf(lines[position])));
|
|
103
|
+
} else if (/^\s+[A-Za-z0-9_.-]+:(\s|$)/.test(rest)) {
|
|
104
|
+
// "- key: value" starts a map whose remaining keys align with the first key.
|
|
105
|
+
const itemIndent = indent + 1 + (rest.length - rest.trimStart().length);
|
|
106
|
+
lines[position] = { raw: `${' '.repeat(itemIndent)}${rest.trimStart()}`, number };
|
|
107
|
+
items.push(map(itemIndent));
|
|
108
|
+
} else { items.push(scalar(rest, number)); position += 1; }
|
|
109
|
+
}
|
|
110
|
+
return items;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (lines.length === 0) return {};
|
|
114
|
+
requireValue(indentOf(lines[0]) === 0, `${configFile} line ${lines[0].number}: the first key must not be indented`);
|
|
115
|
+
const result = block(0);
|
|
116
|
+
requireValue(position === lines.length, `${configFile} line ${lines[position]?.number}: unexpected content`);
|
|
117
|
+
return result;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const known = { paths: ['features', 'archive', 'context'], hooks: ['afterArchive'], cleanup: ['impact'] };
|
|
121
|
+
|
|
122
|
+
/** Read joycraft.yaml (or return defaults) and validate every known field. */
|
|
123
|
+
export function readConfig(root = process.cwd()) {
|
|
124
|
+
const file = path.join(root, configFile);
|
|
125
|
+
if (!existsSync(file)) return { source: null, ...structuredClone(defaults) };
|
|
126
|
+
const parsed = parseYaml(readFileSync(file, 'utf8'));
|
|
127
|
+
requireValue(isObject(parsed), `${configFile} must be a map of settings`);
|
|
128
|
+
for (const [section, value] of Object.entries(parsed)) {
|
|
129
|
+
requireValue(Object.hasOwn(known, section), `${configFile}: unknown section ${section}; known sections are ${Object.keys(known).join(', ')}`);
|
|
130
|
+
requireValue(value === null || isObject(value), `${configFile}: ${section} must be a map`);
|
|
131
|
+
for (const key of Object.keys(value ?? {})) requireValue(known[section].includes(key), `${configFile}: unknown setting ${section}.${key}`);
|
|
132
|
+
}
|
|
133
|
+
const paths = { ...defaults.paths };
|
|
134
|
+
for (const [key, value] of Object.entries(parsed.paths ?? {})) {
|
|
135
|
+
requireValue(typeof value === 'string', `${configFile}: paths.${key} must be a project-relative folder`);
|
|
136
|
+
paths[key] = relativePath(value.replace(/\/+$/, ''));
|
|
137
|
+
}
|
|
138
|
+
const folders = Object.values(paths);
|
|
139
|
+
requireValue(new Set(folders).size === folders.length, `${configFile}: paths.features, paths.archive and paths.context must differ`);
|
|
140
|
+
// The work folders may sit inside the context home (e.g. context: docs); nothing else may nest.
|
|
141
|
+
for (const [ak, a] of Object.entries(paths)) for (const [bk, b] of Object.entries(paths)) {
|
|
142
|
+
requireValue(a === b || !b.startsWith(`${a}/`) || (ak === 'context' && bk !== 'context'), `${configFile}: ${b} cannot sit inside ${a}`);
|
|
143
|
+
}
|
|
144
|
+
const hooks = {};
|
|
145
|
+
if (parsed.hooks?.afterArchive != null) {
|
|
146
|
+
requireValue(typeof parsed.hooks.afterArchive === 'string' && parsed.hooks.afterArchive.trim(), `${configFile}: hooks.afterArchive must be a command`);
|
|
147
|
+
hooks.afterArchive = parsed.hooks.afterArchive;
|
|
148
|
+
}
|
|
149
|
+
const impact = parsed.cleanup?.impact ?? [];
|
|
150
|
+
requireValue(Array.isArray(impact), `${configFile}: cleanup.impact must be a list`);
|
|
151
|
+
for (const [index, entry] of impact.entries()) {
|
|
152
|
+
requireValue(isObject(entry) && typeof entry.source === 'string' && Array.isArray(entry.docs) && entry.docs.every(doc => typeof doc === 'string'),
|
|
153
|
+
`${configFile}: cleanup.impact item ${index + 1} needs source (a glob) and docs (a list of files)`);
|
|
154
|
+
checkGlob(entry.source, `cleanup.impact item ${index + 1} source`);
|
|
155
|
+
}
|
|
156
|
+
return { source: configFile, paths, hooks, cleanup: { impact: impact.map(entry => ({ source: entry.source, docs: entry.docs.map(relativePath) })) } };
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/** Project-relative work folders for a project. */
|
|
160
|
+
export const workPaths = root => readConfig(root).paths;
|
|
161
|
+
|
|
162
|
+
/** Globs support only *, ** and ?, which Git pathspecs and globToRegExp read the same way. */
|
|
163
|
+
export function checkGlob(glob, label = 'glob') {
|
|
164
|
+
requireValue(typeof glob === 'string' && glob.trim() && !/[[\]{}!\\]/.test(glob), `${configFile}: ${label} may use only *, ** and ? as wildcards: ${glob}`);
|
|
165
|
+
return glob;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** Convert a path glob (`*` within a segment, `**` across segments) to a RegExp. */
|
|
169
|
+
export function globToRegExp(glob) {
|
|
170
|
+
let pattern = '';
|
|
171
|
+
for (let index = 0; index < glob.length; index += 1) {
|
|
172
|
+
const char = glob[index];
|
|
173
|
+
if (char === '*' && glob[index + 1] === '*') {
|
|
174
|
+
index += 1;
|
|
175
|
+
if (glob[index + 1] === '/') { index += 1; pattern += '(?:.*/)?'; } else pattern += '.*';
|
|
176
|
+
} else if (char === '*') pattern += '[^/]*';
|
|
177
|
+
else if (char === '?') pattern += '[^/]';
|
|
178
|
+
else pattern += char.replace(/[.+^${}()|[\]\\]/g, '\\$&');
|
|
179
|
+
}
|
|
180
|
+
return new RegExp(`^${pattern}$`);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export async function main(argv = process.argv.slice(2)) {
|
|
184
|
+
const index = argv.indexOf('--root');
|
|
185
|
+
requireValue(argv.length === 0 || (argv.length === 2 && index === 0), 'Usage: config.mjs [--root <project>]');
|
|
186
|
+
const result = readConfig(path.resolve(index === 0 ? argv[1] : '.'));
|
|
187
|
+
process.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
188
|
+
return result;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(path.resolve(process.argv[1])).href) {
|
|
192
|
+
main().catch(error => { process.stderr.write(`Config stopped: ${error.message}\n`); process.exitCode = 1; });
|
|
193
|
+
}
|
|
@@ -4,6 +4,7 @@ import { constants } from 'node:fs';
|
|
|
4
4
|
import { lstat, open, realpath } from 'node:fs/promises';
|
|
5
5
|
import { isAbsolute, join, relative, sep } from 'node:path';
|
|
6
6
|
import { promisify } from 'node:util';
|
|
7
|
+
import { workPaths } from '../config.mjs';
|
|
7
8
|
|
|
8
9
|
const exec = promisify(execFile);
|
|
9
10
|
export const MAX_FILE_BYTES = 512 * 1024;
|
|
@@ -29,8 +30,8 @@ export function excludedReason(path) {
|
|
|
29
30
|
return null;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
function archivedReason(path, includeArchive) {
|
|
33
|
-
return !includeArchive && (path ===
|
|
33
|
+
function archivedReason(path, includeArchive, archive = 'docs/archive') {
|
|
34
|
+
return !includeArchive && (path === archive || path.startsWith(`${archive}/`)) ? 'archived-context' : null;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
function keywords(query) {
|
|
@@ -101,6 +102,7 @@ async function readSafeFile(root, path) {
|
|
|
101
102
|
|
|
102
103
|
/** Discover references without following symlinks or reading ignored/private paths. */
|
|
103
104
|
export async function findCandidates({ query, paths, includeArchive = false }, { root = process.cwd() } = {}) {
|
|
105
|
+
const archiveFolder = workPaths(root).archive;
|
|
104
106
|
if (typeof query !== 'string' || !query.trim() || Buffer.byteLength(query) > 4000) throw new Error('invalid-query: supply 1–4000 UTF-8 bytes');
|
|
105
107
|
if (paths !== undefined && (!Array.isArray(paths) || !paths.length || paths.some(path => !safeRelativePath(path)))) throw new Error('invalid-paths: use project-relative files or directories');
|
|
106
108
|
if (typeof includeArchive !== 'boolean') throw new Error('invalid-include-archive: use a boolean');
|
|
@@ -116,7 +118,7 @@ export async function findCandidates({ query, paths, includeArchive = false }, {
|
|
|
116
118
|
const candidates = [], omitted = [], unreadable = [];
|
|
117
119
|
const selections = paths && [...new Set(paths)];
|
|
118
120
|
for (const path of inventory) {
|
|
119
|
-
const archive = archivedReason(path, includeArchive);
|
|
121
|
+
const archive = archivedReason(path, includeArchive, archiveFolder);
|
|
120
122
|
if (archive) { omitted.push({ path, reason: archive }); continue; }
|
|
121
123
|
const exclusion = excludedReason(path);
|
|
122
124
|
if (exclusion) { omitted.push({ path, reason: exclusion }); continue; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { execFileSync } from 'node:child_process';
|
|
2
|
-
import {
|
|
2
|
+
import { existsSync, mkdirSync, readFileSync, realpathSync, rmSync, statSync, unlinkSync, writeFileSync } from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { pathToFileURL } from 'node:url';
|
|
5
5
|
import { isObject, nonempty, parseJson, readLocal, relativePath, requireValue, validateQueue } from './identity.mjs';
|
|
@@ -25,21 +25,44 @@ export function leasePath(root, feature) {
|
|
|
25
25
|
return path.join(mainTree(root), leaseRelative(feature));
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
function lockIsStale(lock, waitMs) {
|
|
29
|
+
const pid = Number(readFileSync(lock, 'utf8'));
|
|
30
|
+
if (!Number.isInteger(pid) || pid <= 0) return Date.now() - statSync(lock).mtimeMs > waitMs;
|
|
31
|
+
try { process.kill(pid, 0); return false; } catch (error) { return error.code === 'ESRCH'; }
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Waiters that see a stale lock take turns through a guard file, so two of them
|
|
35
|
+
// cannot both remove it and one remove the other's new lock.
|
|
36
|
+
function takeOver(lock, waitMs) {
|
|
37
|
+
const guard = `${lock}.takeover`;
|
|
38
|
+
try { writeFileSync(guard, String(process.pid), { flag: 'wx' }); } catch (error) {
|
|
39
|
+
if (error.code !== 'EEXIST') throw error;
|
|
40
|
+
try { if (Date.now() - statSync(guard).mtimeMs > waitMs) rmSync(guard, { force: true }); } catch { /* another waiter removed it */ }
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
try { if (lockIsStale(lock, waitMs)) unlinkSync(lock); } catch { /* the holder released it */ } finally { rmSync(guard, { force: true }); }
|
|
44
|
+
}
|
|
45
|
+
|
|
28
46
|
/** Serialize a read-modify-write of a small local record with an exclusive lock file. */
|
|
29
47
|
export function withLock(file, action, { waitMs = 5000 } = {}) {
|
|
30
48
|
const lock = `${file}.lock`;
|
|
31
49
|
mkdirSync(path.dirname(file), { recursive: true });
|
|
32
50
|
const deadline = Date.now() + waitMs;
|
|
33
51
|
for (;;) {
|
|
34
|
-
try {
|
|
52
|
+
try { writeFileSync(lock, String(process.pid), { flag: 'wx' }); break; } catch (error) {
|
|
35
53
|
if (error.code !== 'EEXIST') throw error;
|
|
36
|
-
//
|
|
37
|
-
|
|
54
|
+
// The lock names its holder. Take it over only when that process is gone, or,
|
|
55
|
+
// for a lock with no readable holder, when it is older than the wait limit.
|
|
56
|
+
let stale = false;
|
|
57
|
+
try { stale = lockIsStale(lock, waitMs); } catch { continue; }
|
|
58
|
+
if (stale) { takeOver(lock, waitMs); continue; }
|
|
38
59
|
requireValue(Date.now() < deadline, `Another Joycraft process holds ${path.basename(lock)}; try again`);
|
|
39
60
|
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 25);
|
|
40
61
|
}
|
|
41
62
|
}
|
|
42
|
-
try { return action(); } finally {
|
|
63
|
+
try { return action(); } finally {
|
|
64
|
+
try { if (readFileSync(lock, 'utf8') === String(process.pid)) unlinkSync(lock); } catch { /* already gone */ }
|
|
65
|
+
}
|
|
43
66
|
}
|
|
44
67
|
|
|
45
68
|
/** No lease can exist for a feature name that is not a slug, so 1.0.0 queues keep working. */
|
|
@@ -4,6 +4,7 @@ import path from 'node:path';
|
|
|
4
4
|
import { pathToFileURL } from 'node:url';
|
|
5
5
|
import { readLease } from './coordinator.mjs';
|
|
6
6
|
import { prepareDispatch } from './dispatch-preflight.mjs';
|
|
7
|
+
import { traceSpec } from './trace.mjs';
|
|
7
8
|
import { localPath, readQueue, relativePath, requireValue, validateNativeActor } from './identity.mjs';
|
|
8
9
|
|
|
9
10
|
// The native hook runtime is optional; without it, startup takes the manual path.
|
|
@@ -55,7 +56,13 @@ export async function startDispatch(options, nativeEvent) {
|
|
|
55
56
|
const hooks = config.enabled
|
|
56
57
|
? { enabled: true, ...await runtime.bindPreparedSource({ event: nativeEvent, packetPath: outPath }) }
|
|
57
58
|
: { enabled: false, eligible: false, reason: runtime ? 'hooks-disabled' : 'hooks-not-installed' };
|
|
58
|
-
|
|
59
|
+
// The reviewer sees which criteria have a tagged test. It reports; it never blocks startup.
|
|
60
|
+
let trace;
|
|
61
|
+
if (options.role === 'reviewer') {
|
|
62
|
+
try { const { criteria, untraced, unknownTags, missingFiles, note } = traceSpec({ root, queuePath: options.queuePath, specId: options.specId }); trace = { criteria, untraced, unknownTags, missingFiles, ...(note ? { note } : {}) }; }
|
|
63
|
+
catch (error) { trace = { error: error.message }; }
|
|
64
|
+
}
|
|
65
|
+
return { schemaVersion: 1, packetPath: outPath, packet, hooks, coordinator, ...(trace ? { trace } : {}),
|
|
59
66
|
ready: !config.enabled || hooks.eligible === true };
|
|
60
67
|
}
|
|
61
68
|
|
|
@@ -30,5 +30,12 @@
|
|
|
30
30
|
"test-runner": { "label": "Project test runner", "scope": "project", "size": "declared by the project", "sudo": false },
|
|
31
31
|
"curl": { "label": "HTTP check (curl)", "scope": "system", "size": "built in on macOS", "sudo": false,
|
|
32
32
|
"steps": ["Install curl with your system package manager"], "evidence": "curl -sS <url>" }
|
|
33
|
+
},
|
|
34
|
+
"optIn": {
|
|
35
|
+
"doc-detective": { "label": "Doc Detective (docs as tests)", "scope": "project", "size": "several hundred MB with browsers and drivers (estimate)", "sudo": false,
|
|
36
|
+
"license": "AGPL-3.0", "fits": "Docs that are step-by-step procedures: commands, API calls, UI clicks, links",
|
|
37
|
+
"notFor": "Conceptual or rules prose; checking that unit tests match a spec",
|
|
38
|
+
"steps": ["Ask the user first: it downloads browsers and drivers and is AGPL-3.0", "Run `npx doc-detective` once to try it, or add it as a dev dependency", "Mark test steps in the procedure docs (see https://docs.doc-detective.com)"],
|
|
39
|
+
"evidence": "npx doc-detective --input <docs-folder>" }
|
|
33
40
|
}
|
|
34
41
|
}
|
|
@@ -2,16 +2,17 @@ import { existsSync, readdirSync, writeFileSync } from 'node:fs';
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { pathToFileURL } from 'node:url';
|
|
4
4
|
import { journalPath } from './completion.mjs';
|
|
5
|
+
import { workPaths } from './config.mjs';
|
|
5
6
|
import { briefDecisionRecords, isObject, localPath, parseJson, readLocal, specStatus, validateQueue } from './identity.mjs';
|
|
6
|
-
import { listWorktrees } from './worktrees.mjs';
|
|
7
|
+
import { decide, listWorktrees } from './worktrees.mjs';
|
|
7
8
|
|
|
8
9
|
// The queue is the status authority; spec frontmatter mirrors it. This report
|
|
9
10
|
// shows where the mirror or the working folders have drifted, so a session can
|
|
10
11
|
// close them before they read as current knowledge.
|
|
11
|
-
const featuresHome = 'docs/features';
|
|
12
12
|
const queueName = 'specs/.joycraft-spec-queue.json';
|
|
13
13
|
|
|
14
14
|
function queuePaths(root) {
|
|
15
|
+
const featuresHome = workPaths(root).features;
|
|
15
16
|
const home = path.join(root, featuresHome);
|
|
16
17
|
if (!existsSync(home)) return [];
|
|
17
18
|
return readdirSync(home, { withFileTypes: true })
|
|
@@ -33,13 +34,13 @@ function worktreeCounts(root) {
|
|
|
33
34
|
const { trees } = listWorktrees({ root, sizes: false });
|
|
34
35
|
return {
|
|
35
36
|
owned: trees.filter(tree => tree.owner === 'joycraft' && !tree.missing).length,
|
|
36
|
-
prunable: trees.filter(tree => tree.
|
|
37
|
+
prunable: trees.filter(tree => decide(tree).action === 'remove').length,
|
|
37
38
|
unknown: trees.filter(tree => tree.owner !== 'joycraft').length,
|
|
38
39
|
};
|
|
39
40
|
} catch { return null; }
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
/** Report every queue's specs, drift between queue and frontmatter, and features ready to archive. */
|
|
43
|
+
/** Report every queue's specs (in paths.features), drift between queue and frontmatter, and features ready to archive. */
|
|
43
44
|
export function projectStatus({ root = process.cwd(), fix = false } = {}) {
|
|
44
45
|
const features = [];
|
|
45
46
|
const drift = [];
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { pathToFileURL } from 'node:url';
|
|
4
|
+
import { checkGlob, globToRegExp } from './config.mjs';
|
|
5
|
+
import { parseJson, readLocal, relativePath, requireValue, validateQueue } from './identity.mjs';
|
|
6
|
+
|
|
7
|
+
// Tests name the acceptance criterion they check with [AC:<criterion-id>]. The
|
|
8
|
+
// trace shows which criteria have a test and which do not. It reports; the
|
|
9
|
+
// reviewer decides what a gap means (it never blocks completion by itself).
|
|
10
|
+
const tag = /\[AC:([A-Za-z0-9_.-]+)\]/g;
|
|
11
|
+
|
|
12
|
+
function filesMatching(root, glob) {
|
|
13
|
+
const pattern = globToRegExp(checkGlob(glob, '--tests'));
|
|
14
|
+
return filesUnder(root, '', file => pattern.test(file));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// A declared folder is a literal path, so names like tests/[slug] need no glob escaping.
|
|
18
|
+
function filesUnder(root, base, keep = () => true) {
|
|
19
|
+
const out = [];
|
|
20
|
+
const walk = relative => {
|
|
21
|
+
let entries;
|
|
22
|
+
try { entries = readdirSync(path.join(root, relative || '.'), { withFileTypes: true }); } catch { return; }
|
|
23
|
+
for (const entry of entries) {
|
|
24
|
+
if (entry.name === 'node_modules' || entry.name === '.git' || entry.name === '.joycraft') continue;
|
|
25
|
+
const child = relative ? `${relative}/${entry.name}` : entry.name;
|
|
26
|
+
if (entry.isDirectory()) walk(child);
|
|
27
|
+
else if (entry.isFile() && keep(child)) out.push(child);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
walk(base);
|
|
31
|
+
return out;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** Map each criterion of one spec to the test lines tagged with its ID. */
|
|
35
|
+
export function traceSpec({ root = process.cwd(), queuePath, specId, tests = [] }) {
|
|
36
|
+
queuePath = relativePath(queuePath);
|
|
37
|
+
const queue = parseJson(readLocal(root, queuePath), queuePath);
|
|
38
|
+
validateQueue(queue, { select: spec => spec.id === specId });
|
|
39
|
+
const spec = queue.specs.find(item => item.id === specId);
|
|
40
|
+
requireValue(spec, `Spec ${specId} does not exist in queue`);
|
|
41
|
+
const criteria = (spec.verification.criteria ?? []).map(item => item.id);
|
|
42
|
+
const declared = spec.verification.inputs.filter(input => input.kind === 'check' && input.state !== 'absent').map(input => relativePath(input.path));
|
|
43
|
+
// A declared check folder stands for every file inside it.
|
|
44
|
+
const expanded = declared.flatMap(file => existsSync(path.join(root, file)) && statSync(path.join(root, file)).isDirectory() ? filesUnder(root, file) : [file]);
|
|
45
|
+
const files = [...new Set([...expanded, ...tests.flatMap(glob => filesMatching(root, glob))])].sort();
|
|
46
|
+
const untraceableIds = criteria.filter(id => !/^[A-Za-z0-9_.-]+$/.test(id));
|
|
47
|
+
const traced = Object.fromEntries(criteria.map(id => [id, []]));
|
|
48
|
+
const unknownTags = [];
|
|
49
|
+
const missingFiles = [];
|
|
50
|
+
for (const file of files) {
|
|
51
|
+
const full = path.join(root, file);
|
|
52
|
+
if (!existsSync(full)) { missingFiles.push(file); continue; }
|
|
53
|
+
const lines = readFileSync(full, 'utf8').split('\n');
|
|
54
|
+
for (const [index, line] of lines.entries()) {
|
|
55
|
+
for (const match of line.matchAll(tag)) {
|
|
56
|
+
if (Object.hasOwn(traced, match[1])) traced[match[1]].push({ file, line: index + 1 });
|
|
57
|
+
else unknownTags.push({ id: match[1], file, line: index + 1 });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const untraced = criteria.filter(id => traced[id].length === 0);
|
|
62
|
+
return {
|
|
63
|
+
queuePath, specId, files, criteria: criteria.map(id => ({ id, tests: traced[id] })), untraced, unknownTags, missingFiles,
|
|
64
|
+
...(untraceableIds.length ? { untraceableIds, untraceableNote: 'These criterion IDs contain characters an [AC:<id>] tag cannot hold; use letters, digits, ., _ and -.' } : {}),
|
|
65
|
+
...(files.length === 0 ? { note: 'No check inputs are declared and no --tests glob was given.' } : {}),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export async function main(argv = process.argv.slice(2)) {
|
|
70
|
+
const flags = { '--tests': [] };
|
|
71
|
+
for (let index = 0; index < argv.length; index += 2) {
|
|
72
|
+
requireValue(['--root', '--queue', '--spec', '--tests'].includes(argv[index]) && argv[index + 1], 'Usage: trace.mjs --queue <queue> --spec <id> [--tests <glob>]... [--root <project>]');
|
|
73
|
+
if (argv[index] === '--tests') flags['--tests'].push(argv[index + 1]); else flags[argv[index]] = argv[index + 1];
|
|
74
|
+
}
|
|
75
|
+
requireValue(/^(?:0|[1-9]\d*)$/.test(flags['--spec'] ?? ''), 'Spec ID must be a nonnegative integer');
|
|
76
|
+
const result = traceSpec({ root: path.resolve(flags['--root'] ?? '.'), queuePath: flags['--queue'], specId: Number(flags['--spec']), tests: flags['--tests'] });
|
|
77
|
+
process.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
78
|
+
if (result.untraced.length) process.exitCode = 2;
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(path.resolve(process.argv[1])).href) {
|
|
83
|
+
main().catch(error => { process.stderr.write(`Trace stopped: ${error.message}\n`); process.exitCode = 1; });
|
|
84
|
+
}
|
|
@@ -66,7 +66,7 @@ export function createWorktree({ root = process.cwd(), queuePath, specId, sessio
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
function linkedTrees(root) {
|
|
69
|
+
function linkedTrees(root, here = root) {
|
|
70
70
|
const blocks = git(root, ['worktree', 'list', '--porcelain']).split(/\n\n+/).filter(Boolean);
|
|
71
71
|
const trees = blocks.map(block => {
|
|
72
72
|
const tree = {};
|
|
@@ -76,8 +76,8 @@ function linkedTrees(root) {
|
|
|
76
76
|
}
|
|
77
77
|
return tree;
|
|
78
78
|
});
|
|
79
|
-
// The first entry is the main working tree; the
|
|
80
|
-
return trees.slice(1).filter(tree => !existsSync(tree.worktree) || realpathSync(tree.worktree) !==
|
|
79
|
+
// The first entry is the main working tree; the tree prune runs from is never listed.
|
|
80
|
+
return trees.slice(1).filter(tree => !existsSync(tree.worktree) || realpathSync(tree.worktree) !== here);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
function sizeOf(target) {
|
|
@@ -113,12 +113,14 @@ function evidenceOnlyHere(root, tree, spec) {
|
|
|
113
113
|
|
|
114
114
|
/** Every linked tree with its owner, spec status, merged and clean state. */
|
|
115
115
|
export function listWorktrees({ root = process.cwd(), into = 'HEAD', sizes = true } = {}) {
|
|
116
|
-
|
|
116
|
+
const main = gitRoot(root);
|
|
117
|
+
const here = realpathSync(git(root, ['rev-parse', '--show-toplevel']).trim());
|
|
118
|
+
root = main;
|
|
117
119
|
const ledger = readLedger(root);
|
|
118
120
|
const owned = new Map(ledger.trees.map(entry => [path.resolve(root, entry.path), entry]));
|
|
119
121
|
const queues = new Map();
|
|
120
122
|
const seen = new Set();
|
|
121
|
-
const trees = linkedTrees(root).map(tree => {
|
|
123
|
+
const trees = linkedTrees(root, here).map(tree => {
|
|
122
124
|
const absolute = existsSync(tree.worktree) ? realpathSync(tree.worktree) : tree.worktree;
|
|
123
125
|
const entry = owned.get(absolute) ?? owned.get(tree.worktree);
|
|
124
126
|
if (entry) seen.add(entry.path);
|
|
@@ -137,11 +139,11 @@ export function listWorktrees({ root = process.cwd(), into = 'HEAD', sizes = tru
|
|
|
137
139
|
if (sizes) record.bytes = exists ? sizeOf(absolute) : 0;
|
|
138
140
|
return record;
|
|
139
141
|
});
|
|
140
|
-
const missing = ledger.trees.filter(entry => !seen.has(entry.path)).map(entry => ({ path: entry.path, branch: entry.branch, owner: 'joycraft', feature: entry.feature, specId: entry.specId, exists: false, missing: true }));
|
|
142
|
+
const missing = ledger.trees.filter(entry => !seen.has(entry.path) && path.resolve(root, entry.path) !== here).map(entry => ({ path: entry.path, branch: entry.branch, owner: 'joycraft', feature: entry.feature, specId: entry.specId, exists: false, missing: true }));
|
|
141
143
|
return { root, into, trees: [...trees, ...missing] };
|
|
142
144
|
}
|
|
143
145
|
|
|
144
|
-
function decide(tree) {
|
|
146
|
+
export function decide(tree) {
|
|
145
147
|
if (tree.owner === 'joycraft' && !tree.exists) return { action: 'forget', reason: 'Recorded tree no longer exists; drop the ledger entry.' };
|
|
146
148
|
if (tree.owner !== 'joycraft') return { action: 'keep', reason: 'Not created by worktrees.mjs; inspect it, then remove it with git worktree remove if it is yours.' };
|
|
147
149
|
if (tree.specStatus !== 'done') return { action: 'keep', reason: `Spec ${tree.specId} is ${tree.specStatus}; keep the tree until it is done.` };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# joycraft.yaml: project settings for Joycraft. This file is yours; Joycraft only
|
|
2
|
+
# reads it. Every setting is optional; delete what you do not change.
|
|
3
|
+
|
|
4
|
+
paths:
|
|
5
|
+
features: docs/features # working briefs and specs (not current knowledge)
|
|
6
|
+
archive: docs/archive # finished features (history)
|
|
7
|
+
context: docs/context # current project knowledge
|
|
8
|
+
|
|
9
|
+
hooks:
|
|
10
|
+
# Runs once after a feature is archived, from the project root, with
|
|
11
|
+
# JOYCRAFT_FEATURE, JOYCRAFT_ARCHIVE_PATH and JOYCRAFT_SOURCE_PATH set.
|
|
12
|
+
# afterArchive: node scripts/wiki-sync.mjs
|
|
13
|
+
|
|
14
|
+
cleanup:
|
|
15
|
+
# Code that each context page describes. cleanup.mjs flags a page when this
|
|
16
|
+
# code changed after the page last changed.
|
|
17
|
+
impact: []
|
|
18
|
+
# - source: src/auction/**
|
|
19
|
+
# docs: [docs/context/auction-rules.md]
|
package/payload/PIN
CHANGED
|
@@ -1,70 +1,76 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"source": "joycraft-prototype",
|
|
4
|
-
"tag": "field-
|
|
5
|
-
"commit": "
|
|
4
|
+
"tag": "field-10",
|
|
5
|
+
"commit": "c535c1dcbfd1256b06a4c981352d8bbf358a182b",
|
|
6
6
|
"files": {
|
|
7
|
+
".agents/skills/joycraft-cleanup/SKILL.md": "e9a6eda4773332d87cc6a13cc939aaa5d3ea1ec1f980b1132a6794740cdfe39f",
|
|
7
8
|
".agents/skills/joycraft-context/SKILL.md": "e0a5f7d82fe8b6b6d3aeab38f7cf570ca939dba07034243af1ef86d24448c084",
|
|
8
9
|
".agents/skills/joycraft-decompose/SKILL.md": "a24c9d9cf2dc7af4b99ad67575b64b9d0c99818044f7fafc3a5243dc4c557b5f",
|
|
9
|
-
".agents/skills/joycraft-entry/SKILL.md": "
|
|
10
|
-
".agents/skills/joycraft-implement/SKILL.md": "
|
|
10
|
+
".agents/skills/joycraft-entry/SKILL.md": "c6102aca5e8f7e864a963ab1b3fa26007ef6118dee30a3eb59af55a3a52c9c8d",
|
|
11
|
+
".agents/skills/joycraft-implement/SKILL.md": "075832c85f6bff177eca45f5ce4412f6a6661fe9be9213674ddc2f74c2dc211e",
|
|
11
12
|
".agents/skills/joycraft-retro/SKILL.md": "156f36cb047604c734bf273bd02822d964b6af86619ed6c2a30fa6d79eb9a986",
|
|
12
13
|
".agents/skills/joycraft-retro/agents/openai.yaml": "f0eb4732261635f41e08f0bbe9a931d62fd8ac645149d3406e6fc7e16a81750b",
|
|
13
|
-
".agents/skills/joycraft-session-end/SKILL.md": "
|
|
14
|
+
".agents/skills/joycraft-session-end/SKILL.md": "31fd6ef54b46fec92a7e52e381a8e25886239d0e3c3ce8ca820c3be6fa1e1877",
|
|
14
15
|
".agents/skills/joycraft-testing/SKILL.md": "89e983b285099c38821dc807311b27d450e6dec9fb691cd687ca74332b091157",
|
|
15
16
|
".agents/skills/joycraft-ui-slice/SKILL.md": "fcb5f109c9bd23d4afe5b47d19c90fd34485754ce9061c64bce1ae2ce0376484",
|
|
16
17
|
".agents/skills/joycraft-ui-slice/scripts/serve.mjs": "c16858800b6fbe6f7a3a21b21e785ad70c9a89a3fe970bc08701fefeac5042fa",
|
|
17
|
-
".agents/skills/joycraft-verify/SKILL.md": "
|
|
18
|
-
".claude/agents/joycraft-implementer.md": "
|
|
19
|
-
".claude/agents/joycraft-reviewer.md": "
|
|
18
|
+
".agents/skills/joycraft-verify/SKILL.md": "f18eda5910e1ca5c312f5185b0dbceb4dc09fb9d73951e64410b5d59db046511",
|
|
19
|
+
".claude/agents/joycraft-implementer.md": "30b26779bd49d2d66758bcb26442e78755b018a3830ac52ff634ebf057ce1cc5",
|
|
20
|
+
".claude/agents/joycraft-reviewer.md": "488b1923115257dbe966bbe4717d21f95900b18cff68febd848e1f8f362a9d37",
|
|
20
21
|
".joycraft/assets/artifacts/kit.css": "9b04b739b3b137d4a3052a939cbc46b5acb9abde085989bd599481ae40e5c6a9",
|
|
21
22
|
".joycraft/assets/artifacts/kit.js": "e54db2157cfee278f5e6777b6b6fe2d2f5297cd2401b173d1a4b72e3fad00562",
|
|
22
23
|
".joycraft/assets/artifacts/transports.js": "e53c67ac030a1d7c9ce4666b998604a471598cb4df08bc83f37e3d166b8017eb",
|
|
23
24
|
".joycraft/contracts/types.d.ts": "5c4e654ea929778c586bc6cce44e60dc031578b2414dd1b8161359cf9f424b41",
|
|
24
25
|
".joycraft/references/architecture.md": "52eaaa4b88053481c9f8cad2418ea0f1db880184c3a50c95901f30f24be75852",
|
|
25
|
-
".joycraft/references/archive.md": "
|
|
26
|
+
".joycraft/references/archive.md": "7deca056a93b21c97d82633bcdf5acf6c77bf2c59b2430e648f665923c020794",
|
|
26
27
|
".joycraft/references/artifacts.md": "1f21223601342f4ce54c4d76320f89f4eea1c8d0089396495993ba62155f422e",
|
|
28
|
+
".joycraft/references/cleanup.md": "c223e17ea970fd528b44f0f22e614763d2281b49531c1ee566b3fba60417eeac",
|
|
27
29
|
".joycraft/references/completion.md": "7df48664861f41e2e503a828e97d6b6f615745591a3f47f17d196fa4d24a122d",
|
|
28
30
|
".joycraft/references/context.md": "f2c8313eaf996b633040e52855ae1eef57b03cad2b024bb5eacb70b38d39ca95",
|
|
29
31
|
".joycraft/references/delivery.md": "1afc417ee3922ebf5e84c0ae87796d6cb6305679c0257ed38a35f396949de5e8",
|
|
30
32
|
".joycraft/references/dispatch.md": "b80d6899c52b7c003012fdfc774be271773213b7fedc37f4c247b431cdf8207d",
|
|
31
33
|
".joycraft/references/recurring-failures.md": "7080f6c55492bc19c2897f4f0b128a830a71cdb516678c79ff6e97ffa1dc6b86",
|
|
32
34
|
".joycraft/references/retro.md": "f359eae19747777fb4687c1bc7eb280f0319ae629ee62913346e60fc56551562",
|
|
33
|
-
".joycraft/references/setup.md": "
|
|
34
|
-
".joycraft/references/testing.md": "
|
|
35
|
+
".joycraft/references/setup.md": "ab06b0b7b83cb141b04f4ad75af1e28beb278c3b39a29acbb07fd8580bf0ca1f",
|
|
36
|
+
".joycraft/references/testing.md": "7a0be4a5424f0fac89cba6e896c66a50948e31332bb7f032f688d72a203e4f4d",
|
|
35
37
|
".joycraft/references/update.md": "8e26ddaa21d3b133902bebcb6662a16f52f3ae3f04c51c69fdb325a8e9c0aeac",
|
|
36
|
-
".joycraft/references/workflow.md": "
|
|
38
|
+
".joycraft/references/workflow.md": "ed4a6618ab3288ea213691e4485f580d8348f717b6e663d29fbb570541e42c2c",
|
|
37
39
|
".joycraft/references/worktrees.md": "fb18af0cd76d4e3c5d5b892a7ae10946f21f189e642243235c188b571635f735",
|
|
38
|
-
".joycraft/runtime/archive.mjs": "
|
|
40
|
+
".joycraft/runtime/archive.mjs": "c153f5407fe6abffe5cf9655b0ff40db2254712a1bfee429dad93251bb7d0121",
|
|
39
41
|
".joycraft/runtime/artifacts/cli.mjs": "d30152e6829e07d9c7ff6ceedbfa6813931674d8529778f62b0d64e3a4049ab0",
|
|
40
42
|
".joycraft/runtime/artifacts/decisions.mjs": "9cba81346daf59cd020b8d976af98b1f6c2aec8d0a1575e5e0f806334ae622d0",
|
|
41
43
|
".joycraft/runtime/artifacts/model.mjs": "fbe44d37049759387ecc02ba2580c94e26e6c5cb8cac3dcbcc79aeab3b75756b",
|
|
42
44
|
".joycraft/runtime/artifacts/preferences.mjs": "9165e1c753aa8533affe976cacecb135b0ee3cc9f455f5f80b1568103bb49fd6",
|
|
43
45
|
".joycraft/runtime/artifacts/render.mjs": "488673cab94fa6bfde223c2c41650f8e183f7ac0be3840d371ee057d95ea0fa5",
|
|
44
46
|
".joycraft/runtime/artifacts/server.mjs": "a96048fad649e8053c70ce95c5a757929ab57ae9de27198121224326551c0a05",
|
|
47
|
+
".joycraft/runtime/cleanup.mjs": "99aa8ba12e856893e47232f2944013e56c3925e8ab8f732c195c092497690c3f",
|
|
45
48
|
".joycraft/runtime/completion.mjs": "11635b11eb7df90398a69b6d41f96d9c7b9d2dc2255ae4a4a129562d46572ec1",
|
|
49
|
+
".joycraft/runtime/config.mjs": "9b64d7f6928bbcc8145c8de51994d82dd8e3323878d321bce0fb3bc11975eedf",
|
|
46
50
|
".joycraft/runtime/context/cli.mjs": "40adc206c8c3b7f4f5bedffb097d9ae1b0718f0586a055796e4987e9c3088eee",
|
|
47
51
|
".joycraft/runtime/context/index.mjs": "5a69d33d9a1a66ef23301e952ecb1ec427ff4b0baf408ede67a2600d3f2a173c",
|
|
48
|
-
".joycraft/runtime/context/search.mjs": "
|
|
49
|
-
".joycraft/runtime/coordinator.mjs": "
|
|
52
|
+
".joycraft/runtime/context/search.mjs": "e32a42ba9b168ca7c68fed46d47a79250c27aa4c07c0835feae084b5d1e0d0ca",
|
|
53
|
+
".joycraft/runtime/coordinator.mjs": "9252a40ee3a82808a780158427b02129d8075679ed329bce2dd74168c7eb42ab",
|
|
50
54
|
".joycraft/runtime/delivery.mjs": "4fe897714eec33b24003f0d69abe1522a5199193ab7333fa6421776ee048df1c",
|
|
51
55
|
".joycraft/runtime/dispatch-preflight.mjs": "1b8283c06c8a2a41bfca06b1d5f0f83a093825911fbab1e04657dee06fa91c5d",
|
|
52
|
-
".joycraft/runtime/dispatch-start.mjs": "
|
|
56
|
+
".joycraft/runtime/dispatch-start.mjs": "b8d27b53566062c79cb95bf3f89bcb3e4abc9dd9dc15612cfced8685cf3a1c41",
|
|
53
57
|
".joycraft/runtime/evidence.mjs": "80a386dd6d81e5fd32c64e53d5fb089072bc28f36df6c4f6c924077dd064604b",
|
|
54
58
|
".joycraft/runtime/identity.mjs": "f5a10dd58f2dd259502b04eaa2af42d2a74a09614e097a6efc35104c80bba024",
|
|
55
59
|
".joycraft/runtime/kickoff.mjs": "9d96998bff94662863182b9a922f26732c649b7a0b0130b6da7d63ec73eb3590",
|
|
56
60
|
".joycraft/runtime/redact.mjs": "cc8c0fe5e8d8fe78116ef126f6eee757a247739084e19c342bcf09a2b06524bc",
|
|
57
61
|
".joycraft/runtime/retro.mjs": "6f3664b0d50c12d4f2d8eef4b4d0d62897939d03e45860d4dcf35c0f5f92677c",
|
|
58
|
-
".joycraft/runtime/review-tools.json": "
|
|
62
|
+
".joycraft/runtime/review-tools.json": "c00e4209d67fd655a351946509a2aba2ee287dbaa0a1ad60c22e1286de0b4893",
|
|
59
63
|
".joycraft/runtime/review-tools.mjs": "17c13f7ab746478bce5711501a5190991b46616c849780196614950cfc6f0208",
|
|
60
64
|
".joycraft/runtime/scope.mjs": "e2cdd929596246bf24e18850698db440119badc7068a3c5beab03ded45abbd65",
|
|
61
|
-
".joycraft/runtime/status.mjs": "
|
|
65
|
+
".joycraft/runtime/status.mjs": "0e1d2cc23f8d847ae14e8fc2dd909910d6b5655a0bb0305355f6f4d9709f1e33",
|
|
66
|
+
".joycraft/runtime/trace.mjs": "b7924f759b07991f4135698df9c32654631a325957f0f8de5c2ca1262c0a836a",
|
|
62
67
|
".joycraft/runtime/update-check.mjs": "324b2eda4ac1feb6bb5b15ef488bea5f2f8a6312bc7b1c24719e0b7fd6a84634",
|
|
63
|
-
".joycraft/runtime/worktrees.mjs": "
|
|
68
|
+
".joycraft/runtime/worktrees.mjs": "d463e1df5735550acf4f3a0e6f96f723d8f55806ba64d38190163d0cc0154f03",
|
|
64
69
|
".joycraft/templates/README.md": "56a166d0729e8b6c3bcb098afb8145006259357087fd8b1f1f343d9a2b4d36e0",
|
|
65
70
|
".joycraft/templates/artifact.json": "fda5f7c32516d6ab094ee0e8506d84a1a0d6d4d0f49048b01aa392c619996f05",
|
|
66
71
|
".joycraft/templates/brief.md": "03479342500570aba9fb206beef6f6049fd180bec814dd8001987174aecfef25",
|
|
67
72
|
".joycraft/templates/decisions.md": "49e0c9b3efe51d1c2e87345fcefe23ef0579e524d50febef8ef43a35141c8002",
|
|
73
|
+
".joycraft/templates/joycraft.yaml": "3aa465896e58cfec956040d9f2b13ce4f4be84c027a6bb1a3e2a9c0e834d2ace",
|
|
68
74
|
".joycraft/templates/project-context.md": "d7c81fee08609a7db45c5df0cb2bd5cb3409760169d8b03cc5f19b1ff82d03c2",
|
|
69
75
|
".joycraft/templates/queue.json": "88f922b6cc47b80befc27df86a143d6bae0b30869c46d712958b64291e5ebcc2",
|
|
70
76
|
".joycraft/templates/spec.md": "5f4b1490c2ba2e47ced1ef5b369fe3e41386eb61386c42c7a561b1e8af02ea5e",
|