@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.
@@ -6,6 +6,9 @@ declare const issueFrontmatterSchema: {
6
6
  additionalProperties: false;
7
7
  required: string[];
8
8
  properties: {
9
+ reachable: {
10
+ type: "boolean";
11
+ };
9
12
  id: {
10
13
  type: "string";
11
14
  pattern: string;
@@ -16,6 +16,7 @@ const issueFrontmatterSchema = {
16
16
  "blocked_by",
17
17
  ],
18
18
  properties: {
19
+ reachable: { type: "boolean" },
19
20
  id: {
20
21
  type: "string",
21
22
  pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*-[0-9]{2}[a-z]?$",
@@ -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
- return {
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/issues",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "private": false,
6
6
  "description": "Pure validation and metadata projection for a complete issue tree",