@fungi.computer/issues 0.0.1 → 0.1.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.
@@ -1,37 +1,66 @@
1
+ /** Canonical triage state stored in ticket frontmatter. */
1
2
  export type IssueStatus = "needs-triage" | "needs-info" | "ready-for-agent" | "ready-for-human" | "in-progress" | "resolved" | "wontfix";
3
+ /** Ticket metadata accepted by the local issue frontmatter schema. */
2
4
  export type IssueFrontmatter = {
5
+ /** Stable effort-and-number identifier, independent of the ticket slug. */
3
6
  readonly id: string;
7
+ /** Ticket title, which must match the body's first Markdown heading. */
4
8
  readonly title: string;
9
+ /** Ticket kind selecting the required body sections. */
5
10
  readonly type: "bug" | "enhancement" | "task" | "research" | "prototype" | "decision";
11
+ /** Triage state; blocking is derived separately from dependency edges. */
6
12
  readonly status: IssueStatus;
13
+ /** Priority code, independent of triage state and blocking. */
7
14
  readonly priority: "p0" | "p1" | "p2" | "p3";
15
+ /** Creation date written as YYYY-MM-DD. */
8
16
  readonly created: string;
17
+ /** Claimed owner, or null while the ticket is unassigned. */
9
18
  readonly assignee: string | null;
19
+ /** Searchable area slugs from the governing Wiki's domain language. */
10
20
  readonly areas: readonly string[];
21
+ /** Stable ticket IDs that must be resolved or wontfix to settle blockers. */
11
22
  readonly blocked_by: readonly string[];
12
23
  };
24
+ /** A path, content or dependency rule violation in the supplied issue tree. */
13
25
  export type IssueDiagnostic = {
26
+ /** Input file key identifying the ticket that needs correction. */
14
27
  readonly path: string;
28
+ /** Machine-readable rule violated by the ticket or its dependency graph. */
15
29
  readonly code: "invalid-ticket-path" | "invalid-frontmatter" | "id-path-mismatch" | "duplicate-id" | "title-mismatch" | "missing-section" | "unknown-blocker" | "self-blocker" | "blocker-cycle";
30
+ /** Human-readable explanation of the failed rule. */
16
31
  readonly detail: string;
17
32
  };
33
+ /** Ticket identity and dependency state used to assemble the ready frontier. */
18
34
  export type IssueSummary = {
35
+ /** Stable ticket identifier from its parsed frontmatter. */
19
36
  readonly id: string;
37
+ /** Ticket path relative to the supplied issue tree. */
20
38
  readonly path: string;
39
+ /** Current triage state, without a synthetic blocked state. */
21
40
  readonly status: IssueStatus;
41
+ /** Whether a declared blocker is absent or outside resolved and wontfix. */
22
42
  readonly blocked: boolean;
23
43
  };
24
44
  /** The validated frontmatter fields Grove reads from the Team issue index. */
25
45
  export type IssueIndexRecord = Readonly<Pick<IssueFrontmatter, "id" | "title" | "status" | "priority" | "assignee" | "areas" | "blocked_by"> & {
46
+ /** Ticket path relative to the supplied issue tree. */
26
47
  path: string;
48
+ /** Whether any declared blocker remains unsettled. */
27
49
  blocked: boolean;
28
50
  }>;
51
+ /** Validation result and index projections for one complete issue tree. */
29
52
  export type IssueTrackerReport = {
53
+ /** Version of this report representation, currently 1. */
30
54
  readonly schemaVersion: 1;
55
+ /** Pass only when the complete tree has no diagnostics. */
31
56
  readonly status: "pass" | "fail";
57
+ /** Parsed graph summaries, retained even when validation fails. */
32
58
  readonly issues: readonly IssueSummary[];
59
+ /** Validated index records; empty if any diagnostic exists. */
33
60
  readonly records: readonly IssueIndexRecord[];
61
+ /** Unassigned ready ticket IDs with all declared blockers settled. */
34
62
  readonly frontier: readonly string[];
63
+ /** Rule violations sorted by input path and diagnostic code. */
35
64
  readonly diagnostics: readonly IssueDiagnostic[];
36
65
  };
37
66
  /** Validate one pushed `issues/` tree as a schema and dependency graph. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/issues",
3
- "version": "0.0.1",
3
+ "version": "0.1.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",