@critical-path/mcp 0.18.0 → 0.19.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/CHANGELOG.md +671 -0
- package/README.md +73 -25
- package/dist/bin/args.d.ts +8 -0
- package/dist/bin/args.d.ts.map +1 -1
- package/dist/bin/args.js +20 -0
- package/dist/bin/args.js.map +1 -1
- package/dist/bin/cli.js +37 -3
- package/dist/bin/cli.js.map +1 -1
- package/dist/bin/skills.d.ts +15 -0
- package/dist/bin/skills.d.ts.map +1 -0
- package/dist/bin/skills.js +28 -0
- package/dist/bin/skills.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/server/index.d.ts +6 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +27 -13
- package/dist/server/index.js.map +1 -1
- package/dist/skills/catalog.generated.d.ts +3 -0
- package/dist/skills/catalog.generated.d.ts.map +1 -0
- package/dist/skills/catalog.generated.js +33 -0
- package/dist/skills/catalog.generated.js.map +1 -0
- package/dist/skills/index.d.ts +13 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +7 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/tools/definitions.d.ts +82 -8
- package/dist/tools/definitions.d.ts.map +1 -1
- package/dist/tools/definitions.js +296 -52
- package/dist/tools/definitions.js.map +1 -1
- package/dist/tools/instructions.d.ts +10 -0
- package/dist/tools/instructions.d.ts.map +1 -0
- package/dist/tools/instructions.js +48 -0
- package/dist/tools/instructions.js.map +1 -0
- package/dist/tools/outputs.d.ts +2311 -0
- package/dist/tools/outputs.d.ts.map +1 -0
- package/dist/tools/outputs.js +184 -0
- package/dist/tools/outputs.js.map +1 -0
- package/dist/web/index.d.ts +16 -0
- package/dist/web/index.d.ts.map +1 -1
- package/dist/web/index.js +13 -12
- package/dist/web/index.js.map +1 -1
- package/package.json +14 -8
- package/skills/analyze-schedule/SKILL.md +42 -0
- package/skills/investigate-task/SKILL.md +41 -0
- package/skills/plan-capacity/SKILL.md +32 -0
- package/skills/plan-project/SKILL.md +45 -0
- package/skills/report-status/SKILL.md +46 -0
- package/skills/triage-tasks/SKILL.md +41 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,671 @@
|
|
|
1
|
+
# @critical-path/mcp
|
|
2
|
+
|
|
3
|
+
## 0.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e2f997c: Help agents find and use the right tools.
|
|
8
|
+
|
|
9
|
+
- **Toolsets:** tools are grouped into `core`, `collaboration`, `scheduling`, `analytics` and `guidance`. `createCriticalPathMcpServer`, `registerWebMcpTools`, `useWebMCP` and `createWebMcpState` accept `toolsets` and `readOnly` alongside `tools`; the CLI takes `--toolsets`, `--tools` and `--read-only`. `selectTools()` and `TOOLSETS` are exported.
|
|
10
|
+
- **Server instructions:** the MCP server sends `instructions` on connect (data model, id flow, which tool fits which request, skill index), built from the exposed tools by `buildAgentInstructions()`. WebMCP returns them as `handle.instructions`; `useWebMCP` and `WebMcpState` expose `instructions`.
|
|
11
|
+
- **Agent skills:** six bundled playbooks (`plan-project`, `triage-tasks`, `analyze-schedule`, `report-status`, `plan-capacity`, `investigate-task`) in the Agent Skills `SKILL.md` format. Agents load them with the new `get_skill` tool or the `criticalpath://skills/{name}` resources; `npx @critical-path/mcp skills install` writes them to `.claude/skills`. `SKILLS` and `getSkill()` are exported and the files ship in the package.
|
|
12
|
+
- **Descriptions** for every tool say when to use it, what it returns and which sibling to use instead; every argument is described. Unit tests lint descriptions and skills, and `pnpm --filter @critical-path/mcp eval:tools` measures tool choice with Claude.
|
|
13
|
+
- **Structured results:** every tool declares an `outputSchema` and returns `structuredContent`. Errors carry recovery hints (for example, find valid ids with `list_tasks`).
|
|
14
|
+
- **Annotations:** tools send `readOnlyHint`, `destructiveHint`, `idempotentHint` and `openWorldHint`.
|
|
15
|
+
- `useWebMCP` no longer re-registers its tools on every render when `tools` is passed as an inline array.
|
|
16
|
+
|
|
17
|
+
**BREAKING:** `list_projects`, `list_deliverables` and `list_comments` return `{ projects }`, `{ deliverables }` and `{ comments }` instead of arrays. Lookups that find nothing throw instead of returning `null`. Unknown names in `tools` throw. `ToolDefinition.annotations` uses the standard MCP names (`requiresConfirmation` is now `destructiveHint`), and `defineTool` requires `toolset` and `outputZodSchema`. See UPGRADING.md.
|
|
18
|
+
- 202a61d: Agents can now order work. New `add_dependency` and `remove_dependency` tools (core toolset) make a task wait for another, identified by the two task ids; adding an existing link returns it, a link that would form a loop is refused with a recovery hint, and removing a missing link returns `{ removed: 0 }`. `get_task` takes `includeDependencies: true` to return `dependencies: { dependsOn, dependents }` with each linked task's id, title, status and link type. The `plan-project` skill now creates the dependencies in its plan instead of asking the user to add them, and `analyze-schedule` and `investigate-task` read them from `get_task`. Hosts that expose the `core` toolset get the two new tools.
|
|
19
|
+
|
|
20
|
+
## 0.18.1
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- da8c69b: Packages now include `CHANGELOG.md`, so agents and developers can read breaking changes in `node_modules`. READMEs link the new upgrade guide (`UPGRADING.md`, also at /getting-started/upgrading/ on the docs site), which coding agents in consumer apps can follow to migrate on their own.
|
|
25
|
+
- Updated dependencies [da8c69b]
|
|
26
|
+
- @critical-path/core@0.51.1
|
|
27
|
+
- @critical-path/client@0.25.1
|
|
28
|
+
|
|
29
|
+
## 0.18.0
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- a7e9f4a: Tool fixes for the CLI, client, MCP and analysis queries.
|
|
34
|
+
|
|
35
|
+
- **BREAKING (server):** workload and ladder query parameters are validated with the new `WorkloadQuerySchema` and `LadderQuerySchema` (exported from core). Unknown or invalid values (e.g. `interval=fortnight`, `defaultWeeklyCapacityHours=abc`) return `400` instead of silently producing odd results.
|
|
36
|
+
- CLI `block`, `clarify` and `deliverable` merge into a task's existing `customFields` instead of replacing them. `deliverable` no longer swallows API errors. `subtask list` asks the server for the parent's subtasks instead of downloading every task. The CLI warns when sending an API key over plain HTTP to a remote host.
|
|
37
|
+
- CLI `propose` and `subtask`, `client.createSubtask` and MCP `create_task` no longer force `draft` or `todo`. New tasks use the project workflow's default status unless one is given.
|
|
38
|
+
- MCP `list_tasks` filters by `deliverableId`, `containerId` and `parentId` (`'none'` for top-level tasks). Resources and prompts wait for `engine.ready` and include at most 200 tasks. WebMCP sends standard `readOnlyHint`/`destructiveHint` annotations and registers nothing when its signal is already aborted.
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- Updated dependencies [a7e9f4a]
|
|
43
|
+
- @critical-path/core@0.51.0
|
|
44
|
+
- @critical-path/client@0.25.0
|
|
45
|
+
|
|
46
|
+
## 0.17.2
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- Updated dependencies [7896d0d]
|
|
51
|
+
- @critical-path/core@0.50.0
|
|
52
|
+
- @critical-path/client@0.24.5
|
|
53
|
+
|
|
54
|
+
## 0.17.1
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- fc9740b: Require `@modelcontextprotocol/sdk` ^1.32.1, which fixes a high-severity advisory, and refresh vulnerable transitive dependencies (`proxy-addr`, `ip-address`, `fast-uri`). CI and release workflows are hardened; there are no other package changes.
|
|
59
|
+
|
|
60
|
+
## 0.17.0
|
|
61
|
+
|
|
62
|
+
### Minor Changes
|
|
63
|
+
|
|
64
|
+
- bbc4305: `customFields` on every entity.
|
|
65
|
+
|
|
66
|
+
- Projects, workflows, teams, containers, iterations, comments, attachments, time entries, dependencies and webhooks now accept and return an optional `customFields` JSON object, as tasks and deliverables already did. Because request bodies are strict, this is the supported place for your own data. Task custom fields remain validated against `customFieldDefinitions`; on other entities any JSON object is stored as-is, and updates replace the whole object.
|
|
67
|
+
- `SQLiteStore` keeps it in each table's JSON `extra` column, which now exists on every table. The storage conformance suite round-trips `customFields` on every entity, so custom adapters must too.
|
|
68
|
+
- `UpdateIterationSchema` and `UpdateCommentSchema` are now strict, so unknown keys get `400` instead of being silently dropped.
|
|
69
|
+
- MCP `create_project`, `create_task`, `update_task`, `create_deliverable` and `add_comment` accept `customFields`.
|
|
70
|
+
|
|
71
|
+
### Patch Changes
|
|
72
|
+
|
|
73
|
+
- Updated dependencies [bbc4305]
|
|
74
|
+
- @critical-path/core@0.49.0
|
|
75
|
+
- @critical-path/client@0.24.4
|
|
76
|
+
|
|
77
|
+
## 0.16.3
|
|
78
|
+
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- Updated dependencies [cb71e39]
|
|
82
|
+
- @critical-path/core@0.48.1
|
|
83
|
+
- @critical-path/client@0.24.3
|
|
84
|
+
|
|
85
|
+
## 0.16.2
|
|
86
|
+
|
|
87
|
+
### Patch Changes
|
|
88
|
+
|
|
89
|
+
- Updated dependencies [f151568]
|
|
90
|
+
- @critical-path/core@0.48.0
|
|
91
|
+
- @critical-path/client@0.24.2
|
|
92
|
+
|
|
93
|
+
## 0.16.1
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- Updated dependencies [fde5883]
|
|
98
|
+
- @critical-path/core@0.47.0
|
|
99
|
+
- @critical-path/client@0.24.1
|
|
100
|
+
|
|
101
|
+
## 0.16.0
|
|
102
|
+
|
|
103
|
+
### Minor Changes
|
|
104
|
+
|
|
105
|
+
- d82d168: Remaining effort and hidden work in critical path analysis.
|
|
106
|
+
|
|
107
|
+
- New `effort` option (`'estimate'` by default, or `'remaining'`), with a `criticalPathEffort` engine default. With `'remaining'`, in-progress tasks are scheduled for `max(0, estimate - loggedHours)`, divided by allocation. Available on both critical path methods, `?effort=`, the client and the MCP tools. `getTaskScheduledHours(task, effort)` takes the basis.
|
|
108
|
+
- New `includeHiddenWork` option for `calculatePortfolioCriticalPath` (`?includeHiddenWork=true`, client, MCP). It requires `workspace.manage`. Every other project in the caller's tenant then counts toward people's and teams' capacity without appearing in the results. Tasks from projects the caller cannot read appear only as `'hidden'`, and over-allocations are reported only when they involve a task in the results. `calculatePortfolioCPM` project inputs accept `background: 'visible' | 'hidden'`.
|
|
109
|
+
|
|
110
|
+
### Patch Changes
|
|
111
|
+
|
|
112
|
+
- Updated dependencies [d82d168]
|
|
113
|
+
- @critical-path/core@0.46.0
|
|
114
|
+
- @critical-path/client@0.24.0
|
|
115
|
+
|
|
116
|
+
## 0.15.0
|
|
117
|
+
|
|
118
|
+
### Minor Changes
|
|
119
|
+
|
|
120
|
+
- 3c08dd9: Critical path analysis across projects, and finished tasks take no time.
|
|
121
|
+
|
|
122
|
+
- New `engine.calculatePortfolioCriticalPath({ projectIds?, projectOrder?, ...options })` and `calculatePortfolioCPM`. They analyse several projects together. Each project keeps its own start and calendar, dependencies between projects are honoured, and with `calendars: 'assignee'` and `levelResources: true`, people and team pools are shared, so nobody is booked above capacity across projects. `projectOrder` ranks projects for levelling. The result has one analysis per project, the latest end, and the combined `overallocations`.
|
|
123
|
+
- Only projects the caller can read are included. Without `projectIds`, unreadable projects are left out; unreadable or unknown ids are rejected. Runs above `portfolioTaskLimit` (engine config, default 5000 tasks) are rejected.
|
|
124
|
+
- REST: `GET /portfolio/critical-path?projectIds=...&projectOrder=...`. Client: `calculatePortfolioCriticalPath`. MCP: `calculate_portfolio_critical_path`.
|
|
125
|
+
- **BREAKING (behaviour):** completed and canceled tasks now take no time in all critical path analysis and occupy nobody when levelling, so durations and dates reflect remaining work. New helpers: `isTaskFinished` and `getTaskScheduledHours`.
|
|
126
|
+
|
|
127
|
+
### Patch Changes
|
|
128
|
+
|
|
129
|
+
- Updated dependencies [3c08dd9]
|
|
130
|
+
- @critical-path/core@0.45.0
|
|
131
|
+
- @critical-path/client@0.23.0
|
|
132
|
+
|
|
133
|
+
## 0.14.2
|
|
134
|
+
|
|
135
|
+
### Patch Changes
|
|
136
|
+
|
|
137
|
+
- Updated dependencies [b3ef9c6]
|
|
138
|
+
- @critical-path/core@0.44.0
|
|
139
|
+
- @critical-path/client@0.22.3
|
|
140
|
+
|
|
141
|
+
## 0.14.1
|
|
142
|
+
|
|
143
|
+
### Patch Changes
|
|
144
|
+
|
|
145
|
+
- Updated dependencies [867cdae]
|
|
146
|
+
- @critical-path/core@0.43.1
|
|
147
|
+
- @critical-path/client@0.22.2
|
|
148
|
+
|
|
149
|
+
## 0.14.0
|
|
150
|
+
|
|
151
|
+
### Minor Changes
|
|
152
|
+
|
|
153
|
+
- efa342f: Partial task allocation.
|
|
154
|
+
|
|
155
|
+
- New `Task.allocation`, in (0, 1], default 1: the share of the assignee's time a task takes. Estimates are effort, so in critical path analysis (every mode) a task spans `effort / allocation` working hours. Results report `allocation` per task, and `durationHours` is the elapsed span. New helpers: `getTaskAllocation` and `getTaskElapsedHours`.
|
|
156
|
+
- Resource levelling uses capacity. Each assignee has 100% at any moment, so fractional tasks can run side by side and others wait for enough capacity. Slack links only tasks that cannot overlap.
|
|
157
|
+
- Assignee-mode results include `overallocations`: periods where an assignee is booked above 100%, with the total and the tasks involved. Empty after levelling.
|
|
158
|
+
- Fix: `createTask` stored only an explicit list of fields; it now keeps `allocation`.
|
|
159
|
+
- MCP `create_task` and `update_task` accept `allocation`.
|
|
160
|
+
|
|
161
|
+
### Patch Changes
|
|
162
|
+
|
|
163
|
+
- Updated dependencies [efa342f]
|
|
164
|
+
- @critical-path/core@0.43.0
|
|
165
|
+
- @critical-path/client@0.22.1
|
|
166
|
+
|
|
167
|
+
## 0.13.0
|
|
168
|
+
|
|
169
|
+
### Minor Changes
|
|
170
|
+
|
|
171
|
+
- f548659: Resource levelling for critical path analysis.
|
|
172
|
+
|
|
173
|
+
- `calculateCriticalPath(id, { calendars: 'assignee', levelResources: true })`, or `criticalPathLevelResources` on the engine, schedules each assignee on one task at a time. Tasks are placed in priority order at the earliest time their predecessors are done and their assignee is free on their own calendar. Tasks are not split, and unassigned tasks are unconstrained.
|
|
174
|
+
- `levelingPriority`: `'slack'` (default: least unlevelled slack, then task priority), `'priority'`, `'dueDate'` or `'order'`.
|
|
175
|
+
- Slack and critical tasks are recomputed over dependencies plus each assignee's task sequence. Tasks report `levelingDelayHours` and `waitingOn`; the analysis reports `leveled` and `unleveledProjectEndDate`.
|
|
176
|
+
- REST: `?levelResources=true&levelingPriority=...` (400 for invalid values, or for levelling without `calendars=assignee`). Client options and MCP arguments to match.
|
|
177
|
+
|
|
178
|
+
### Patch Changes
|
|
179
|
+
|
|
180
|
+
- Updated dependencies [f548659]
|
|
181
|
+
- @critical-path/core@0.42.0
|
|
182
|
+
- @critical-path/client@0.22.0
|
|
183
|
+
|
|
184
|
+
## 0.12.1
|
|
185
|
+
|
|
186
|
+
### Patch Changes
|
|
187
|
+
|
|
188
|
+
- Updated dependencies [65044e3]
|
|
189
|
+
- @critical-path/core@0.41.0
|
|
190
|
+
- @critical-path/client@0.21.1
|
|
191
|
+
|
|
192
|
+
## 0.12.0
|
|
193
|
+
|
|
194
|
+
### Minor Changes
|
|
195
|
+
|
|
196
|
+
- cfd3215: Critical path analysis can schedule each task on its assignee's calendar.
|
|
197
|
+
|
|
198
|
+
- `calculateCriticalPath(projectId, { calendars: 'assignee' })`, or `criticalPathCalendars: 'assignee'` on the engine, schedules each task on the assignee's `schedule` (from `users`), then the task team's schedule, then the project calendar. Passes run on dates, so a Friday-off assignee pushes their successors to Monday. Slack is measured in each task's own working hours, and each task reports the `scheduleId` it used. Without a project start date, assignee mode starts today (UTC midnight). Calendars are evaluated in UTC.
|
|
199
|
+
- The default `'project'` mode is unchanged.
|
|
200
|
+
- REST: `GET /projects/:id/critical-path?calendars=assignee` (unknown values return 400). Client: `calculateCriticalPath(id, { calendars })`. MCP: a `calendars` argument on `calculate_critical_path`.
|
|
201
|
+
- New calendar helpers `nextWorkingTime` and `previousWorkingTime`, and `resolveTaskSchedule`.
|
|
202
|
+
|
|
203
|
+
### Patch Changes
|
|
204
|
+
|
|
205
|
+
- Updated dependencies [cfd3215]
|
|
206
|
+
- @critical-path/core@0.40.0
|
|
207
|
+
- @critical-path/client@0.21.0
|
|
208
|
+
|
|
209
|
+
## 0.11.11
|
|
210
|
+
|
|
211
|
+
### Patch Changes
|
|
212
|
+
|
|
213
|
+
- Updated dependencies [c7ad4d4]
|
|
214
|
+
- @critical-path/core@0.39.0
|
|
215
|
+
- @critical-path/client@0.20.9
|
|
216
|
+
|
|
217
|
+
## 0.11.10
|
|
218
|
+
|
|
219
|
+
### Patch Changes
|
|
220
|
+
|
|
221
|
+
- Updated dependencies [8e52679]
|
|
222
|
+
- @critical-path/core@0.38.0
|
|
223
|
+
- @critical-path/client@0.20.8
|
|
224
|
+
|
|
225
|
+
## 0.11.9
|
|
226
|
+
|
|
227
|
+
### Patch Changes
|
|
228
|
+
|
|
229
|
+
- Updated dependencies [d4477b1]
|
|
230
|
+
- @critical-path/core@0.37.0
|
|
231
|
+
- @critical-path/client@0.20.7
|
|
232
|
+
|
|
233
|
+
## 0.11.8
|
|
234
|
+
|
|
235
|
+
### Patch Changes
|
|
236
|
+
|
|
237
|
+
- 85d9bb5: Publish only what consumers need.
|
|
238
|
+
|
|
239
|
+
- Packages no longer ship compiled tests or TypeScript sources (`files: ["dist", "!dist/**/*.test.*"]`). `@critical-path/core` goes from 330 files to 146.
|
|
240
|
+
- `exports` maps list `types` first, as TypeScript's resolution expects.
|
|
241
|
+
- Updated dependencies [85d9bb5]
|
|
242
|
+
- @critical-path/core@0.36.1
|
|
243
|
+
- @critical-path/client@0.20.6
|
|
244
|
+
|
|
245
|
+
## 0.11.7
|
|
246
|
+
|
|
247
|
+
### Patch Changes
|
|
248
|
+
|
|
249
|
+
- Updated dependencies [810d8d1]
|
|
250
|
+
- @critical-path/core@0.36.0
|
|
251
|
+
- @critical-path/client@0.20.5
|
|
252
|
+
|
|
253
|
+
## 0.11.6
|
|
254
|
+
|
|
255
|
+
### Patch Changes
|
|
256
|
+
|
|
257
|
+
- Updated dependencies [b13f7c4]
|
|
258
|
+
- @critical-path/core@0.35.0
|
|
259
|
+
- @critical-path/client@0.20.4
|
|
260
|
+
|
|
261
|
+
## 0.11.5
|
|
262
|
+
|
|
263
|
+
### Patch Changes
|
|
264
|
+
|
|
265
|
+
- Updated dependencies [1cc0d4c]
|
|
266
|
+
- @critical-path/core@0.34.0
|
|
267
|
+
- @critical-path/client@0.20.3
|
|
268
|
+
|
|
269
|
+
## 0.11.4
|
|
270
|
+
|
|
271
|
+
### Patch Changes
|
|
272
|
+
|
|
273
|
+
- Updated dependencies [aa94129]
|
|
274
|
+
- @critical-path/core@0.33.0
|
|
275
|
+
- @critical-path/client@0.20.2
|
|
276
|
+
|
|
277
|
+
## 0.11.3
|
|
278
|
+
|
|
279
|
+
### Patch Changes
|
|
280
|
+
|
|
281
|
+
- Updated dependencies [a3fe03d]
|
|
282
|
+
- @critical-path/core@0.32.0
|
|
283
|
+
- @critical-path/client@0.20.1
|
|
284
|
+
|
|
285
|
+
## 0.11.2
|
|
286
|
+
|
|
287
|
+
### Patch Changes
|
|
288
|
+
|
|
289
|
+
- Updated dependencies [40e5958]
|
|
290
|
+
- @critical-path/core@0.31.0
|
|
291
|
+
- @critical-path/client@0.20.0
|
|
292
|
+
|
|
293
|
+
## 0.11.1
|
|
294
|
+
|
|
295
|
+
### Patch Changes
|
|
296
|
+
|
|
297
|
+
- Updated dependencies [b453472]
|
|
298
|
+
- @critical-path/client@0.19.0
|
|
299
|
+
|
|
300
|
+
## 0.11.0
|
|
301
|
+
|
|
302
|
+
### Minor Changes
|
|
303
|
+
|
|
304
|
+
- cdb300a: Task filtering and pagination.
|
|
305
|
+
|
|
306
|
+
**@critical-path/core**
|
|
307
|
+
- New `engine.queryTasks(query)` and `engine.queryActivities(query)` return `Page<T>` (`{ items, nextCursor }`).
|
|
308
|
+
- Tasks are ordered oldest first, activities newest first, using keyset cursors on `createdAt` then `id`.
|
|
309
|
+
- Task filters: `status[]`, `priority[]`, `assigneeId` (also matches `assignees`), `iterationId`, `deliverableId`, `containerId`, `parentId` (`null` means top-level), `projectIds`.
|
|
310
|
+
- Results are limited to projects the actor can read.
|
|
311
|
+
- **BREAKING (storage adapters):** `queryTasks` and `queryActivities` are required. `SQLiteStore` filters and pages in SQL and adds indexes for tasks, activities, comments and dependencies. Helpers (`paginate`, `matchesTaskQuery`, cursors, `DEFAULT_PAGE_SIZE` / `MAX_PAGE_SIZE`) are exported for custom adapters.
|
|
312
|
+
|
|
313
|
+
**@critical-path/server**
|
|
314
|
+
- **BREAKING:** `GET /tasks` and `GET /activities` are paginated (default 100, max 500) and return `nextCursor`. `GET /tasks` accepts the filters above as query parameters. Unknown parameters return `400`.
|
|
315
|
+
|
|
316
|
+
**@critical-path/client**
|
|
317
|
+
- `getTasks` and `getActivities` follow pagination and still return everything. New `queryTasks` and `queryActivities` return single pages.
|
|
318
|
+
|
|
319
|
+
**@critical-path/mcp**
|
|
320
|
+
- **BREAKING:** `list_tasks` returns `{ tasks, nextCursor }` and accepts `iterationId`, `limit` and `cursor`. It now filters in the store instead of loading every task.
|
|
321
|
+
|
|
322
|
+
### Patch Changes
|
|
323
|
+
|
|
324
|
+
- Updated dependencies [cdb300a]
|
|
325
|
+
- @critical-path/core@0.30.0
|
|
326
|
+
- @critical-path/client@0.18.0
|
|
327
|
+
|
|
328
|
+
## 0.10.4
|
|
329
|
+
|
|
330
|
+
### Patch Changes
|
|
331
|
+
|
|
332
|
+
- Updated dependencies [a019d37]
|
|
333
|
+
- @critical-path/core@0.29.0
|
|
334
|
+
- @critical-path/client@0.17.0
|
|
335
|
+
|
|
336
|
+
## 0.10.3
|
|
337
|
+
|
|
338
|
+
### Patch Changes
|
|
339
|
+
|
|
340
|
+
- 4fbbc40: Complete the plugin system.
|
|
341
|
+
|
|
342
|
+
**@critical-path/core**
|
|
343
|
+
- `plugin.init(engine)` now runs at startup. `engine.ready` resolves after seeding and every plugin's `init`; init failures reject `ready`.
|
|
344
|
+
- **BREAKING:** `customFieldTypes` is now `CustomFieldType[]` (`{ type, label?, validate(value, definition) }`), not unused definitions. Projects may use registered types in `customFieldDefinitions`; unknown types are rejected on project create and update. New `validateCustomFieldDefinitions`, and `validateCustomFieldValues` accepts the registered types.
|
|
345
|
+
- **BREAKING:** before-hook output is now validated (workflow transitions, custom fields) like caller input. Hooks cannot change a task's `projectId` (rejected on create, ignored on update), `id` or `createdAt`.
|
|
346
|
+
- After-hook errors are logged with the plugin id instead of failing an already-stored write.
|
|
347
|
+
- **BREAKING:** `beforeTaskDelete` and `afterTaskDelete` receive the task as a second argument.
|
|
348
|
+
- **BREAKING:** required custom fields are enforced even when `customFields` is omitted.
|
|
349
|
+
- New plugin `routes` and `middleware` types (`PluginRoute`, `PluginMiddleware`, `PluginRequestContext`).
|
|
350
|
+
|
|
351
|
+
**@critical-path/server**
|
|
352
|
+
- Serves plugin `routes` (with `:param` patterns) before built-in routes, and runs plugin `middleware` around every routed request after authentication. Handlers receive the caller's `withActor` engine.
|
|
353
|
+
- Awaits `engine.ready` before handling requests.
|
|
354
|
+
|
|
355
|
+
**@critical-path/mcp**
|
|
356
|
+
- Awaits `engine.ready` before running tools.
|
|
357
|
+
- Updated dependencies [4fbbc40]
|
|
358
|
+
- @critical-path/core@0.28.0
|
|
359
|
+
- @critical-path/client@0.16.1
|
|
360
|
+
|
|
361
|
+
## 0.10.2
|
|
362
|
+
|
|
363
|
+
### Patch Changes
|
|
364
|
+
|
|
365
|
+
- Updated dependencies [1a516bd]
|
|
366
|
+
- @critical-path/core@0.27.0
|
|
367
|
+
- @critical-path/client@0.16.0
|
|
368
|
+
|
|
369
|
+
## 0.10.1
|
|
370
|
+
|
|
371
|
+
### Patch Changes
|
|
372
|
+
|
|
373
|
+
- 719e844: Role-based authorization and multi-tenancy.
|
|
374
|
+
|
|
375
|
+
**@critical-path/core**
|
|
376
|
+
- New `authorize` engine option and `createRolePolicy()`:
|
|
377
|
+
- Project roles (`viewer`, `contributor`, `project_manager`, `admin`) come from `project.members`.
|
|
378
|
+
- Workspace superusers come from `actor.roles`.
|
|
379
|
+
- Authors manage their own comments and attachments.
|
|
380
|
+
- Checks run on `withActor` views. Unreadable or cross-tenant projects behave as not found, denied actions throw the new `ForbiddenError`, and lists are filtered.
|
|
381
|
+
- `Actor` gains `tenantId` and `roles`. Projects, workflows and teams gain `tenantId`, stamped from the actor and never accepted from payloads. Reads are scoped to the actor's tenant, including the default-workflow fallback.
|
|
382
|
+
- **BREAKING:** `Project.members` is now `{ userId, role }[]` (was `string[]`). Project creators become `admin` members.
|
|
383
|
+
- New `engine.getActivities()` and `engine.getTimeEntries()`, which respect authorization.
|
|
384
|
+
- **BREAKING:** on views, presigned uploads require `projectId` and are confined to `projects/<projectId>/`. The presign request schema now requires `projectId`.
|
|
385
|
+
- `SQLiteStore` persists `tenantId` (migrated automatically).
|
|
386
|
+
|
|
387
|
+
**@critical-path/server**
|
|
388
|
+
- `RequestContext` gains `tenantId` and `roles`, which are passed to the actor. `ForbiddenError` maps to `403`. Activities and time entries are read through the engine.
|
|
389
|
+
|
|
390
|
+
**@critical-path/client / @critical-path/mcp**
|
|
391
|
+
- Rebuilt for the new presign `projectId` requirement and project member shape.
|
|
392
|
+
- Updated dependencies [719e844]
|
|
393
|
+
- @critical-path/core@0.26.0
|
|
394
|
+
- @critical-path/client@0.15.1
|
|
395
|
+
|
|
396
|
+
## 0.10.0
|
|
397
|
+
|
|
398
|
+
### Minor Changes
|
|
399
|
+
|
|
400
|
+
- fd79762: **BREAKING:** strict request bodies, no identity in payloads, and CORS off by default.
|
|
401
|
+
|
|
402
|
+
**@critical-path/core**
|
|
403
|
+
- Request schemas are strict: unknown keys, server-assigned fields and identity fields are rejected instead of stripped.
|
|
404
|
+
- Identity is never read from payloads. `updateTask` no longer reads `actorId`/`actorName`/`actorType`/`actor` from the update object; pass them as the third `options` argument or use `withActor`. `addComment`, `addCommentReaction`, `removeCommentReaction` and `createAttachment` take the actor from `withActor`, falling back to an optional `authorId`/`userId`/`uploaderId`, then `'system'`.
|
|
405
|
+
- Schemas export request body types (`CreateTaskBody`, `UpdateTaskBody`, ...).
|
|
406
|
+
|
|
407
|
+
**@critical-path/server**
|
|
408
|
+
- Bodies containing unknown, server-assigned or identity fields return `400`.
|
|
409
|
+
- Every request runs as the `getContext` user, or `ANONYMOUS_ACTOR` (`anonymous`). Authors of comments, reactions, attachments and time entries are no longer accepted from bodies.
|
|
410
|
+
- `DELETE /comments/:id/reactions` takes `?emoji=` only.
|
|
411
|
+
- CORS is off by default (`cors: false`). Pass `cors: { origins: [...] }` to allow cross-origin browsers.
|
|
412
|
+
|
|
413
|
+
**@critical-path/client**
|
|
414
|
+
- Method parameters use the server's body types, so identity fields no longer type-check. `addCommentReaction`/`removeCommentReaction` take `{ emoji }`; `addTodo`/`toggleTodo` drop the actor options argument.
|
|
415
|
+
- New `updateProject`, `deleteProject` and `addDependency`. `uploadAttachmentFile` base64-encodes binary data (previously it sent unusable JSON for `Uint8Array`/`ArrayBuffer`).
|
|
416
|
+
- CLI: `--author`, `--actor-id`, `--actor-name`, `--agent-name` and `CRITICAL_PATH_AUTHOR_ID`/`ACTOR_ID`/`AGENT_NAME` are removed; identity comes from the `--key` token via the server's `getContext`.
|
|
417
|
+
|
|
418
|
+
**@critical-path/mcp**
|
|
419
|
+
- Tool arguments are strict: undeclared arguments return an `isError` result.
|
|
420
|
+
- `add_comment` no longer takes `authorId`. With an `engine`, writes are attributed to the new `actor` server option (default `DEFAULT_MCP_ACTOR`).
|
|
421
|
+
|
|
422
|
+
**@critical-path/react / @critical-path/svelte**
|
|
423
|
+
- `addReaction`/`removeReaction` take `(commentId, emoji)`; comment and attachment inputs no longer accept `authorId`/`uploaderId`. Task, comment and deliverable update parameters use the schema body types.
|
|
424
|
+
|
|
425
|
+
### Patch Changes
|
|
426
|
+
|
|
427
|
+
- Updated dependencies [fd79762]
|
|
428
|
+
- @critical-path/core@0.25.0
|
|
429
|
+
- @critical-path/client@0.15.0
|
|
430
|
+
|
|
431
|
+
## 0.9.0
|
|
432
|
+
|
|
433
|
+
### Minor Changes
|
|
434
|
+
|
|
435
|
+
- b54e22c: Validate request bodies with shared zod schemas and publish an OpenAPI document.
|
|
436
|
+
|
|
437
|
+
**@critical-path/core**
|
|
438
|
+
- New `@critical-path/core/schemas` subpath with create/update schemas for every resource and `parsePayload(schema, data)`. Kept off the package root so browser bundles do not include zod. `zod` is now a dependency of core.
|
|
439
|
+
- `ValidationError` carries an optional `issues: { path, message }[]`.
|
|
440
|
+
|
|
441
|
+
**@critical-path/server**
|
|
442
|
+
- All request bodies are validated. Invalid bodies return `400` with `issues`. Server-assigned fields (`id`, `createdAt`, `updatedAt`, task `key`, owning `projectId` on updates) and unknown keys are stripped, so a `PATCH` can no longer move a task to another project.
|
|
443
|
+
- Comments, reactions and attachments require an author unless `getContext` resolves the caller. Attachment `mimeType` and `sizeBytes` default to `application/octet-stream` and `0` for linked files.
|
|
444
|
+
- New `GET /openapi.json` and `buildOpenApiDocument()` (OpenAPI 3.1, request bodies generated from the validation schemas).
|
|
445
|
+
|
|
446
|
+
**@critical-path/mcp**
|
|
447
|
+
- Tool `inputSchema`s are generated from their zod schemas via the new `defineTool`, removing the hand-written JSON copies.
|
|
448
|
+
|
|
449
|
+
**@critical-path/svelte**
|
|
450
|
+
- Rebuilt with the bundled `@critical-path/mcp` changes.
|
|
451
|
+
|
|
452
|
+
### Patch Changes
|
|
453
|
+
|
|
454
|
+
- Updated dependencies [b54e22c]
|
|
455
|
+
- @critical-path/core@0.24.0
|
|
456
|
+
- @critical-path/client@0.14.9
|
|
457
|
+
|
|
458
|
+
## 0.8.0
|
|
459
|
+
|
|
460
|
+
### Minor Changes
|
|
461
|
+
|
|
462
|
+
- 6dd5529: Add request context, authentication hooks and actor attribution.
|
|
463
|
+
|
|
464
|
+
**@critical-path/core**
|
|
465
|
+
- New `engine.withActor(actor)` returns a per-request view that attributes every mutation (activity log, comment authors, reactions, time entries, attachment uploaders, task reporters) to the actor and ignores identity fields supplied in payloads. New exported `Actor` type.
|
|
466
|
+
|
|
467
|
+
**@critical-path/server**
|
|
468
|
+
- New router options, accepted by all adapters as a second argument: `getContext` (resolve the caller per request), `requireAuth` (401 without a user), `basePath` (exact mount path), and `cors` (origin allow-list, credentials, or `false`).
|
|
469
|
+
- With a resolved user, identity fields in request bodies (`actorId`, `authorId`, `userId`, `uploaderId`) are ignored. Reaction routes no longer require `userId` in the body when a user is resolved.
|
|
470
|
+
- `createSvelteKitHandler` options take `getContext(event)` so `event.locals` is available; `configOrRouter` is now optional.
|
|
471
|
+
- New `createUniversalHandler(config, options)` for Workers, Deno, Bun and Hono.
|
|
472
|
+
- `handleRequest(request, { getContext })` lets custom adapters supply a per-request resolver.
|
|
473
|
+
|
|
474
|
+
**@critical-path/mcp**
|
|
475
|
+
- CLI `--api` mode reads `CRITICAL_PATH_API_TOKEN` (sent as a Bearer token) and accepts repeatable `--header "Name: value"`, warning when credentials would go over plain http to a remote host.
|
|
476
|
+
|
|
477
|
+
### Patch Changes
|
|
478
|
+
|
|
479
|
+
- Updated dependencies [6dd5529]
|
|
480
|
+
- @critical-path/core@0.23.0
|
|
481
|
+
- @critical-path/client@0.14.8
|
|
482
|
+
|
|
483
|
+
## 0.7.0
|
|
484
|
+
|
|
485
|
+
### Minor Changes
|
|
486
|
+
|
|
487
|
+
- b243a37: Fix correctness and safety issues found in a code audit.
|
|
488
|
+
|
|
489
|
+
**@critical-path/core**
|
|
490
|
+
- `SQLiteStore` now loads `node:sqlite` via `process.getBuiltinModule`, fixing `require is not defined` when constructed from a filename in plain Node ESM.
|
|
491
|
+
- Removed the unused `better-sqlite3` runtime dependency.
|
|
492
|
+
- `engine.addDependency` now detects indirect cycles (e.g. A → B → C → D → A), not just cycles between direct neighbours.
|
|
493
|
+
- Fixed `generateKeyBetween` returning out-of-range, duplicate keys after repeated inserts after the same item. It now throws a `RangeError` when `a >= b`.
|
|
494
|
+
- Added `engine.deleteProject(id)`, which deletes a project's tasks through `deleteTask` and publishes a new `project.deleted` event and webhook.
|
|
495
|
+
- Added exported `ValidationError` and `NotFoundError` classes. `logTime` now rejects non-numeric hours.
|
|
496
|
+
|
|
497
|
+
**@critical-path/server**
|
|
498
|
+
- `DELETE /projects/:id`, `POST /tasks/:id/dependencies` and `POST /time-entries` now go through the engine, so cycle checks, hour validation, roll-ups, events and webhooks apply.
|
|
499
|
+
- Added `PATCH /projects/:id`.
|
|
500
|
+
- `DELETE` on a resource that does not exist now returns `404` instead of `200 { success: false }`.
|
|
501
|
+
- Malformed JSON returns `400`, validation errors `400`, `NotFoundError` `404`, and dependency cycles `409`. Unexpected errors return a generic `500` message outside development.
|
|
502
|
+
- `OPTIONS` preflight requests return `204` with CORS headers.
|
|
503
|
+
- New router/adapter options: `onError(error, request)` to report unexpected errors or return a custom response, and `exposeErrors` to include real messages in 500 responses (defaults to on only when `NODE_ENV === 'development'`).
|
|
504
|
+
- `createNextHandler` returns a callable handler that also exposes per-method properties, so `export { handler as GET }` works as documented.
|
|
505
|
+
|
|
506
|
+
**@critical-path/mcp**
|
|
507
|
+
- Tools excluded via the `tools` option can no longer be called by name.
|
|
508
|
+
- Tool arguments are validated with each tool's zod schema; undeclared fields are stripped.
|
|
509
|
+
- Tool listings include `title` and MCP `readOnlyHint` / `destructiveHint` annotations.
|
|
510
|
+
|
|
511
|
+
**@critical-path/svelte**
|
|
512
|
+
- Rebuilt with the bundled `@critical-path/mcp` WebMCP argument validation.
|
|
513
|
+
|
|
514
|
+
**@critical-path/client**
|
|
515
|
+
- Delete methods resolve to `false` when the server returns `404`, keeping their boolean contract with the new server behaviour.
|
|
516
|
+
|
|
517
|
+
### Patch Changes
|
|
518
|
+
|
|
519
|
+
- Updated dependencies [b243a37]
|
|
520
|
+
- @critical-path/core@0.22.0
|
|
521
|
+
- @critical-path/client@0.14.7
|
|
522
|
+
|
|
523
|
+
## 0.6.9
|
|
524
|
+
|
|
525
|
+
### Patch Changes
|
|
526
|
+
|
|
527
|
+
- Updated dependencies [f3301bf]
|
|
528
|
+
- @critical-path/core@0.21.0
|
|
529
|
+
- @critical-path/client@0.14.6
|
|
530
|
+
|
|
531
|
+
## 0.6.8
|
|
532
|
+
|
|
533
|
+
### Patch Changes
|
|
534
|
+
|
|
535
|
+
- Updated dependencies [8acf018]
|
|
536
|
+
- @critical-path/client@0.14.5
|
|
537
|
+
|
|
538
|
+
## 0.6.7
|
|
539
|
+
|
|
540
|
+
### Patch Changes
|
|
541
|
+
|
|
542
|
+
- Updated dependencies [b8a68dd]
|
|
543
|
+
- @critical-path/core@0.20.2
|
|
544
|
+
- @critical-path/client@0.14.4
|
|
545
|
+
|
|
546
|
+
## 0.6.6
|
|
547
|
+
|
|
548
|
+
### Patch Changes
|
|
549
|
+
|
|
550
|
+
- Updated dependencies [500b353]
|
|
551
|
+
- @critical-path/core@0.20.1
|
|
552
|
+
- @critical-path/client@0.14.3
|
|
553
|
+
|
|
554
|
+
## 0.6.5
|
|
555
|
+
|
|
556
|
+
### Patch Changes
|
|
557
|
+
|
|
558
|
+
- Updated dependencies [c83235b]
|
|
559
|
+
- @critical-path/core@0.20.0
|
|
560
|
+
- @critical-path/client@0.14.2
|
|
561
|
+
|
|
562
|
+
## 0.6.4
|
|
563
|
+
|
|
564
|
+
### Patch Changes
|
|
565
|
+
|
|
566
|
+
- Updated dependencies [f816145]
|
|
567
|
+
- @critical-path/core@0.19.1
|
|
568
|
+
- @critical-path/client@0.14.1
|
|
569
|
+
|
|
570
|
+
## 0.6.3
|
|
571
|
+
|
|
572
|
+
### Patch Changes
|
|
573
|
+
|
|
574
|
+
- Updated dependencies [f539a11]
|
|
575
|
+
- @critical-path/client@0.14.0
|
|
576
|
+
|
|
577
|
+
## 0.6.2
|
|
578
|
+
|
|
579
|
+
### Patch Changes
|
|
580
|
+
|
|
581
|
+
- Updated dependencies [1c85472]
|
|
582
|
+
- @critical-path/client@0.13.1
|
|
583
|
+
|
|
584
|
+
## 0.6.1
|
|
585
|
+
|
|
586
|
+
### Patch Changes
|
|
587
|
+
|
|
588
|
+
- Updated dependencies [b86b6fc]
|
|
589
|
+
- @critical-path/client@0.13.0
|
|
590
|
+
|
|
591
|
+
## 0.6.0
|
|
592
|
+
|
|
593
|
+
### Minor Changes
|
|
594
|
+
|
|
595
|
+
- 31a6dde: Promote task blocking state (`isBlocked: boolean` and `blockedReason: string | null`) to first-class fields on `Task`, `CreateTaskInput`, and `UpdateTaskInput`.
|
|
596
|
+
|
|
597
|
+
- **Domain Events**: Introduced `TaskBlockedEvent` (`task.blocked`) and updated `TaskUnblockedEvent` (`task.unblocked`) to support explicit unblocking.
|
|
598
|
+
- **Lifecycle Derivation**: Updated `deriveTaskStatus` and `deriveTaskLifecycleState` to reflect `task.isBlocked` directly alongside upstream dependency checks.
|
|
599
|
+
- **Engines & Storage**: Added `isBlocked` and `blockedReason` persistence to `SQLiteStore`, `FirebaseStore`, and `InMemoryStore`.
|
|
600
|
+
- **MCP Server**: Added `isBlocked` and `blockedReason` parameter options to `create_task` and `update_task` tool schemas.
|
|
601
|
+
|
|
602
|
+
### Patch Changes
|
|
603
|
+
|
|
604
|
+
- Updated dependencies [31a6dde]
|
|
605
|
+
- Updated dependencies [31a6dde]
|
|
606
|
+
- @critical-path/core@0.19.0
|
|
607
|
+
- @critical-path/client@0.12.1
|
|
608
|
+
|
|
609
|
+
## 0.5.0
|
|
610
|
+
|
|
611
|
+
### Minor Changes
|
|
612
|
+
|
|
613
|
+
- adf44f6: Add headless workload and capacity distribution engine for streamgraphs, stacked area charts, and team capacity planning. Features include contiguous calendar bucketing (`day`, `week`, `month`), multi-dimension grouping (`assignee`, `team`, `taskType`, `priority`, `status`), effort metric distribution (`scheduled`, `logged`, `remaining`, `blended`), tabular zero-filled series matrix for D3 stack layouts, and capacity/utilization thresholds.
|
|
614
|
+
|
|
615
|
+
### Patch Changes
|
|
616
|
+
|
|
617
|
+
- Updated dependencies [adf44f6]
|
|
618
|
+
- @critical-path/core@0.18.0
|
|
619
|
+
- @critical-path/client@0.12.0
|
|
620
|
+
|
|
621
|
+
## 0.4.0
|
|
622
|
+
|
|
623
|
+
### Minor Changes
|
|
624
|
+
|
|
625
|
+
- 9c31e8d: Introduce comprehensive Task Metrics, Inferred Actuals, Progress Inference, Earned Value Management (EVM), and Time-Series Progress History Curve Profiling.
|
|
626
|
+
- **Inferred Actuals**: Automatic start/completion auto-stamping on workflow transitions with fallback inference from activity logs, plus automatic completion timestamp clearing on task re-open.
|
|
627
|
+
- **Reality Delta**: Multi-dimensional variance analysis comparing planned estimates to logged hours (`effortVarianceHours`, `durationVarianceHours`, `accuracyRatio`, `isOverdue`, `isOverEstimate`).
|
|
628
|
+
- **Progress Inference**: Deterministic priority waterfall resolving completion progress across explicit values, checklist/todo completion ratios, logged effort, and elapsed schedule time.
|
|
629
|
+
- **Earned Value Management (EVM)**: Task-level PV, EV, AC, CV, SV, CPI, and SPI calculations.
|
|
630
|
+
- **Time-Series History & Curve Shapes**: Historical timeline reconstruction from activity logs with piecewise interpolation curve classification (`linear`, `s_curve`, `early_surge`, `late_rush`, `stalled`).
|
|
631
|
+
- **Full-Stack Integration**: REST endpoints (`/tasks/:id/metrics`, `/tasks/:id/progress-history`), Client SDK methods, React `useTaskMetrics` hook, Svelte 5 `TaskMetricsState`, and MCP tools (`get_task_metrics`, `get_task_progress_history`).
|
|
632
|
+
|
|
633
|
+
### Patch Changes
|
|
634
|
+
|
|
635
|
+
- Updated dependencies [9c31e8d]
|
|
636
|
+
- @critical-path/core@0.17.0
|
|
637
|
+
- @critical-path/client@0.11.0
|
|
638
|
+
|
|
639
|
+
## 0.3.1
|
|
640
|
+
|
|
641
|
+
### Patch Changes
|
|
642
|
+
|
|
643
|
+
- b4b2c98: Generalize tool descriptions for timeline ladder of abstraction tools.
|
|
644
|
+
|
|
645
|
+
## 0.3.0
|
|
646
|
+
|
|
647
|
+
### Minor Changes
|
|
648
|
+
|
|
649
|
+
- e2a7eef: Introduce Ladder of Abstraction and Critical Path Method (CPM) timeline synthesis to the framework data model:
|
|
650
|
+
- **Core Domain**: Multi-scale timeline synthesis model across Macro phase rollups, Standard CPM Gantt schedule (early/late bounds, float/slack calculation, bottleneck identification), and Concrete grounding (deliverables, file attachments, daily effort distribution, and reality deltas). Added `calculateCriticalPath`, `getTimelineLadder`, and `getTaskLadder` to `CriticalPathEngine`.
|
|
651
|
+
- **Server Router**: HTTP endpoints `GET /projects/:id/critical-path`, `GET /projects/:id/ladder`, and `GET /tasks/:id/ladder`.
|
|
652
|
+
- **Client SDK**: `CriticalPathClient` methods `calculateCriticalPath`, `getTimelineLadder`, and `getTaskLadder`.
|
|
653
|
+
- **MCP**: New AI tools `calculate_critical_path`, `get_timeline_ladder`, and `get_task_ladder`.
|
|
654
|
+
- **React**: Custom hooks `useTimelineLadder`, `useCriticalPath`, and `useTaskLadder`.
|
|
655
|
+
- **Svelte 5**: Svelte 5 Runes state classes `TimelineLadderState` and `CriticalPathState`.
|
|
656
|
+
|
|
657
|
+
### Patch Changes
|
|
658
|
+
|
|
659
|
+
- Updated dependencies [e2a7eef]
|
|
660
|
+
- @critical-path/core@0.16.0
|
|
661
|
+
- @critical-path/client@0.10.0
|
|
662
|
+
|
|
663
|
+
## 0.2.0
|
|
664
|
+
|
|
665
|
+
### Minor Changes
|
|
666
|
+
|
|
667
|
+
- ed51060: Add Model Context Protocol (MCP) server and client-side WebMCP support:
|
|
668
|
+
- New `@critical-path/mcp` package providing standard MCP server (`createCriticalPathMcpServer`, stdio transport, resources, prompts) and CLI (`npx @critical-path/mcp`).
|
|
669
|
+
- Client-side WebMCP browser integration (`registerWebMcpTools`) adhering to W3C WebML CG specification with ambient project scoping.
|
|
670
|
+
- First-class React hook `useWebMCP` in `@critical-path/react`.
|
|
671
|
+
- First-class Svelte 5 runes state `WebMcpState` and `createWebMcpState` in `@critical-path/svelte`.
|