@fungi.computer/issues 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/issue-schema.d.ts +3 -0
- package/dist/issue-schema.js +1 -0
- package/dist/validator.d.ts +3 -1
- package/dist/validator.js +3 -2
- package/package.json +1 -1
package/dist/issue-schema.d.ts
CHANGED
package/dist/issue-schema.js
CHANGED
package/dist/validator.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
export type IssueStatus = "needs-triage" | "needs-info" | "ready-for-agent" | "ready-for-human" | "in-progress" | "resolved" | "wontfix";
|
|
3
3
|
/** Ticket metadata accepted by the local issue frontmatter schema. */
|
|
4
4
|
export type IssueFrontmatter = {
|
|
5
|
+
/** Final slice wires all of this effort's user surfaces. */
|
|
6
|
+
readonly reachable?: boolean;
|
|
5
7
|
/** Stable effort-and-number identifier, independent of the ticket slug. */
|
|
6
8
|
readonly id: string;
|
|
7
9
|
/** Ticket title, which must match the body's first Markdown heading. */
|
|
@@ -42,7 +44,7 @@ export type IssueSummary = {
|
|
|
42
44
|
readonly blocked: boolean;
|
|
43
45
|
};
|
|
44
46
|
/** The validated frontmatter fields Grove reads from the Team issue index. */
|
|
45
|
-
export type IssueIndexRecord = Readonly<Pick<IssueFrontmatter, "id" | "title" | "status" | "priority" | "assignee" | "areas" | "blocked_by"> & {
|
|
47
|
+
export type IssueIndexRecord = Readonly<Pick<IssueFrontmatter, "id" | "title" | "status" | "priority" | "assignee" | "areas" | "blocked_by" | "reachable"> & {
|
|
46
48
|
/** Ticket path relative to the supplied issue tree. */
|
|
47
49
|
path: string;
|
|
48
50
|
/** Whether any declared blocker remains unsettled. */
|
package/dist/validator.js
CHANGED
|
@@ -259,8 +259,8 @@ export function inspectIssueTree(files) {
|
|
|
259
259
|
const summary = issueById.get(record.frontmatter.id);
|
|
260
260
|
if (summary === undefined)
|
|
261
261
|
throw new Error("Validated issue record has no summary");
|
|
262
|
-
const { id, title, status, priority, assignee, areas, blocked_by } = record.frontmatter;
|
|
263
|
-
|
|
262
|
+
const { id, title, status, priority, assignee, areas, blocked_by, reachable, } = record.frontmatter;
|
|
263
|
+
const index = {
|
|
264
264
|
id,
|
|
265
265
|
title,
|
|
266
266
|
status,
|
|
@@ -271,6 +271,7 @@ export function inspectIssueTree(files) {
|
|
|
271
271
|
path: record.path,
|
|
272
272
|
blocked: summary.blocked,
|
|
273
273
|
};
|
|
274
|
+
return reachable === undefined ? index : { ...index, reachable };
|
|
274
275
|
})
|
|
275
276
|
: [];
|
|
276
277
|
return {
|