pm-gantt-chart 2026.6.2 → 2026.6.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 +27 -1
- package/README.md +55 -16
- package/dist/index.d.ts +162 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +540 -24
- package/dist/index.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 2026.6.
|
|
3
|
+
## 2026.6.4 - 2026-06-04
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Slack/float, infeasible-deadline flag, ASCII TODAY marker, HTML summary + assignee workload ([pm-gantt-chart-ao93](https://github.com/unbraind/pm-gantt-chart/blob/main/.agents/pm/features/pm-gantt-chart-ao93.toon))
|
|
8
|
+
|
|
9
|
+
## 2026.06.03 - 2026-06-02
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Deepen gantt: scheduling, csv, sprint/release/status grouping, --to ([pm-gantt-chart-uscf](https://github.com/unbraind/pm-gantt-chart/blob/main/.agents/pm/features/pm-gantt-chart-uscf.toon))
|
|
14
|
+
- Add --to date-window clip ([pm-gantt-chart-fotb](https://github.com/unbraind/pm-gantt-chart/blob/main/.agents/pm/tasks/pm-gantt-chart-fotb.toon))
|
|
15
|
+
- Add sprint/release/status group-by keys ([pm-gantt-chart-f2mr](https://github.com/unbraind/pm-gantt-chart/blob/main/.agents/pm/tasks/pm-gantt-chart-f2mr.toon))
|
|
16
|
+
- Add --critical-only filter \(mark already existed\) ([pm-gantt-chart-xkr0](https://github.com/unbraind/pm-gantt-chart/blob/main/.agents/pm/tasks/pm-gantt-chart-xkr0.toon))
|
|
17
|
+
- Add CSV schedule export format \(id,title,start,end,duration,deps,status\) ([pm-gantt-chart-3reu](https://github.com/unbraind/pm-gantt-chart/blob/main/.agents/pm/tasks/pm-gantt-chart-3reu.toon))
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Decision: estimate source = estimated\_minutes via 8h workday; no capability change \(exporter is under importers\) ([pm-gantt-chart-g2pj](https://github.com/unbraind/pm-gantt-chart/blob/main/.agents/pm/decisions/pm-gantt-chart-g2pj.toon))
|
|
22
|
+
|
|
23
|
+
### Other
|
|
24
|
+
|
|
25
|
+
- Decision: forward-schedule from anchor, back-anchor to reachable deadlines, chain may overrun deadline ([pm-gantt-chart-oy33](https://github.com/unbraind/pm-gantt-chart/blob/main/.agents/pm/decisions/pm-gantt-chart-oy33.toon))
|
|
26
|
+
- Unit tests for scheduler, critical path, csv/mermaid renderers ([pm-gantt-chart-tc2y](https://github.com/unbraind/pm-gantt-chart/blob/main/.agents/pm/tasks/pm-gantt-chart-tc2y.toon))
|
|
27
|
+
- Dependency-aware --schedule mode + --default-duration ([pm-gantt-chart-ifbx](https://github.com/unbraind/pm-gantt-chart/blob/main/.agents/pm/tasks/pm-gantt-chart-ifbx.toon))
|
|
28
|
+
|
|
29
|
+
## 2026.06.02 - 2026-06-02
|
|
4
30
|
|
|
5
31
|
### Added
|
|
6
32
|
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gantt chart renderer and multi-format exporter for [pm-cli](https://github.com/unbraind/pm-cli).
|
|
4
4
|
|
|
5
|
-
Renders your pm items as a week-by-week timeline in the terminal — grouped by milestone,
|
|
5
|
+
Renders your pm items as a week-by-week timeline in the terminal — grouped by milestone, sprint, release, assignee, status, type, or tag — and exports the same chart to **Mermaid `gantt`**, **standalone HTML**, **ASCII**, or a **CSV schedule**. Can compute and highlight the **critical path** (longest dependency chain), and run **dependency-aware scheduling** that derives each item's start/end from its blocked-by chain plus estimates.
|
|
6
6
|
|
|
7
7
|
## Example output
|
|
8
8
|
|
|
@@ -46,18 +46,28 @@ pm gantt
|
|
|
46
46
|
# Show 12 weeks
|
|
47
47
|
pm gantt --weeks 12
|
|
48
48
|
|
|
49
|
-
# Group by assignee / type
|
|
49
|
+
# Group by sprint / release / assignee / status / type
|
|
50
|
+
pm gantt --group-by sprint
|
|
51
|
+
pm gantt --group-by release
|
|
50
52
|
pm gantt --group-by assignee
|
|
51
|
-
pm gantt --group-by
|
|
53
|
+
pm gantt --group-by status
|
|
52
54
|
|
|
53
55
|
# Show only in-progress items
|
|
54
56
|
pm gantt --status in_progress
|
|
55
57
|
|
|
56
|
-
# Anchor the window at a specific date
|
|
58
|
+
# Anchor the window at a specific date, or clip it with --to
|
|
57
59
|
pm gantt --from 2026-06-01 --weeks 16
|
|
60
|
+
pm gantt --from 2026-06-01 --to 2026-08-01
|
|
61
|
+
|
|
62
|
+
# Dependency-aware scheduling: derive start/end from blocked-by chains + estimates
|
|
63
|
+
pm gantt --schedule
|
|
64
|
+
pm gantt --schedule --default-duration 3
|
|
58
65
|
|
|
59
66
|
# Compute & mark the longest dependency chain
|
|
60
67
|
pm gantt --critical-path
|
|
68
|
+
|
|
69
|
+
# Show only the critical path (great paired with --schedule)
|
|
70
|
+
pm gantt --critical-only --schedule
|
|
61
71
|
```
|
|
62
72
|
|
|
63
73
|
### Export — `pm gantt export`
|
|
@@ -75,8 +85,12 @@ pm gantt export --format html --output roadmap.html
|
|
|
75
85
|
# Plain ASCII (the same chart `pm gantt` prints)
|
|
76
86
|
pm gantt export --format ascii --output roadmap.txt
|
|
77
87
|
|
|
78
|
-
#
|
|
88
|
+
# CSV schedule: id,title,start,end,duration_days,deps,status
|
|
89
|
+
pm gantt export --format csv --schedule --output schedule.csv
|
|
90
|
+
|
|
91
|
+
# Export honors the same shaping flags (including --schedule / --critical-only)
|
|
79
92
|
pm gantt export --format html --group-by assignee --critical-path --weeks 12 --output team.html
|
|
93
|
+
pm gantt export --format mermaid --schedule --group-by sprint --output plan.mmd
|
|
80
94
|
```
|
|
81
95
|
|
|
82
96
|
The exporter writes to the file given by `--output`, or prints to stdout when omitted (handy for piping into a Mermaid live editor).
|
|
@@ -87,25 +101,48 @@ Both `pm gantt` and `pm gantt export` accept the shaping flags:
|
|
|
87
101
|
|
|
88
102
|
| Flag | Values | Default | Description |
|
|
89
103
|
|------|--------|---------|-------------|
|
|
90
|
-
| `--weeks <n>` | 1–52 | `8` | Number of weeks to display |
|
|
91
|
-
| `--group-by <field>` | `milestone` \| `type` \| `assignee` \| `tag` | `milestone` | How to group items into rows |
|
|
104
|
+
| `--weeks <n>` | 1–52 | `8` | Number of weeks to display (ignored when `--to` is set) |
|
|
105
|
+
| `--group-by <field>` | `milestone` \| `sprint` \| `release` \| `type` \| `assignee` \| `status` \| `tag` | `milestone` | How to group items into rows |
|
|
92
106
|
| `--status <filter>` | `open` \| `in_progress` \| `blocked` \| `closed` \| `canceled` \| `draft` \| `all` | `all` | Filter items by status |
|
|
93
107
|
| `--from <iso>` | `YYYY-MM-DD` | current week | Anchor the chart window at this date |
|
|
108
|
+
| `--to <iso>` | `YYYY-MM-DD` | — | Clip the window to end at this date (derives the week count, overriding `--weeks`) |
|
|
109
|
+
| `--schedule` | flag | off | Dependency-aware scheduling: derive start/end from blocked-by chains + estimates |
|
|
110
|
+
| `--default-duration <days>` | integer ≥ 1 | `5` | Fallback duration for items with no estimate under `--schedule` |
|
|
94
111
|
| `--critical-path` | flag | off | Compute & mark the longest dependency chain |
|
|
112
|
+
| `--critical-only` | flag | off | Show only items on the critical path (implies critical-path computation) |
|
|
95
113
|
|
|
96
114
|
`pm gantt export` adds:
|
|
97
115
|
|
|
98
116
|
| Flag | Values | Default | Description |
|
|
99
117
|
|------|--------|---------|-------------|
|
|
100
|
-
| `--format <fmt>` | `mermaid` \| `html` \| `ascii` | `mermaid` | Output format |
|
|
118
|
+
| `--format <fmt>` | `mermaid` \| `html` \| `ascii` \| `csv` | `mermaid` | Output format |
|
|
101
119
|
| `--output <file>` | path | stdout | File to write (prints to stdout if omitted) |
|
|
102
120
|
|
|
121
|
+
`csv` emits a schedule table: `id,title,start,end,duration_days,slack_days,deps,status` (deps = space-separated blocking ids). Pair it with `--schedule` for dependency-derived dates and slack. `slack_days` is the total float in days (only populated under `--schedule`; blank otherwise): `0` marks a critical-path item, a positive value is how many days the task can slip without delaying the project, and a **negative** value means the plan is already late for a downstream deadline.
|
|
122
|
+
|
|
123
|
+
### Slack / float, critical path & infeasible deadlines
|
|
124
|
+
|
|
125
|
+
Under `--schedule`, a **backward pass** (classic CPM) computes each item's *latest* feasible start/finish from the project end and any downstream deadlines, then derives **total slack** = latest start − earliest start:
|
|
126
|
+
|
|
127
|
+
- **0 slack** → the item is on the critical path; any slip delays the project.
|
|
128
|
+
- **positive slack** → the item can slip that many days harmlessly.
|
|
129
|
+
- **negative slack** → the item's required start (to hit a downstream deadline) is *before* its earliest feasible start. The plan is **already late**. These items are listed in a `WARNING:` block on stderr by both `pm gantt` and `pm gantt export`, and flagged per-task in the JSON result (`tasks[].slack_days`, `tasks[].infeasible`, plus `infeasibleCount` / `warnings`).
|
|
130
|
+
|
|
131
|
+
### ASCII TODAY marker
|
|
132
|
+
|
|
133
|
+
The terminal chart draws a `▼TODAY` caret under the week column that contains the current date (parity with the Mermaid `%% today:` marker), shown only when "today" falls inside the chart window.
|
|
134
|
+
|
|
135
|
+
### HTML summary & assignee workload
|
|
136
|
+
|
|
137
|
+
The HTML export ends with a **Summary** footer — project span (start → end and day count), critical-path length, and total task-days. When exported with `--group-by assignee`, an additional **Assignee workload** table lists each assignee's total task-days (descending).
|
|
138
|
+
|
|
103
139
|
## How it works
|
|
104
140
|
|
|
105
|
-
- **Columns** — each column is one calendar week, starting from the Monday of the anchor week (`--from`, or the current week by default).
|
|
106
|
-
- **Rows** — items are grouped by the chosen field; items with no value land in a `(no milestone)` / `(no type)` / `(unassigned)` / `(no tag)` group.
|
|
107
|
-
- **Bars** — a bar spans from the item's `created_at` to its `deadline`. If only a deadline is known, a one-week bar ending on it is shown. Items with no dates at all are shown as `··` (undated).
|
|
108
|
-
- **
|
|
141
|
+
- **Columns** — each column is one calendar week, starting from the Monday of the anchor week (`--from`, or the current week by default). `--to` clips the window and derives the week count.
|
|
142
|
+
- **Rows** — items are grouped by the chosen field; items with no value land in a `(no milestone)` / `(no sprint)` / `(no release)` / `(no type)` / `(unassigned)` / `(no tag)` group. `--group-by status` groups by lifecycle status.
|
|
143
|
+
- **Bars (default)** — a bar spans from the item's `created_at` to its `deadline`. If only a deadline is known, a one-week bar ending on it is shown. Items with no dates at all are shown as `··` (undated).
|
|
144
|
+
- **Bars (`--schedule`)** — a forward pass schedules each item to start the day after the latest item it is `blocked_by` finishes. Duration comes from `estimated_minutes` (8h workday, rounded up to whole days) or `--default-duration`. Items with a reachable `deadline` are back-anchored to end on it. The chain ordering, not the calendar, drives the bars — a late chain can push a dependent past its deadline, which is exactly what a schedule should expose.
|
|
145
|
+
- **Critical path** — with `--critical-path` (or `--critical-only`), the longest chain of `dependencies` edges is computed (cycle-safe), its items prefixed with `*` and drawn with `▓▓` bars. Ties break toward the chain with the latest final deadline. `--critical-only` drops every off-path item.
|
|
109
146
|
- **Symbols** — `██` = in_progress/blocked, `░░` = open/planned, `▓▓` = critical path, `··` = undated.
|
|
110
147
|
|
|
111
148
|
## Item fields used
|
|
@@ -116,13 +153,15 @@ Items are read via `pm list-all --json --include-body`.
|
|
|
116
153
|
|-------|----------|
|
|
117
154
|
| `title` | Row label |
|
|
118
155
|
| `status` | Bar style and status symbol; also used with `--status` filter |
|
|
119
|
-
| `deadline` (or legacy `due_date`) | Right edge of the bar |
|
|
120
|
-
| `created_at` | Left edge of the bar |
|
|
121
|
-
| `
|
|
156
|
+
| `deadline` (or legacy `due_date`) | Right edge of the bar; back-anchor target under `--schedule` |
|
|
157
|
+
| `created_at` | Left edge of the bar (default mode) |
|
|
158
|
+
| `estimated_minutes` | Task duration under `--schedule` (8h workday) |
|
|
159
|
+
| `sprint` / `release` / `milestone` | Group key for `--group-by milestone` (default), `sprint`, `release` |
|
|
122
160
|
| `type` | Group key for `--group-by type` |
|
|
123
161
|
| `assignee` | Group key for `--group-by assignee` |
|
|
162
|
+
| `status` | Group key for `--group-by status`; also bar style |
|
|
124
163
|
| `tags[0]` | Group key for `--group-by tag` |
|
|
125
|
-
| `dependencies[].id` | Edges used
|
|
164
|
+
| `dependencies[].id` (kind `blocked_by`) | Edges used for scheduling and the critical path |
|
|
126
165
|
|
|
127
166
|
## Development
|
|
128
167
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,170 @@
|
|
|
1
1
|
import type { ExtensionApi } from "@unbrained/pm-cli/sdk";
|
|
2
|
+
interface PmDependency {
|
|
3
|
+
id: string;
|
|
4
|
+
kind?: string;
|
|
5
|
+
created_at?: string;
|
|
6
|
+
}
|
|
7
|
+
interface PmItem {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
body?: string;
|
|
11
|
+
status: "open" | "in_progress" | "blocked" | "closed" | "canceled" | "draft";
|
|
12
|
+
priority?: string | number;
|
|
13
|
+
type?: string;
|
|
14
|
+
tags?: string[];
|
|
15
|
+
meta?: Record<string, unknown>;
|
|
16
|
+
due_date?: string;
|
|
17
|
+
deadline?: string;
|
|
18
|
+
milestone?: string;
|
|
19
|
+
sprint?: string;
|
|
20
|
+
release?: string;
|
|
21
|
+
assignee?: string;
|
|
22
|
+
estimated_minutes?: number;
|
|
23
|
+
dependencies?: PmDependency[];
|
|
24
|
+
created_at?: string;
|
|
25
|
+
}
|
|
26
|
+
type GroupBy = "milestone" | "sprint" | "release" | "tag" | "type" | "assignee" | "status";
|
|
27
|
+
type StatusFilter = "open" | "in_progress" | "blocked" | "closed" | "canceled" | "draft" | "all";
|
|
28
|
+
interface GanttOptions {
|
|
29
|
+
weeks: number;
|
|
30
|
+
groupBy: GroupBy;
|
|
31
|
+
statusFilter: StatusFilter;
|
|
32
|
+
today: Date;
|
|
33
|
+
criticalPath: boolean;
|
|
34
|
+
criticalOnly: boolean;
|
|
35
|
+
schedule: boolean;
|
|
36
|
+
defaultDuration: number;
|
|
37
|
+
}
|
|
38
|
+
interface GanttRow {
|
|
39
|
+
group: string;
|
|
40
|
+
item: PmItem;
|
|
41
|
+
startWeek: number | null;
|
|
42
|
+
endWeek: number | null;
|
|
43
|
+
critical: boolean;
|
|
44
|
+
start: Date | null;
|
|
45
|
+
end: Date | null;
|
|
46
|
+
slackDays: number | null;
|
|
47
|
+
infeasible: boolean;
|
|
48
|
+
}
|
|
49
|
+
declare function getGroupKey(item: PmItem, groupBy: GroupBy): string;
|
|
50
|
+
/**
|
|
51
|
+
* Compute the critical path: the longest chain of dependency edges across the
|
|
52
|
+
* given items. Edges point from an item to each of its `dependencies[].id`
|
|
53
|
+
* (i.e. "depends on" / "blocked-by"), so the chain is ordered prerequisite →
|
|
54
|
+
* dependent. Cycles are guarded against. Returns the set of item ids that lie
|
|
55
|
+
* on the longest chain (ties resolved by the chain whose final node has the
|
|
56
|
+
* latest deadline, then by lexical id for determinism).
|
|
57
|
+
*/
|
|
58
|
+
declare function computeCriticalPath(items: PmItem[]): Set<string>;
|
|
59
|
+
interface ScheduleEntry {
|
|
60
|
+
start: Date;
|
|
61
|
+
end: Date;
|
|
62
|
+
durationDays: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Derive an item's duration in whole days from its estimate, falling back to
|
|
66
|
+
* `defaultDays`. `estimated_minutes` is the pm-canonical estimate field; it is
|
|
67
|
+
* converted via an 8h working day and rounded up to at least one day.
|
|
68
|
+
*/
|
|
69
|
+
declare function itemDurationDays(item: PmItem, defaultDays: number): number;
|
|
70
|
+
/**
|
|
71
|
+
* Forward-schedule items from `anchor`, honoring `blocked_by` dependencies:
|
|
72
|
+
* an item cannot start until every prerequisite it depends on has finished.
|
|
73
|
+
* Items with a `deadline` but no scheduling pressure are pulled so they END on
|
|
74
|
+
* their deadline (back-anchored) when that is later than the dependency-driven
|
|
75
|
+
* start; otherwise the dependency chain wins (a late chain can push past a
|
|
76
|
+
* deadline, which is exactly what a schedule should surface).
|
|
77
|
+
*
|
|
78
|
+
* Returns a map of item id → { start, end, durationDays }. Cycles are
|
|
79
|
+
* broken deterministically (a node already on the recursion stack contributes
|
|
80
|
+
* no constraint, mirroring the critical-path cycle guard). Exported for tests.
|
|
81
|
+
*/
|
|
82
|
+
declare function computeSchedule(items: PmItem[], anchor: Date, defaultDays: number): Map<string, ScheduleEntry>;
|
|
83
|
+
interface SlackEntry {
|
|
84
|
+
/** Total slack in whole days: how long the item can slip without delaying
|
|
85
|
+
* the project (or breaching a downstream deadline). 0 = critical. */
|
|
86
|
+
slackDays: number;
|
|
87
|
+
/** Latest start the item can begin without delaying the project / a deadline. */
|
|
88
|
+
latestStart: Date;
|
|
89
|
+
/** Latest finish (inclusive last work day) consistent with downstream deadlines. */
|
|
90
|
+
latestFinish: Date;
|
|
91
|
+
/** True when the latest feasible start is BEFORE the forward-pass earliest
|
|
92
|
+
* start — i.e. the plan is already late for a downstream deadline. */
|
|
93
|
+
infeasible: boolean;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Compute total slack/float for every scheduled item via a backward pass over
|
|
97
|
+
* the dependency graph (CPM). The forward pass (`computeSchedule`) gives each
|
|
98
|
+
* item's earliest start/finish (ES/EF). This computes the latest start/finish
|
|
99
|
+
* (LS/LF):
|
|
100
|
+
*
|
|
101
|
+
* - successors(node) = items that list `node` as a (gating) dependency.
|
|
102
|
+
* - A node's latest finish is the day before the earliest latest-start of any
|
|
103
|
+
* of its successors, and never later than the project's latest finish.
|
|
104
|
+
* - A node with its OWN `deadline` is additionally capped so it finishes on or
|
|
105
|
+
* before that deadline.
|
|
106
|
+
* - The project's latest finish is the maximum forward-pass EF across all
|
|
107
|
+
* items (the computed project end) — leaves with no deadline simply inherit
|
|
108
|
+
* it, giving them 0 slack only if they actually end the project.
|
|
109
|
+
*
|
|
110
|
+
* total slack = latestStart − earliestStart (in whole days). Items on the
|
|
111
|
+
* critical path have ~0 slack. `infeasible` flags items whose latest feasible
|
|
112
|
+
* start is before their earliest possible start (the deadline cannot be met).
|
|
113
|
+
*
|
|
114
|
+
* Exported for tests.
|
|
115
|
+
*/
|
|
116
|
+
declare function computeSlack(items: PmItem[], schedule: Map<string, ScheduleEntry>): Map<string, SlackEntry>;
|
|
117
|
+
declare function buildRows(items: PmItem[], opts: GanttOptions, windowStart: Date): GanttRow[];
|
|
118
|
+
declare function renderGantt(rows: GanttRow[], opts: GanttOptions, windowStart: Date): string;
|
|
119
|
+
declare function renderMermaid(rows: GanttRow[], opts: GanttOptions, windowStart: Date): string;
|
|
120
|
+
/**
|
|
121
|
+
* Render rows as a CSV schedule:
|
|
122
|
+
* id,title,start,end,duration_days,slack_days,deps,status.
|
|
123
|
+
* `start`/`end` use the row's computed bounds (scheduler- or date-derived);
|
|
124
|
+
* `duration_days` is the inclusive day span, blank when undated. `slack_days`
|
|
125
|
+
* is the backward-pass total float (only populated under `--schedule`; blank
|
|
126
|
+
* otherwise) — 0 marks a critical-path item, negative means the plan is already
|
|
127
|
+
* late for a downstream deadline. `deps` is a space-separated list of blocking
|
|
128
|
+
* dependency ids. Exported for tests.
|
|
129
|
+
*/
|
|
130
|
+
declare function renderCsv(rows: GanttRow[]): string;
|
|
131
|
+
interface GanttSummary {
|
|
132
|
+
/** Earliest start across all dated rows (null when none are dated). */
|
|
133
|
+
projectStart: Date | null;
|
|
134
|
+
/** Latest end across all dated rows (null when none are dated). */
|
|
135
|
+
projectEnd: Date | null;
|
|
136
|
+
/** Calendar span in days from projectStart..projectEnd inclusive (0 if undated). */
|
|
137
|
+
spanDays: number;
|
|
138
|
+
/** Number of items on the critical path. */
|
|
139
|
+
criticalPathLength: number;
|
|
140
|
+
/** Sum of every row's inclusive duration in days. */
|
|
141
|
+
totalTaskDays: number;
|
|
142
|
+
/** Per-group total task-days (e.g. per-assignee workload), sorted descending. */
|
|
143
|
+
workload: {
|
|
144
|
+
group: string;
|
|
145
|
+
days: number;
|
|
146
|
+
}[];
|
|
147
|
+
}
|
|
148
|
+
/** Compute the footer summary stats shared by the HTML export. */
|
|
149
|
+
declare function computeSummary(rows: GanttRow[]): GanttSummary;
|
|
150
|
+
declare function renderHtml(rows: GanttRow[], opts: GanttOptions, windowStart: Date): string;
|
|
151
|
+
interface ResolvedOptions extends GanttOptions {
|
|
152
|
+
windowStart: Date;
|
|
153
|
+
}
|
|
154
|
+
declare function resolveGanttOptions(options: Record<string, unknown>): ResolvedOptions;
|
|
155
|
+
/**
|
|
156
|
+
* Collect infeasible-deadline warnings from scheduled rows. A row is infeasible
|
|
157
|
+
* when its backward-pass latest-feasible start is before its earliest possible
|
|
158
|
+
* start — the plan is already late for a downstream deadline. Returns one
|
|
159
|
+
* human-readable line per affected item (empty when none / not scheduling).
|
|
160
|
+
*/
|
|
161
|
+
declare function infeasibleWarnings(rows: GanttRow[]): string[];
|
|
2
162
|
declare const _default: {
|
|
3
163
|
name: string;
|
|
4
164
|
version: string;
|
|
5
165
|
activate(api: ExtensionApi): void;
|
|
6
166
|
};
|
|
7
167
|
export default _default;
|
|
168
|
+
export { computeSchedule, computeSlack, computeCriticalPath, computeSummary, itemDurationDays, renderCsv, renderMermaid, renderGantt, renderHtml, infeasibleWarnings, buildRows, resolveGanttOptions, getGroupKey, };
|
|
169
|
+
export type { PmItem, GanttOptions, GanttRow, GroupBy, ScheduleEntry, SlackEntry, GanttSummary };
|
|
8
170
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiE,YAAY,EAAuB,MAAM,uBAAuB,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiE,YAAY,EAAuB,MAAM,uBAAuB,CAAC;AAkC9I,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CA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