@critical-path/svelte 0.18.19 → 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 ADDED
@@ -0,0 +1,935 @@
1
+ # @critical-path/svelte
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
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [e2f997c]
22
+ - Updated dependencies [202a61d]
23
+ - @critical-path/mcp@0.19.0
24
+
25
+ ## 0.18.20
26
+
27
+ ### Patch Changes
28
+
29
+ - 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.
30
+ - Updated dependencies [da8c69b]
31
+ - @critical-path/core@0.51.1
32
+ - @critical-path/client@0.25.1
33
+ - @critical-path/mcp@0.18.1
34
+
35
+ ## 0.18.19
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [a7e9f4a]
40
+ - @critical-path/core@0.51.0
41
+ - @critical-path/client@0.25.0
42
+ - @critical-path/mcp@0.18.0
43
+
44
+ ## 0.18.18
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies [7896d0d]
49
+ - @critical-path/core@0.50.0
50
+ - @critical-path/client@0.24.5
51
+ - @critical-path/mcp@0.17.2
52
+
53
+ ## 0.18.17
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [fc9740b]
58
+ - @critical-path/mcp@0.17.1
59
+
60
+ ## 0.18.16
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [bbc4305]
65
+ - @critical-path/core@0.49.0
66
+ - @critical-path/mcp@0.17.0
67
+ - @critical-path/client@0.24.4
68
+
69
+ ## 0.18.15
70
+
71
+ ### Patch Changes
72
+
73
+ - Updated dependencies [cb71e39]
74
+ - @critical-path/core@0.48.1
75
+ - @critical-path/client@0.24.3
76
+ - @critical-path/mcp@0.16.3
77
+
78
+ ## 0.18.14
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [f151568]
83
+ - @critical-path/core@0.48.0
84
+ - @critical-path/client@0.24.2
85
+ - @critical-path/mcp@0.16.2
86
+
87
+ ## 0.18.13
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies [fde5883]
92
+ - @critical-path/core@0.47.0
93
+ - @critical-path/client@0.24.1
94
+ - @critical-path/mcp@0.16.1
95
+
96
+ ## 0.18.12
97
+
98
+ ### Patch Changes
99
+
100
+ - Updated dependencies [d82d168]
101
+ - @critical-path/core@0.46.0
102
+ - @critical-path/client@0.24.0
103
+ - @critical-path/mcp@0.16.0
104
+
105
+ ## 0.18.11
106
+
107
+ ### Patch Changes
108
+
109
+ - Updated dependencies [3c08dd9]
110
+ - @critical-path/core@0.45.0
111
+ - @critical-path/client@0.23.0
112
+ - @critical-path/mcp@0.15.0
113
+
114
+ ## 0.18.10
115
+
116
+ ### Patch Changes
117
+
118
+ - Updated dependencies [b3ef9c6]
119
+ - @critical-path/core@0.44.0
120
+ - @critical-path/client@0.22.3
121
+ - @critical-path/mcp@0.14.2
122
+
123
+ ## 0.18.9
124
+
125
+ ### Patch Changes
126
+
127
+ - Updated dependencies [867cdae]
128
+ - @critical-path/core@0.43.1
129
+ - @critical-path/client@0.22.2
130
+ - @critical-path/mcp@0.14.1
131
+
132
+ ## 0.18.8
133
+
134
+ ### Patch Changes
135
+
136
+ - Updated dependencies [efa342f]
137
+ - @critical-path/core@0.43.0
138
+ - @critical-path/mcp@0.14.0
139
+ - @critical-path/client@0.22.1
140
+
141
+ ## 0.18.7
142
+
143
+ ### Patch Changes
144
+
145
+ - Updated dependencies [f548659]
146
+ - @critical-path/core@0.42.0
147
+ - @critical-path/client@0.22.0
148
+ - @critical-path/mcp@0.13.0
149
+
150
+ ## 0.18.6
151
+
152
+ ### Patch Changes
153
+
154
+ - Updated dependencies [65044e3]
155
+ - @critical-path/core@0.41.0
156
+ - @critical-path/client@0.21.1
157
+ - @critical-path/mcp@0.12.1
158
+
159
+ ## 0.18.5
160
+
161
+ ### Patch Changes
162
+
163
+ - Updated dependencies [cfd3215]
164
+ - @critical-path/core@0.40.0
165
+ - @critical-path/client@0.21.0
166
+ - @critical-path/mcp@0.12.0
167
+
168
+ ## 0.18.4
169
+
170
+ ### Patch Changes
171
+
172
+ - Updated dependencies [c7ad4d4]
173
+ - @critical-path/core@0.39.0
174
+ - @critical-path/client@0.20.9
175
+ - @critical-path/mcp@0.11.11
176
+
177
+ ## 0.18.3
178
+
179
+ ### Patch Changes
180
+
181
+ - Updated dependencies [8e52679]
182
+ - @critical-path/core@0.38.0
183
+ - @critical-path/client@0.20.8
184
+ - @critical-path/mcp@0.11.10
185
+
186
+ ## 0.18.2
187
+
188
+ ### Patch Changes
189
+
190
+ - Updated dependencies [d4477b1]
191
+ - @critical-path/core@0.37.0
192
+ - @critical-path/client@0.20.7
193
+ - @critical-path/mcp@0.11.9
194
+
195
+ ## 0.18.1
196
+
197
+ ### Patch Changes
198
+
199
+ - 85d9bb5: Publish only what consumers need.
200
+
201
+ - Packages no longer ship compiled tests or TypeScript sources (`files: ["dist", "!dist/**/*.test.*"]`). `@critical-path/core` goes from 330 files to 146.
202
+ - `exports` maps list `types` first, as TypeScript's resolution expects.
203
+ - Updated dependencies [85d9bb5]
204
+ - @critical-path/core@0.36.1
205
+ - @critical-path/client@0.20.6
206
+ - @critical-path/mcp@0.11.8
207
+
208
+ ## 0.18.0
209
+
210
+ ### Minor Changes
211
+
212
+ - dbe7073: Cancel stale requests in UI data hooks.
213
+
214
+ - **@critical-path/react:** data hooks abort their in-flight request when inputs change or the component unmounts, and ignore any response that arrives afterwards. Previously, switching from project A to project B could show A's tasks if A's request finished last. The package now ships with a `'use client'` directive, for Next.js App Router.
215
+ - **@critical-path/svelte:** state classes abort the previous request when a fetch method is called again, and gain `destroy()` to cancel in-flight requests (call it from `onDestroy`). Duck-typed clients without `with()` keep working; their requests just aren't cancelled.
216
+
217
+ ### Patch Changes
218
+
219
+ - Updated dependencies [810d8d1]
220
+ - @critical-path/core@0.36.0
221
+ - @critical-path/client@0.20.5
222
+ - @critical-path/mcp@0.11.7
223
+
224
+ ## 0.17.11
225
+
226
+ ### Patch Changes
227
+
228
+ - Updated dependencies [b13f7c4]
229
+ - @critical-path/core@0.35.0
230
+ - @critical-path/client@0.20.4
231
+ - @critical-path/mcp@0.11.6
232
+
233
+ ## 0.17.10
234
+
235
+ ### Patch Changes
236
+
237
+ - Updated dependencies [1cc0d4c]
238
+ - @critical-path/core@0.34.0
239
+ - @critical-path/client@0.20.3
240
+ - @critical-path/mcp@0.11.5
241
+
242
+ ## 0.17.9
243
+
244
+ ### Patch Changes
245
+
246
+ - Updated dependencies [aa94129]
247
+ - @critical-path/core@0.33.0
248
+ - @critical-path/client@0.20.2
249
+ - @critical-path/mcp@0.11.4
250
+
251
+ ## 0.17.8
252
+
253
+ ### Patch Changes
254
+
255
+ - Updated dependencies [a3fe03d]
256
+ - @critical-path/core@0.32.0
257
+ - @critical-path/client@0.20.1
258
+ - @critical-path/mcp@0.11.3
259
+
260
+ ## 0.17.7
261
+
262
+ ### Patch Changes
263
+
264
+ - Updated dependencies [40e5958]
265
+ - @critical-path/core@0.31.0
266
+ - @critical-path/client@0.20.0
267
+ - @critical-path/mcp@0.11.2
268
+
269
+ ## 0.17.6
270
+
271
+ ### Patch Changes
272
+
273
+ - Updated dependencies [b453472]
274
+ - @critical-path/client@0.19.0
275
+ - @critical-path/mcp@0.11.1
276
+
277
+ ## 0.17.5
278
+
279
+ ### Patch Changes
280
+
281
+ - cdb300a: Task filtering and pagination.
282
+
283
+ **@critical-path/core**
284
+ - New `engine.queryTasks(query)` and `engine.queryActivities(query)` return `Page<T>` (`{ items, nextCursor }`).
285
+ - Tasks are ordered oldest first, activities newest first, using keyset cursors on `createdAt` then `id`.
286
+ - Task filters: `status[]`, `priority[]`, `assigneeId` (also matches `assignees`), `iterationId`, `deliverableId`, `containerId`, `parentId` (`null` means top-level), `projectIds`.
287
+ - Results are limited to projects the actor can read.
288
+ - **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.
289
+
290
+ **@critical-path/server**
291
+ - **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`.
292
+
293
+ **@critical-path/client**
294
+ - `getTasks` and `getActivities` follow pagination and still return everything. New `queryTasks` and `queryActivities` return single pages.
295
+
296
+ **@critical-path/mcp**
297
+ - **BREAKING:** `list_tasks` returns `{ tasks, nextCursor }` and accepts `iterationId`, `limit` and `cursor`. It now filters in the store instead of loading every task.
298
+ - Updated dependencies [cdb300a]
299
+ - @critical-path/core@0.30.0
300
+ - @critical-path/client@0.18.0
301
+ - @critical-path/mcp@0.11.0
302
+
303
+ ## 0.17.4
304
+
305
+ ### Patch Changes
306
+
307
+ - Updated dependencies [a019d37]
308
+ - @critical-path/core@0.29.0
309
+ - @critical-path/client@0.17.0
310
+ - @critical-path/mcp@0.10.4
311
+
312
+ ## 0.17.3
313
+
314
+ ### Patch Changes
315
+
316
+ - Updated dependencies [4fbbc40]
317
+ - @critical-path/core@0.28.0
318
+ - @critical-path/mcp@0.10.3
319
+ - @critical-path/client@0.16.1
320
+
321
+ ## 0.17.2
322
+
323
+ ### Patch Changes
324
+
325
+ - Updated dependencies [1a516bd]
326
+ - @critical-path/core@0.27.0
327
+ - @critical-path/client@0.16.0
328
+ - @critical-path/mcp@0.10.2
329
+
330
+ ## 0.17.1
331
+
332
+ ### Patch Changes
333
+
334
+ - Updated dependencies [719e844]
335
+ - @critical-path/core@0.26.0
336
+ - @critical-path/client@0.15.1
337
+ - @critical-path/mcp@0.10.1
338
+
339
+ ## 0.17.0
340
+
341
+ ### Minor Changes
342
+
343
+ - fd79762: **BREAKING:** strict request bodies, no identity in payloads, and CORS off by default.
344
+
345
+ **@critical-path/core**
346
+ - Request schemas are strict: unknown keys, server-assigned fields and identity fields are rejected instead of stripped.
347
+ - 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'`.
348
+ - Schemas export request body types (`CreateTaskBody`, `UpdateTaskBody`, ...).
349
+
350
+ **@critical-path/server**
351
+ - Bodies containing unknown, server-assigned or identity fields return `400`.
352
+ - 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.
353
+ - `DELETE /comments/:id/reactions` takes `?emoji=` only.
354
+ - CORS is off by default (`cors: false`). Pass `cors: { origins: [...] }` to allow cross-origin browsers.
355
+
356
+ **@critical-path/client**
357
+ - 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.
358
+ - New `updateProject`, `deleteProject` and `addDependency`. `uploadAttachmentFile` base64-encodes binary data (previously it sent unusable JSON for `Uint8Array`/`ArrayBuffer`).
359
+ - 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`.
360
+
361
+ **@critical-path/mcp**
362
+ - Tool arguments are strict: undeclared arguments return an `isError` result.
363
+ - `add_comment` no longer takes `authorId`. With an `engine`, writes are attributed to the new `actor` server option (default `DEFAULT_MCP_ACTOR`).
364
+
365
+ **@critical-path/react / @critical-path/svelte**
366
+ - `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.
367
+
368
+ ### Patch Changes
369
+
370
+ - Updated dependencies [fd79762]
371
+ - @critical-path/core@0.25.0
372
+ - @critical-path/client@0.15.0
373
+ - @critical-path/mcp@0.10.0
374
+
375
+ ## 0.16.3
376
+
377
+ ### Patch Changes
378
+
379
+ - b54e22c: Validate request bodies with shared zod schemas and publish an OpenAPI document.
380
+
381
+ **@critical-path/core**
382
+ - 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.
383
+ - `ValidationError` carries an optional `issues: { path, message }[]`.
384
+
385
+ **@critical-path/server**
386
+ - 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.
387
+ - 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.
388
+ - New `GET /openapi.json` and `buildOpenApiDocument()` (OpenAPI 3.1, request bodies generated from the validation schemas).
389
+
390
+ **@critical-path/mcp**
391
+ - Tool `inputSchema`s are generated from their zod schemas via the new `defineTool`, removing the hand-written JSON copies.
392
+
393
+ **@critical-path/svelte**
394
+ - Rebuilt with the bundled `@critical-path/mcp` changes.
395
+ - Updated dependencies [b54e22c]
396
+ - @critical-path/core@0.24.0
397
+ - @critical-path/mcp@0.9.0
398
+ - @critical-path/client@0.14.9
399
+
400
+ ## 0.16.2
401
+
402
+ ### Patch Changes
403
+
404
+ - Updated dependencies [6dd5529]
405
+ - @critical-path/core@0.23.0
406
+ - @critical-path/mcp@0.8.0
407
+ - @critical-path/client@0.14.8
408
+
409
+ ## 0.16.1
410
+
411
+ ### Patch Changes
412
+
413
+ - b243a37: Fix correctness and safety issues found in a code audit.
414
+
415
+ **@critical-path/core**
416
+ - `SQLiteStore` now loads `node:sqlite` via `process.getBuiltinModule`, fixing `require is not defined` when constructed from a filename in plain Node ESM.
417
+ - Removed the unused `better-sqlite3` runtime dependency.
418
+ - `engine.addDependency` now detects indirect cycles (e.g. A → B → C → D → A), not just cycles between direct neighbours.
419
+ - Fixed `generateKeyBetween` returning out-of-range, duplicate keys after repeated inserts after the same item. It now throws a `RangeError` when `a >= b`.
420
+ - Added `engine.deleteProject(id)`, which deletes a project's tasks through `deleteTask` and publishes a new `project.deleted` event and webhook.
421
+ - Added exported `ValidationError` and `NotFoundError` classes. `logTime` now rejects non-numeric hours.
422
+
423
+ **@critical-path/server**
424
+ - `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.
425
+ - Added `PATCH /projects/:id`.
426
+ - `DELETE` on a resource that does not exist now returns `404` instead of `200 { success: false }`.
427
+ - Malformed JSON returns `400`, validation errors `400`, `NotFoundError` `404`, and dependency cycles `409`. Unexpected errors return a generic `500` message outside development.
428
+ - `OPTIONS` preflight requests return `204` with CORS headers.
429
+ - 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'`).
430
+ - `createNextHandler` returns a callable handler that also exposes per-method properties, so `export { handler as GET }` works as documented.
431
+
432
+ **@critical-path/mcp**
433
+ - Tools excluded via the `tools` option can no longer be called by name.
434
+ - Tool arguments are validated with each tool's zod schema; undeclared fields are stripped.
435
+ - Tool listings include `title` and MCP `readOnlyHint` / `destructiveHint` annotations.
436
+
437
+ **@critical-path/svelte**
438
+ - Rebuilt with the bundled `@critical-path/mcp` WebMCP argument validation.
439
+
440
+ **@critical-path/client**
441
+ - Delete methods resolve to `false` when the server returns `404`, keeping their boolean contract with the new server behaviour.
442
+ - Updated dependencies [b243a37]
443
+ - @critical-path/core@0.22.0
444
+ - @critical-path/mcp@0.7.0
445
+ - @critical-path/client@0.14.7
446
+
447
+ ## 0.16.0
448
+
449
+ ### Minor Changes
450
+
451
+ - f3301bf: - Added comprehensive task lifecycle and semantic status predicates (`isDraftTask`, `isArchivedTask`, `isTrashedTask`, `isTrashedOrArchivedTask`, `isWorkflowTask`, `getTaskSemanticStatus`, `isTaskCompleted`, `isTaskInProgress`, `isTaskNotStarted`, `isTaskCanceled`, `isTaskActive`, `isTaskUnassigned`).
452
+ - Hardened mention extraction with markdown code suppression (`stripMarkdownCode`) to prevent code blocks, inline code, HTML elements, and URLs from triggering false positive mentions while preserving rich-text mention nodes.
453
+ - Added Base-62 fractional indexing utilities (`generateKeyBetween`, `generateNKeysBetween`) for zero-cost lexical task/item reordering without array shifting or bulk database rewrites.
454
+ - Added `completedAt` lifecycle timestamp tracking alongside `actualEndDate`, automatic timestamp assignment upon entering `completed` or `canceled`, and timestamp + progress reset upon reopening to `not_started` or `in_progress`.
455
+ - Added `isTempTaskId` utility and hardened optimistic temporary task handling in `@critical-path/svelte` (`TaskState`) and `@critical-path/react` (`useTasks`) with in-flight creation resolution and ID mapping to prevent 404 errors during rapid optimistic updates and deletions.
456
+
457
+ ### Patch Changes
458
+
459
+ - Updated dependencies [f3301bf]
460
+ - @critical-path/core@0.21.0
461
+ - @critical-path/client@0.14.6
462
+ - @critical-path/mcp@0.6.9
463
+
464
+ ## 0.15.9
465
+
466
+ ### Patch Changes
467
+
468
+ - Updated dependencies [8acf018]
469
+ - @critical-path/client@0.14.5
470
+ - @critical-path/mcp@0.6.8
471
+
472
+ ## 0.15.8
473
+
474
+ ### Patch Changes
475
+
476
+ - Updated dependencies [b8a68dd]
477
+ - @critical-path/core@0.20.2
478
+ - @critical-path/client@0.14.4
479
+ - @critical-path/mcp@0.6.7
480
+
481
+ ## 0.15.7
482
+
483
+ ### Patch Changes
484
+
485
+ - Updated dependencies [500b353]
486
+ - @critical-path/core@0.20.1
487
+ - @critical-path/client@0.14.3
488
+ - @critical-path/mcp@0.6.6
489
+
490
+ ## 0.15.6
491
+
492
+ ### Patch Changes
493
+
494
+ - Updated dependencies [c83235b]
495
+ - @critical-path/core@0.20.0
496
+ - @critical-path/client@0.14.2
497
+ - @critical-path/mcp@0.6.5
498
+
499
+ ## 0.15.5
500
+
501
+ ### Patch Changes
502
+
503
+ - Updated dependencies [f816145]
504
+ - @critical-path/core@0.19.1
505
+ - @critical-path/client@0.14.1
506
+ - @critical-path/mcp@0.6.4
507
+
508
+ ## 0.15.4
509
+
510
+ ### Patch Changes
511
+
512
+ - Updated dependencies [f539a11]
513
+ - @critical-path/client@0.14.0
514
+ - @critical-path/mcp@0.6.3
515
+
516
+ ## 0.15.3
517
+
518
+ ### Patch Changes
519
+
520
+ - Updated dependencies [1c85472]
521
+ - @critical-path/client@0.13.1
522
+ - @critical-path/mcp@0.6.2
523
+
524
+ ## 0.15.2
525
+
526
+ ### Patch Changes
527
+
528
+ - Updated dependencies [b86b6fc]
529
+ - @critical-path/client@0.13.0
530
+ - @critical-path/mcp@0.6.1
531
+
532
+ ## 0.15.1
533
+
534
+ ### Patch Changes
535
+
536
+ - Updated dependencies [31a6dde]
537
+ - Updated dependencies [31a6dde]
538
+ - @critical-path/core@0.19.0
539
+ - @critical-path/mcp@0.6.0
540
+ - @critical-path/client@0.12.1
541
+
542
+ ## 0.15.0
543
+
544
+ ### Minor Changes
545
+
546
+ - 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.
547
+
548
+ ### Patch Changes
549
+
550
+ - Updated dependencies [adf44f6]
551
+ - @critical-path/core@0.18.0
552
+ - @critical-path/client@0.12.0
553
+ - @critical-path/mcp@0.5.0
554
+
555
+ ## 0.14.0
556
+
557
+ ### Minor Changes
558
+
559
+ - 9c31e8d: Introduce comprehensive Task Metrics, Inferred Actuals, Progress Inference, Earned Value Management (EVM), and Time-Series Progress History Curve Profiling.
560
+ - **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.
561
+ - **Reality Delta**: Multi-dimensional variance analysis comparing planned estimates to logged hours (`effortVarianceHours`, `durationVarianceHours`, `accuracyRatio`, `isOverdue`, `isOverEstimate`).
562
+ - **Progress Inference**: Deterministic priority waterfall resolving completion progress across explicit values, checklist/todo completion ratios, logged effort, and elapsed schedule time.
563
+ - **Earned Value Management (EVM)**: Task-level PV, EV, AC, CV, SV, CPI, and SPI calculations.
564
+ - **Time-Series History & Curve Shapes**: Historical timeline reconstruction from activity logs with piecewise interpolation curve classification (`linear`, `s_curve`, `early_surge`, `late_rush`, `stalled`).
565
+ - **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`).
566
+
567
+ ### Patch Changes
568
+
569
+ - Updated dependencies [9c31e8d]
570
+ - @critical-path/core@0.17.0
571
+ - @critical-path/client@0.11.0
572
+ - @critical-path/mcp@0.4.0
573
+
574
+ ## 0.13.1
575
+
576
+ ### Patch Changes
577
+
578
+ - Updated dependencies [b4b2c98]
579
+ - @critical-path/mcp@0.3.1
580
+
581
+ ## 0.13.0
582
+
583
+ ### Minor Changes
584
+
585
+ - e2a7eef: Introduce Ladder of Abstraction and Critical Path Method (CPM) timeline synthesis to the framework data model:
586
+ - **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`.
587
+ - **Server Router**: HTTP endpoints `GET /projects/:id/critical-path`, `GET /projects/:id/ladder`, and `GET /tasks/:id/ladder`.
588
+ - **Client SDK**: `CriticalPathClient` methods `calculateCriticalPath`, `getTimelineLadder`, and `getTaskLadder`.
589
+ - **MCP**: New AI tools `calculate_critical_path`, `get_timeline_ladder`, and `get_task_ladder`.
590
+ - **React**: Custom hooks `useTimelineLadder`, `useCriticalPath`, and `useTaskLadder`.
591
+ - **Svelte 5**: Svelte 5 Runes state classes `TimelineLadderState` and `CriticalPathState`.
592
+
593
+ ### Patch Changes
594
+
595
+ - Updated dependencies [e2a7eef]
596
+ - @critical-path/core@0.16.0
597
+ - @critical-path/client@0.10.0
598
+ - @critical-path/mcp@0.3.0
599
+
600
+ ## 0.12.0
601
+
602
+ ### Minor Changes
603
+
604
+ - 105f3d3: Synchronize feature parity between `@critical-path/react` and `@critical-path/svelte`:
605
+ - `@critical-path/react`: Added `updateTask` with optimistic updates and rollback to `useTasks`, and introduced `useTaskActivity` hook for unified threaded discussions and attachments.
606
+ - `@critical-path/svelte`: Added `KanbanState` (`createKanbanState`), `TaskTransitionsState` (`createTaskTransitionsState`), and `DeliverableSummaryState` (`createDeliverableSummaryState`) using native Svelte 5 runes.
607
+
608
+ ## 0.11.0
609
+
610
+ ### Minor Changes
611
+
612
+ - ed51060: Add Model Context Protocol (MCP) server and client-side WebMCP support:
613
+ - New `@critical-path/mcp` package providing standard MCP server (`createCriticalPathMcpServer`, stdio transport, resources, prompts) and CLI (`npx @critical-path/mcp`).
614
+ - Client-side WebMCP browser integration (`registerWebMcpTools`) adhering to W3C WebML CG specification with ambient project scoping.
615
+ - First-class React hook `useWebMCP` in `@critical-path/react`.
616
+ - First-class Svelte 5 runes state `WebMcpState` and `createWebMcpState` in `@critical-path/svelte`.
617
+
618
+ ### Patch Changes
619
+
620
+ - Updated dependencies [ed51060]
621
+ - @critical-path/mcp@0.2.0
622
+
623
+ ## 0.10.2
624
+
625
+ ### Patch Changes
626
+
627
+ - Updated dependencies [dbd2072]
628
+ - @critical-path/core@0.15.2
629
+ - @critical-path/client@0.9.2
630
+
631
+ ## 0.10.1
632
+
633
+ ### Patch Changes
634
+
635
+ - Updated dependencies [f53afab]
636
+ - @critical-path/core@0.15.1
637
+ - @critical-path/client@0.9.1
638
+
639
+ ## 0.10.0
640
+
641
+ ### Minor Changes
642
+
643
+ - 21eb85c: Implement Universal Semantic Statuses & System-Derived Implied Statuses (3-Tier Status Architecture)
644
+
645
+ - **Tier 1 (Universal Semantic Statuses)**: Defined canonical status enum `SemanticStatus = 'not_started' | 'in_progress' | 'completed' | 'canceled'` providing universal semantic meaning across any industry domain.
646
+ - **Tier 2 (Workflow-Defined Statuses)**: Updated `StatusDefinition` to map domain-specific statuses to a semantic `category`. Updated built-in workflows (Software, Creative, VFX, Simple) to classify statuses by category.
647
+ - **Tier 3 (System-Derived Implied Statuses)**: Added `deriveTaskLifecycleState` and `engine.getTaskLifecycleState(taskId)` returning dynamic indicators:
648
+ - Dependency: `isReady`, `isBlocked`, `blockingTaskIds`
649
+ - Schedule: `isOverdue`, `isUpcoming`, `isUnplanned`
650
+ - Ownership: `isUnassigned`, `isStalled`
651
+ - Estimate/Pace: `isOverEstimate`, `isPaceWarning`
652
+ - Convenience flags: `isDone`, `isActive`, `isCancelled`
653
+ - **Domain Entities & Engine**: Added automatic timestamp progression (`actualStartDate`, `actualEndDate`), progress completion, and event emission driven by semantic status categories.
654
+ - **React UI Hooks**: Updated `useKanban` to support dynamic custom workflow columns without dropping tasks, plus added `groupBy: 'semantic' | 'workflow'` option.
655
+ - **Client SDK**: Added `client.getTaskLifecycleState(taskId)`.
656
+
657
+ ### Patch Changes
658
+
659
+ - Updated dependencies [21eb85c]
660
+ - @critical-path/core@0.15.0
661
+ - @critical-path/client@0.9.0
662
+
663
+ ## 0.9.5
664
+
665
+ ### Patch Changes
666
+
667
+ - Updated dependencies [3dc2798]
668
+ - @critical-path/core@0.14.0
669
+ - @critical-path/client@0.8.4
670
+
671
+ ## 0.9.4
672
+
673
+ ### Patch Changes
674
+
675
+ - Updated dependencies [573a4fa]
676
+ - @critical-path/core@0.13.3
677
+ - @critical-path/client@0.8.3
678
+
679
+ ## 0.9.3
680
+
681
+ ### Patch Changes
682
+
683
+ - Updated dependencies [03d269c]
684
+ - @critical-path/core@0.13.2
685
+ - @critical-path/client@0.8.2
686
+
687
+ ## 0.9.2
688
+
689
+ ### Patch Changes
690
+
691
+ - Updated dependencies [a7d17c0]
692
+ - @critical-path/core@0.13.1
693
+ - @critical-path/client@0.8.1
694
+
695
+ ## 0.9.1
696
+
697
+ ### Patch Changes
698
+
699
+ - Updated dependencies [a4a464b]
700
+ - @critical-path/core@0.13.0
701
+ - @critical-path/client@0.8.0
702
+
703
+ ## 0.9.0
704
+
705
+ ### Minor Changes
706
+
707
+ - 5a5930f: Add first-class Deliverable entity, Creative Workflow presets, and reactive UI bindings:
708
+ - `@critical-path/core`: Added `Deliverable` entity, `DeliverableSummary` rollup computation, `DEFAULT_CREATIVE_WORKFLOW` preset, `deliverableId` on tasks, store implementations (InMemory, SQLite, Firebase), domain events, and webhook integration.
709
+ - `@critical-path/server`: Added RESTful API endpoints for `/deliverables` and `/deliverables/:id/summary`.
710
+ - `@critical-path/client`: Added deliverable management and summary methods to `CriticalPathClient`.
711
+ - `@critical-path/react`: Added `useDeliverables` and `useDeliverableSummary` React hooks.
712
+ - `@critical-path/svelte`: Added `DeliverableState` and `createDeliverableState` Svelte 5 Runes state management.
713
+
714
+ ### Patch Changes
715
+
716
+ - Updated dependencies [5a5930f]
717
+ - @critical-path/core@0.12.0
718
+ - @critical-path/client@0.7.0
719
+
720
+ ## 0.8.0
721
+
722
+ ### Minor Changes
723
+
724
+ - 55549e9: Support @mentions in comments with extraction and segmentation utilities
725
+
726
+ - Add `mentions?: string[]` to `Comment` interface
727
+ - Add `extractMentions` and `parseMentionSegments` utilities for mention parsing and UI rendering
728
+ - Auto-extract and populate mentions during `addComment` and `updateComment` in the engine
729
+ - Update SQLite comments schema with `mentions` column and migration
730
+ - Preserve and pass through mentions in server routes, client SDK, and Svelte bindings
731
+
732
+ ### Patch Changes
733
+
734
+ - Updated dependencies [55549e9]
735
+ - @critical-path/core@0.11.0
736
+ - @critical-path/client@0.6.0
737
+
738
+ ## 0.7.0
739
+
740
+ ### Minor Changes
741
+
742
+ - e9003d3: Add emoji reactions support for comment conversations with domain events, deduplication, REST endpoints, client SDK, and React/Svelte state integrations.
743
+
744
+ ### Patch Changes
745
+
746
+ - Updated dependencies [e9003d3]
747
+ - @critical-path/core@0.10.0
748
+ - @critical-path/client@0.5.0
749
+
750
+ ## 0.6.0
751
+
752
+ ### Minor Changes
753
+
754
+ - e983557: Add first-class optional todo list (checklist) support to Task model and TaskEntity with helper methods (addTodo, toggleTodo, removeTodo) and updateTask helper in @critical-path/svelte.
755
+
756
+ ### Patch Changes
757
+
758
+ - Updated dependencies [e983557]
759
+ - @critical-path/core@0.9.0
760
+ - @critical-path/client@0.4.4
761
+
762
+ ## 0.5.4
763
+
764
+ ### Patch Changes
765
+
766
+ - 9aa53f7: Optimistically remove comments and attachments upon delete with automatic rollback on network failure
767
+
768
+ ## 0.5.3
769
+
770
+ ### Patch Changes
771
+
772
+ - 2d5ff04: fix(core): decode base64 strings and data URIs into binary Uint8Array in storage adapters
773
+ - Updated dependencies [2d5ff04]
774
+ - @critical-path/core@0.8.3
775
+ - @critical-path/client@0.4.3
776
+
777
+ ## 0.5.2
778
+
779
+ ### Patch Changes
780
+
781
+ - fix(core): decode base64 strings and data URIs into binary Uint8Array in storage adapters
782
+ - Updated dependencies
783
+ - @critical-path/core@0.8.2
784
+ - @critical-path/client@0.4.2
785
+
786
+ ## 0.5.1
787
+
788
+ ### Patch Changes
789
+
790
+ - 315425c: fix(core): generate Firebase Storage download tokens and construct valid public URLs
791
+ - Updated dependencies [315425c]
792
+ - @critical-path/core@0.8.1
793
+ - @critical-path/client@0.4.1
794
+
795
+ ## 0.5.0
796
+
797
+ ### Minor Changes
798
+
799
+ - 1811922: Add attachment URL validation against large data URIs, sanitize undefined properties in FirebaseStore, provide direct attachment upload routes & SDK methods, and introduce TaskActivityState for combined comment & attachment threads.
800
+
801
+ ### Patch Changes
802
+
803
+ - Updated dependencies [1811922]
804
+ - @critical-path/core@0.8.0
805
+ - @critical-path/client@0.4.0
806
+
807
+ ## 0.4.0
808
+
809
+ ### Minor Changes
810
+
811
+ - a48a04a: Add threaded conversations, attachment metadata management, and storage adapters (S3 & Firebase Storage):
812
+
813
+ - **`@critical-path/core`**:
814
+ - Added `Attachment` entity, `CreateAttachmentInput`, `UploadFileInput`, and `FileStorageAdapter` contracts.
815
+ - Added `InMemoryFileStore`, duck-typed `S3StorageAdapter` (compatible with AWS SDK v3, v2, MinIO, and Cloudflare R2), and `FirebaseStorageAdapter` (compatible with Google Cloud Storage and Firebase Admin SDK).
816
+ - Extended `Comment` with `authorType` (`user`, `agent`, `system`) and `parentId` for threaded discussions.
817
+ - Implemented full comment and attachment repository methods across `InMemoryStore`, `SQLiteStore`, and `FirebaseStore`.
818
+ - Added engine operations for upload, presigning, and deleting attachments with domain events (`comment.*`, `attachment.*`) and webhooks.
819
+
820
+ - **`@critical-path/server`**:
821
+ - Added RESTful routes for comments (`GET/POST /tasks/:taskId/comments`, `GET/POST /comments`, `GET/PATCH/DELETE /comments/:id`).
822
+ - Added RESTful routes for attachments (`GET/POST /tasks/:taskId/attachments`, `GET/POST /attachments`, `GET/DELETE /attachments/:id`, `POST /attachments/presign`).
823
+
824
+ - **`@critical-path/client`**:
825
+ - Added SDK methods `getComments`, `getComment`, `addComment`, `updateComment`, `deleteComment`.
826
+ - Added SDK methods `getAttachments`, `getAttachment`, `createAttachment`, `deleteAttachment`, and `getPresignedAttachmentUploadUrl`.
827
+
828
+ - **`@critical-path/react`**:
829
+ - Added `useComments(taskId)` with reactive thread tree derivation (`threads` containing nested `replies`) and comment mutations.
830
+ - Added `useAttachments(filter)` with attachment creation and deletion.
831
+
832
+ - **`@critical-path/svelte`**:
833
+ - Added Svelte 5 Rune-based `CommentState` / `createCommentState(client, taskId)` with derived threaded hierarchy.
834
+ - Added Svelte 5 Rune-based `AttachmentState` / `createAttachmentState(client, filter)`.
835
+
836
+ ### Patch Changes
837
+
838
+ - Updated dependencies [a48a04a]
839
+ - @critical-path/core@0.7.0
840
+ - @critical-path/client@0.3.0
841
+
842
+ ## 0.3.4
843
+
844
+ ### Patch Changes
845
+
846
+ - Updated dependencies [6e9dece]
847
+ - @critical-path/core@0.6.0
848
+ - @critical-path/client@0.2.4
849
+
850
+ ## 0.3.3
851
+
852
+ ### Patch Changes
853
+
854
+ - Updated dependencies [c24b76c]
855
+ - @critical-path/core@0.5.2
856
+ - @critical-path/client@0.2.3
857
+
858
+ ## 0.3.2
859
+
860
+ ### Patch Changes
861
+
862
+ - Updated dependencies [34067fd]
863
+ - @critical-path/core@0.5.1
864
+ - @critical-path/client@0.2.2
865
+
866
+ ## 0.3.1
867
+
868
+ ### Patch Changes
869
+
870
+ - Updated dependencies [83a5c17]
871
+ - @critical-path/core@0.5.0
872
+ - @critical-path/client@0.2.1
873
+
874
+ ## 0.3.0
875
+
876
+ ### Minor Changes
877
+
878
+ - 35576a6: Introduce Workflow concept to the project management model with status definitions, allowed transition validation, task types, webhook events (workflow.created, workflow.updated, workflow.deleted), server routes, SDK methods, and React/Svelte state hooks.
879
+
880
+ ### Patch Changes
881
+
882
+ - Updated dependencies [35576a6]
883
+ - @critical-path/core@0.4.0
884
+ - @critical-path/client@0.2.0
885
+
886
+ ## 0.2.4
887
+
888
+ ### Patch Changes
889
+
890
+ - Updated dependencies [4b92228]
891
+ - @critical-path/core@0.3.0
892
+ - @critical-path/client@0.1.5
893
+
894
+ ## 0.2.3
895
+
896
+ ### Patch Changes
897
+
898
+ - 3470b61: add optimistic updates with error rollback to Svelte state classes and React hooks
899
+
900
+ ## 0.2.2
901
+
902
+ ### Patch Changes
903
+
904
+ - Updated dependencies [df22aad]
905
+ - @critical-path/core@0.2.1
906
+ - @critical-path/client@0.1.4
907
+
908
+ ## 0.2.1
909
+
910
+ ### Patch Changes
911
+
912
+ - 5160802: Publish Svelte 5 Runes state classes on 0.2.x prerelease line.
913
+
914
+ ## 1.0.0
915
+
916
+ ### Major Changes
917
+
918
+ - 283e450: Modernize `@critical-path/svelte` for Svelte 5 Runes:
919
+ - Replaced Svelte 4 legacy stores (`createProjectStore`, `createTaskStore`) with Svelte 5 Runes state classes and factories (`ProjectState`, `createProjectState`, `TaskState`, `createTaskState`).
920
+ - Updated peer dependency requirement to `svelte: ^5.0.0`.
921
+ - Components now access reactive state properties directly (e.g. `taskState.data`, `projectState.loading`) without `$` store auto-subscriptions.
922
+
923
+ ## 0.1.3
924
+
925
+ ### Patch Changes
926
+
927
+ - Updated dependencies [755286a]
928
+ - @critical-path/core@0.2.0
929
+ - @critical-path/client@0.1.3
930
+
931
+ ## 0.1.2
932
+
933
+ ### Patch Changes
934
+
935
+ - Initial open-source release of Svelte reactive store factories (`createProjectStore`, `createTaskStore`).