@critical-path/core 0.35.0 → 0.36.1

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.
Files changed (187) hide show
  1. package/README.md +11 -0
  2. package/dist/engine/index.d.ts +2 -0
  3. package/dist/engine/index.d.ts.map +1 -1
  4. package/dist/engine/index.js +25 -2
  5. package/dist/engine/index.js.map +1 -1
  6. package/dist/types/index.d.ts +11 -0
  7. package/dist/types/index.d.ts.map +1 -1
  8. package/package.json +5 -1
  9. package/CHANGELOG.md +0 -584
  10. package/dist/deliverables.test.d.ts +0 -2
  11. package/dist/deliverables.test.d.ts.map +0 -1
  12. package/dist/deliverables.test.js +0 -232
  13. package/dist/deliverables.test.js.map +0 -1
  14. package/dist/domain/calendar.test.d.ts +0 -2
  15. package/dist/domain/calendar.test.d.ts.map +0 -1
  16. package/dist/domain/calendar.test.js +0 -181
  17. package/dist/domain/calendar.test.js.map +0 -1
  18. package/dist/domain/cpm.test.d.ts +0 -2
  19. package/dist/domain/cpm.test.d.ts.map +0 -1
  20. package/dist/domain/cpm.test.js +0 -166
  21. package/dist/domain/cpm.test.js.map +0 -1
  22. package/dist/domain/ddd.test.d.ts +0 -2
  23. package/dist/domain/ddd.test.d.ts.map +0 -1
  24. package/dist/domain/ddd.test.js +0 -349
  25. package/dist/domain/ddd.test.js.map +0 -1
  26. package/dist/domain/ladder.test.d.ts +0 -2
  27. package/dist/domain/ladder.test.d.ts.map +0 -1
  28. package/dist/domain/ladder.test.js +0 -213
  29. package/dist/domain/ladder.test.js.map +0 -1
  30. package/dist/domain/metrics.test.d.ts +0 -2
  31. package/dist/domain/metrics.test.d.ts.map +0 -1
  32. package/dist/domain/metrics.test.js +0 -252
  33. package/dist/domain/metrics.test.js.map +0 -1
  34. package/dist/domain/task-duration.test.d.ts +0 -2
  35. package/dist/domain/task-duration.test.d.ts.map +0 -1
  36. package/dist/domain/task-duration.test.js +0 -307
  37. package/dist/domain/task-duration.test.js.map +0 -1
  38. package/dist/domain/workload.test.d.ts +0 -2
  39. package/dist/domain/workload.test.d.ts.map +0 -1
  40. package/dist/domain/workload.test.js +0 -261
  41. package/dist/domain/workload.test.js.map +0 -1
  42. package/dist/engine/actor.test.d.ts +0 -2
  43. package/dist/engine/actor.test.d.ts.map +0 -1
  44. package/dist/engine/actor.test.js +0 -54
  45. package/dist/engine/actor.test.js.map +0 -1
  46. package/dist/engine/authorization.test.d.ts +0 -2
  47. package/dist/engine/authorization.test.d.ts.map +0 -1
  48. package/dist/engine/authorization.test.js +0 -154
  49. package/dist/engine/authorization.test.js.map +0 -1
  50. package/dist/engine/cascade.test.d.ts +0 -2
  51. package/dist/engine/cascade.test.d.ts.map +0 -1
  52. package/dist/engine/cascade.test.js +0 -99
  53. package/dist/engine/cascade.test.js.map +0 -1
  54. package/dist/engine/config.test.d.ts +0 -2
  55. package/dist/engine/config.test.d.ts.map +0 -1
  56. package/dist/engine/config.test.js +0 -46
  57. package/dist/engine/config.test.js.map +0 -1
  58. package/dist/engine/entity-events.test.d.ts +0 -2
  59. package/dist/engine/entity-events.test.d.ts.map +0 -1
  60. package/dist/engine/entity-events.test.js +0 -61
  61. package/dist/engine/entity-events.test.js.map +0 -1
  62. package/dist/index.test.d.ts +0 -2
  63. package/dist/index.test.d.ts.map +0 -1
  64. package/dist/index.test.js +0 -429
  65. package/dist/index.test.js.map +0 -1
  66. package/dist/plugins/plugins.test.d.ts +0 -2
  67. package/dist/plugins/plugins.test.d.ts.map +0 -1
  68. package/dist/plugins/plugins.test.js +0 -137
  69. package/dist/plugins/plugins.test.js.map +0 -1
  70. package/dist/schemas/schemas.test.d.ts +0 -2
  71. package/dist/schemas/schemas.test.d.ts.map +0 -1
  72. package/dist/schemas/schemas.test.js +0 -58
  73. package/dist/schemas/schemas.test.js.map +0 -1
  74. package/dist/status.test.d.ts +0 -2
  75. package/dist/status.test.d.ts.map +0 -1
  76. package/dist/status.test.js +0 -295
  77. package/dist/status.test.js.map +0 -1
  78. package/dist/storage/storage.test.d.ts +0 -2
  79. package/dist/storage/storage.test.d.ts.map +0 -1
  80. package/dist/storage/storage.test.js +0 -236
  81. package/dist/storage/storage.test.js.map +0 -1
  82. package/dist/store/conformance.test.d.ts +0 -2
  83. package/dist/store/conformance.test.d.ts.map +0 -1
  84. package/dist/store/conformance.test.js +0 -15
  85. package/dist/store/conformance.test.js.map +0 -1
  86. package/dist/store/firebase.test.d.ts +0 -2
  87. package/dist/store/firebase.test.d.ts.map +0 -1
  88. package/dist/store/firebase.test.js +0 -103
  89. package/dist/store/firebase.test.js.map +0 -1
  90. package/dist/store/query.test.d.ts +0 -2
  91. package/dist/store/query.test.d.ts.map +0 -1
  92. package/dist/store/query.test.js +0 -89
  93. package/dist/store/query.test.js.map +0 -1
  94. package/dist/store/sqlite.test.d.ts +0 -2
  95. package/dist/store/sqlite.test.d.ts.map +0 -1
  96. package/dist/store/sqlite.test.js +0 -177
  97. package/dist/store/sqlite.test.js.map +0 -1
  98. package/dist/task-state.test.d.ts +0 -2
  99. package/dist/task-state.test.d.ts.map +0 -1
  100. package/dist/task-state.test.js +0 -423
  101. package/dist/task-state.test.js.map +0 -1
  102. package/dist/use-case-validation.test.d.ts +0 -2
  103. package/dist/use-case-validation.test.d.ts.map +0 -1
  104. package/dist/use-case-validation.test.js +0 -281
  105. package/dist/use-case-validation.test.js.map +0 -1
  106. package/dist/utils/fractional-index.test.d.ts +0 -2
  107. package/dist/utils/fractional-index.test.d.ts.map +0 -1
  108. package/dist/utils/fractional-index.test.js +0 -182
  109. package/dist/utils/fractional-index.test.js.map +0 -1
  110. package/dist/utils/key.test.d.ts +0 -2
  111. package/dist/utils/key.test.d.ts.map +0 -1
  112. package/dist/utils/key.test.js +0 -65
  113. package/dist/utils/key.test.js.map +0 -1
  114. package/dist/utils/mentions.test.d.ts +0 -2
  115. package/dist/utils/mentions.test.d.ts.map +0 -1
  116. package/dist/utils/mentions.test.js +0 -114
  117. package/dist/utils/mentions.test.js.map +0 -1
  118. package/dist/webhooks/webhooks.test.d.ts +0 -2
  119. package/dist/webhooks/webhooks.test.d.ts.map +0 -1
  120. package/dist/webhooks/webhooks.test.js +0 -154
  121. package/dist/webhooks/webhooks.test.js.map +0 -1
  122. package/src/deliverables.test.ts +0 -284
  123. package/src/domain/authorization.ts +0 -82
  124. package/src/domain/calendar.test.ts +0 -216
  125. package/src/domain/calendar.ts +0 -502
  126. package/src/domain/cpm.test.ts +0 -189
  127. package/src/domain/cpm.ts +0 -258
  128. package/src/domain/custom-fields.ts +0 -172
  129. package/src/domain/ddd.test.ts +0 -442
  130. package/src/domain/entities.ts +0 -798
  131. package/src/domain/errors.ts +0 -38
  132. package/src/domain/events.ts +0 -369
  133. package/src/domain/graph.ts +0 -70
  134. package/src/domain/index.ts +0 -12
  135. package/src/domain/ladder.test.ts +0 -251
  136. package/src/domain/ladder.ts +0 -474
  137. package/src/domain/metrics.test.ts +0 -288
  138. package/src/domain/metrics.ts +0 -497
  139. package/src/domain/task-duration.test.ts +0 -354
  140. package/src/domain/workload.test.ts +0 -311
  141. package/src/domain/workload.ts +0 -457
  142. package/src/engine/actor.test.ts +0 -63
  143. package/src/engine/authorization.test.ts +0 -199
  144. package/src/engine/cascade.test.ts +0 -121
  145. package/src/engine/config.test.ts +0 -51
  146. package/src/engine/entity-events.test.ts +0 -67
  147. package/src/engine/index.ts +0 -2472
  148. package/src/index.test.ts +0 -514
  149. package/src/index.ts +0 -9
  150. package/src/plugins/index.ts +0 -103
  151. package/src/plugins/plugins.test.ts +0 -161
  152. package/src/schemas/index.ts +0 -402
  153. package/src/schemas/schemas.test.ts +0 -116
  154. package/src/status.test.ts +0 -354
  155. package/src/storage/file-storage.ts +0 -200
  156. package/src/storage/firebase-storage.ts +0 -209
  157. package/src/storage/index.ts +0 -3
  158. package/src/storage/s3.ts +0 -151
  159. package/src/storage/storage.test.ts +0 -274
  160. package/src/store/conformance.test.ts +0 -15
  161. package/src/store/firebase.test.ts +0 -131
  162. package/src/store/firebase.ts +0 -658
  163. package/src/store/index.ts +0 -623
  164. package/src/store/query.test.ts +0 -110
  165. package/src/store/query.ts +0 -113
  166. package/src/store/sqlite.test.ts +0 -218
  167. package/src/store/sqlite.ts +0 -1480
  168. package/src/task-state.test.ts +0 -506
  169. package/src/testing/conformance.ts +0 -319
  170. package/src/testing/index.ts +0 -1
  171. package/src/types/index.ts +0 -859
  172. package/src/use-case-validation.test.ts +0 -324
  173. package/src/utils/fractional-index.test.ts +0 -228
  174. package/src/utils/fractional-index.ts +0 -254
  175. package/src/utils/index.ts +0 -7
  176. package/src/utils/key.test.ts +0 -76
  177. package/src/utils/key.ts +0 -62
  178. package/src/utils/mentions.test.ts +0 -132
  179. package/src/utils/mentions.ts +0 -131
  180. package/src/utils/status.ts +0 -419
  181. package/src/utils/workflow.ts +0 -306
  182. package/src/webhooks/dispatcher.ts +0 -190
  183. package/src/webhooks/index.ts +0 -2
  184. package/src/webhooks/signature.ts +0 -57
  185. package/src/webhooks/webhooks.test.ts +0 -201
  186. package/tsconfig.json +0 -8
  187. package/tsconfig.tsbuildinfo +0 -1
package/CHANGELOG.md DELETED
@@ -1,584 +0,0 @@
1
- # @critical-path/core
2
-
3
- ## 0.35.0
4
-
5
- ### Minor Changes
6
-
7
- - b13f7c4: `InMemoryStore` returns copies.
8
-
9
- - **BREAKING:** `InMemoryStore` deep-copies (`structuredClone`) every argument and result, so mutating a returned record, or an input object you keep using, no longer changes stored state. This matches SQLite and Firestore. Call `update*` to change records.
10
- - The conformance suite checks that adapters return copies. `InMemoryFirestoreMock` now copies too, like real Firestore.
11
-
12
- ## 0.34.0
13
-
14
- ### Minor Changes
15
-
16
- - 1cc0d4c: Domain events for every team, container and iteration change, and collision-safe ids.
17
-
18
- - New events: `team.updated`, `team.deleted`, `container.updated`, `container.deleted`, `iteration.created`, `iteration.updated` and `iteration.deleted`. They are delivered to webhooks like other events; deleted events carry the ids needed to route them to the right tenant. Previously these changes published nothing.
19
- - Event ids and the ids generated by `InMemoryStore`, `SQLiteStore` and domain entities now use `crypto.randomUUID()` (e.g. `task_<uuid>`) instead of 7 random characters, which were likely to collide at around a million records.
20
-
21
- ## 0.33.0
22
-
23
- ### Minor Changes
24
-
25
- - aa94129: Storage adapter conformance suite and parity fixes.
26
-
27
- - New `@critical-path/core/testing` entry with `runStorageAdapterConformance({ name, createStore, describe, it, expect })`, the suite the built-in adapters run, for verifying custom adapters.
28
- - `SQLiteStore` no longer drops fields. Tasks keep `key`, `semanticStatus` and `todos`; projects keep `schedule`, `startDate` and `targetEndDate`; teams keep `weeklyCapacityHours` and `schedule`; attachments keep `artifactType`. Fields without a dedicated column are stored in a JSON `extra` column, which is added to existing databases automatically.
29
- - `FirebaseStore` applies every filter passed to `getAttachments` and `getActivities` (previously only the first), returns activities newest first and comments oldest first.
30
-
31
- ## 0.32.0
32
-
33
- ### Minor Changes
34
-
35
- - a3fe03d: Honour engine configuration options.
36
-
37
- - **BREAKING:** `store` must be a storage adapter instance (e.g. `new SQLiteStore({ filename })`). Strings such as `'sqlite'` used to fall back to an in-memory store silently; they now throw.
38
- - New `users` option: your app's user directory (an array, or a function called with the acting user), merged with `initialData.users`, which was previously ignored. New `engine.getUsers()`. Workload distribution now uses user names, weekly capacity and schedules.
39
-
40
- ## 0.31.0
41
-
42
- ### Minor Changes
43
-
44
- - 40e5958: Real S3 uploads and signed URLs, and server-chosen storage keys.
45
-
46
- **@critical-path/core**
47
- - **BREAKING:** `S3StorageAdapter` now takes your AWS SDK v3 `client`, `commands` (`PutObjectCommand`, `DeleteObjectCommand`, optional `GetObjectCommand`) and a `presign` function (`getSignedUrl` from `@aws-sdk/s3-request-presigner`). Uploads send real commands and propagate S3 errors; previously failures were swallowed and reported as success. Presigned uploads are actually signed and cover `Content-Type`. New `signedDownloads` for private buckets. The unused `accessKeyId`/`secretAccessKey`/`sessionToken`/`s3Client` options are removed.
48
- - **BREAKING:** `FirebaseStorageAdapter` requires a `bucket`; it no longer silently uses an in-memory mock. It throws instead of returning a public URL when the bucket cannot sign uploads.
49
- - **BREAKING:** `engine.getPresignedAttachmentUploadUrl({ projectId, filename, contentType?, expiresInSeconds? })` generates the storage key under `projects/<projectId>/`, instead of accepting a caller-chosen `storageKey`.
50
- - Attachments created through an actor view must use a `storageKey` under their project's prefix, so callers cannot register (and then delete) other projects' files. Uploads through views are always stored under the project prefix.
51
- - New `buildStorageKey` (validates path prefixes, crypto-random component) and `contentDispositionFor`. HTML, SVG and script uploads are stored as downloads.
52
-
53
- **@critical-path/server**
54
- - **BREAKING:** `POST /attachments/presign` takes `{ projectId, filename, contentType?, expiresInSeconds? }`. `POST /attachments/upload` no longer accepts `pathPrefix`.
55
-
56
- **@critical-path/client**
57
- - `getPresignedAttachmentUploadUrl` and `uploadAttachmentFile` use the updated request bodies.
58
-
59
- ## 0.30.0
60
-
61
- ### Minor Changes
62
-
63
- - cdb300a: Task filtering and pagination.
64
-
65
- **@critical-path/core**
66
- - New `engine.queryTasks(query)` and `engine.queryActivities(query)` return `Page<T>` (`{ items, nextCursor }`).
67
- - Tasks are ordered oldest first, activities newest first, using keyset cursors on `createdAt` then `id`.
68
- - Task filters: `status[]`, `priority[]`, `assigneeId` (also matches `assignees`), `iterationId`, `deliverableId`, `containerId`, `parentId` (`null` means top-level), `projectIds`.
69
- - Results are limited to projects the actor can read.
70
- - **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.
71
-
72
- **@critical-path/server**
73
- - **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`.
74
-
75
- **@critical-path/client**
76
- - `getTasks` and `getActivities` follow pagination and still return everything. New `queryTasks` and `queryActivities` return single pages.
77
-
78
- **@critical-path/mcp**
79
- - **BREAKING:** `list_tasks` returns `{ tasks, nextCursor }` and accepts `iterationId`, `limit` and `cursor`. It now filters in the store instead of loading every task.
80
-
81
- ## 0.29.0
82
-
83
- ### Minor Changes
84
-
85
- - a019d37: Cascading deletes and dependency removal.
86
-
87
- **@critical-path/core**
88
- - **BREAKING:** `deleteTask` now also deletes subtasks (recursively), dependencies, comments, attachments (including stored files and comment attachments) and time entries. Pass `{ subtasks: 'detach' }` to keep subtasks.
89
- - **BREAKING:** `deleteProject` also deletes containers, iterations, deliverables and project attachments. `project.deleted`'s `deletedTaskIds` includes subtasks.
90
- - Deleting a container, iteration or deliverable clears the reference on its tasks; nested containers are detached.
91
- - New `engine.removeDependency(id)` and `dependency.removed` event.
92
- - **BREAKING (storage adapters):** `DependencyRepository` gains `getDependency` and `removeDependency`, and `TimeEntryRepository` gains `deleteTimeEntry`.
93
- - `SQLiteStore` no longer returns `null` for unset optional fields.
94
- - `FirebaseStore` updates now remove fields cleared with `undefined` (for example, reopening a completed task now clears `completedAt`).
95
-
96
- **@critical-path/server**
97
- - New `DELETE /tasks/:id/dependencies/:dependencyId`. `DELETE /tasks/:id` accepts `?subtasks=detach`.
98
-
99
- **@critical-path/client**
100
- - New `removeDependency(taskId, dependencyId)`. `deleteTask(id, { subtasks })`.
101
-
102
- ## 0.28.0
103
-
104
- ### Minor Changes
105
-
106
- - 4fbbc40: Complete the plugin system.
107
-
108
- **@critical-path/core**
109
- - `plugin.init(engine)` now runs at startup. `engine.ready` resolves after seeding and every plugin's `init`; init failures reject `ready`.
110
- - **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.
111
- - **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`.
112
- - After-hook errors are logged with the plugin id instead of failing an already-stored write.
113
- - **BREAKING:** `beforeTaskDelete` and `afterTaskDelete` receive the task as a second argument.
114
- - **BREAKING:** required custom fields are enforced even when `customFields` is omitted.
115
- - New plugin `routes` and `middleware` types (`PluginRoute`, `PluginMiddleware`, `PluginRequestContext`).
116
-
117
- **@critical-path/server**
118
- - 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.
119
- - Awaits `engine.ready` before handling requests.
120
-
121
- **@critical-path/mcp**
122
- - Awaits `engine.ready` before running tools.
123
-
124
- ## 0.27.0
125
-
126
- ### Minor Changes
127
-
128
- - 1a516bd: Signed, retried webhooks driven by domain events.
129
-
130
- **@critical-path/core**
131
- - **BREAKING:** webhooks are delivered from the domain event bus instead of ad-hoc calls, so every published event is deliverable, including `task.updated`, `time.logged` and `dependency.added`.
132
- - The payload is now `{ id, event, occurredAt, tenantId?, data }`, where `data` is the domain event payload.
133
- - A status change delivers both `task.status_changed` and `task.updated` to webhooks subscribed to both.
134
- - Deliveries carry `X-CriticalPath-Event`, `X-CriticalPath-Delivery` (stable across retries), `X-CriticalPath-Timestamp` and `X-CriticalPath-Signature` (HMAC-SHA256). New exports: `verifyWebhookSignature`, `signWebhookPayload`, `generateWebhookSecret`.
135
- - New `webhookDelivery` engine option:
136
- - `timeoutMs` (default 10s), `maxAttempts` (default 5) and exponential `retryBaseDelayMs`.
137
- - A pluggable `queue`; the default is in-process.
138
- - `allowPrivateUrls` (default `false`).
139
- - `onDelivered` and `onDeliveryFailed` callbacks.
140
- - `engine.webhooks` exposes `deliver(job)` for custom queues and `idle()` for tests.
141
- - `config.webhooks` are now honoured as static webhooks.
142
- - New engine methods `getWebhooks`, `getWebhook`, `createWebhook` and `updateWebhook`/`deleteWebhook`. They require `workspace.manage` and are tenant-scoped. Secrets are generated when omitted, returned only on creation, and redacted afterwards (`PublicWebhook.hasSecret`).
143
- - **BREAKING:** `WebhookRepository` gains `getWebhook`, `updateWebhook` and `deleteWebhook`; custom storage adapters must implement them. `Webhook` gains `tenantId`, and `WebhookEvent` is now any domain event name or `'*'`. SQLite now persists the webhook `name` and `tenantId`.
144
- - New `DOMAIN_EVENT_NAMES`. The `project.deleted` and `workflow.deleted` payloads include `tenantId`; `attachment.deleted` includes `projectId`.
145
-
146
- **@critical-path/server**
147
- - New `GET/POST /webhooks` and `GET/PATCH/DELETE /webhooks/:id` routes. Event names are validated.
148
-
149
- **@critical-path/client**
150
- - New `getWebhooks`, `createWebhook`, `updateWebhook` and `deleteWebhook`.
151
-
152
- ## 0.26.0
153
-
154
- ### Minor Changes
155
-
156
- - 719e844: Role-based authorization and multi-tenancy.
157
-
158
- **@critical-path/core**
159
- - New `authorize` engine option and `createRolePolicy()`:
160
- - Project roles (`viewer`, `contributor`, `project_manager`, `admin`) come from `project.members`.
161
- - Workspace superusers come from `actor.roles`.
162
- - Authors manage their own comments and attachments.
163
- - Checks run on `withActor` views. Unreadable or cross-tenant projects behave as not found, denied actions throw the new `ForbiddenError`, and lists are filtered.
164
- - `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.
165
- - **BREAKING:** `Project.members` is now `{ userId, role }[]` (was `string[]`). Project creators become `admin` members.
166
- - New `engine.getActivities()` and `engine.getTimeEntries()`, which respect authorization.
167
- - **BREAKING:** on views, presigned uploads require `projectId` and are confined to `projects/<projectId>/`. The presign request schema now requires `projectId`.
168
- - `SQLiteStore` persists `tenantId` (migrated automatically).
169
-
170
- **@critical-path/server**
171
- - `RequestContext` gains `tenantId` and `roles`, which are passed to the actor. `ForbiddenError` maps to `403`. Activities and time entries are read through the engine.
172
-
173
- **@critical-path/client / @critical-path/mcp**
174
- - Rebuilt for the new presign `projectId` requirement and project member shape.
175
-
176
- ## 0.25.0
177
-
178
- ### Minor Changes
179
-
180
- - fd79762: **BREAKING:** strict request bodies, no identity in payloads, and CORS off by default.
181
-
182
- **@critical-path/core**
183
- - Request schemas are strict: unknown keys, server-assigned fields and identity fields are rejected instead of stripped.
184
- - 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'`.
185
- - Schemas export request body types (`CreateTaskBody`, `UpdateTaskBody`, ...).
186
-
187
- **@critical-path/server**
188
- - Bodies containing unknown, server-assigned or identity fields return `400`.
189
- - 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.
190
- - `DELETE /comments/:id/reactions` takes `?emoji=` only.
191
- - CORS is off by default (`cors: false`). Pass `cors: { origins: [...] }` to allow cross-origin browsers.
192
-
193
- **@critical-path/client**
194
- - 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.
195
- - New `updateProject`, `deleteProject` and `addDependency`. `uploadAttachmentFile` base64-encodes binary data (previously it sent unusable JSON for `Uint8Array`/`ArrayBuffer`).
196
- - 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`.
197
-
198
- **@critical-path/mcp**
199
- - Tool arguments are strict: undeclared arguments return an `isError` result.
200
- - `add_comment` no longer takes `authorId`. With an `engine`, writes are attributed to the new `actor` server option (default `DEFAULT_MCP_ACTOR`).
201
-
202
- **@critical-path/react / @critical-path/svelte**
203
- - `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.
204
-
205
- ## 0.24.0
206
-
207
- ### Minor Changes
208
-
209
- - b54e22c: Validate request bodies with shared zod schemas and publish an OpenAPI document.
210
-
211
- **@critical-path/core**
212
- - 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.
213
- - `ValidationError` carries an optional `issues: { path, message }[]`.
214
-
215
- **@critical-path/server**
216
- - 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.
217
- - 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.
218
- - New `GET /openapi.json` and `buildOpenApiDocument()` (OpenAPI 3.1, request bodies generated from the validation schemas).
219
-
220
- **@critical-path/mcp**
221
- - Tool `inputSchema`s are generated from their zod schemas via the new `defineTool`, removing the hand-written JSON copies.
222
-
223
- **@critical-path/svelte**
224
- - Rebuilt with the bundled `@critical-path/mcp` changes.
225
-
226
- ## 0.23.0
227
-
228
- ### Minor Changes
229
-
230
- - 6dd5529: Add request context, authentication hooks and actor attribution.
231
-
232
- **@critical-path/core**
233
- - 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.
234
-
235
- **@critical-path/server**
236
- - 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`).
237
- - 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.
238
- - `createSvelteKitHandler` options take `getContext(event)` so `event.locals` is available; `configOrRouter` is now optional.
239
- - New `createUniversalHandler(config, options)` for Workers, Deno, Bun and Hono.
240
- - `handleRequest(request, { getContext })` lets custom adapters supply a per-request resolver.
241
-
242
- **@critical-path/mcp**
243
- - 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.
244
-
245
- ## 0.22.0
246
-
247
- ### Minor Changes
248
-
249
- - b243a37: Fix correctness and safety issues found in a code audit.
250
-
251
- **@critical-path/core**
252
- - `SQLiteStore` now loads `node:sqlite` via `process.getBuiltinModule`, fixing `require is not defined` when constructed from a filename in plain Node ESM.
253
- - Removed the unused `better-sqlite3` runtime dependency.
254
- - `engine.addDependency` now detects indirect cycles (e.g. A → B → C → D → A), not just cycles between direct neighbours.
255
- - Fixed `generateKeyBetween` returning out-of-range, duplicate keys after repeated inserts after the same item. It now throws a `RangeError` when `a >= b`.
256
- - Added `engine.deleteProject(id)`, which deletes a project's tasks through `deleteTask` and publishes a new `project.deleted` event and webhook.
257
- - Added exported `ValidationError` and `NotFoundError` classes. `logTime` now rejects non-numeric hours.
258
-
259
- **@critical-path/server**
260
- - `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.
261
- - Added `PATCH /projects/:id`.
262
- - `DELETE` on a resource that does not exist now returns `404` instead of `200 { success: false }`.
263
- - Malformed JSON returns `400`, validation errors `400`, `NotFoundError` `404`, and dependency cycles `409`. Unexpected errors return a generic `500` message outside development.
264
- - `OPTIONS` preflight requests return `204` with CORS headers.
265
- - 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'`).
266
- - `createNextHandler` returns a callable handler that also exposes per-method properties, so `export { handler as GET }` works as documented.
267
-
268
- **@critical-path/mcp**
269
- - Tools excluded via the `tools` option can no longer be called by name.
270
- - Tool arguments are validated with each tool's zod schema; undeclared fields are stripped.
271
- - Tool listings include `title` and MCP `readOnlyHint` / `destructiveHint` annotations.
272
-
273
- **@critical-path/svelte**
274
- - Rebuilt with the bundled `@critical-path/mcp` WebMCP argument validation.
275
-
276
- **@critical-path/client**
277
- - Delete methods resolve to `false` when the server returns `404`, keeping their boolean contract with the new server behaviour.
278
-
279
- ## 0.21.0
280
-
281
- ### Minor Changes
282
-
283
- - f3301bf: - Added comprehensive task lifecycle and semantic status predicates (`isDraftTask`, `isArchivedTask`, `isTrashedTask`, `isTrashedOrArchivedTask`, `isWorkflowTask`, `getTaskSemanticStatus`, `isTaskCompleted`, `isTaskInProgress`, `isTaskNotStarted`, `isTaskCanceled`, `isTaskActive`, `isTaskUnassigned`).
284
- - 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.
285
- - Added Base-62 fractional indexing utilities (`generateKeyBetween`, `generateNKeysBetween`) for zero-cost lexical task/item reordering without array shifting or bulk database rewrites.
286
- - 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`.
287
- - 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.
288
-
289
- ## 0.20.2
290
-
291
- ### Patch Changes
292
-
293
- - b8a68dd: Track task blocked duration while active in progress:
294
- - Add `blockedDurationSeconds` and `blockedSince` to `Task` and `TaskInferredActuals`
295
- - Update `TaskEntity` to stamp `blockedSince` when blocked while `in_progress` and accumulate elapsed blocked time into `blockedDurationSeconds` upon unblocking or exiting `in_progress`
296
- - Update `CriticalPathEngine.updateTask` and `checkAndUnblockDownstreamTasks` to manage `blockedSince` and `blockedDurationSeconds` lifecycle transitions
297
- - Update SQLite storage schema and statements to persist `blockedDurationSeconds` and `blockedSince`
298
-
299
- ## 0.20.1
300
-
301
- ### Patch Changes
302
-
303
- - 500b353: Standardize task blocker state on `isBlocked` as the single source of truth:
304
- - Persist `isBlocked` and `blockedReason` on task creation in `engine.createTask`
305
- - Rely strictly on `task.isBlocked` in `engine.updateTask` when detecting blocked transitions
306
- - Remove redundant checks and mutations of `customFields.isBlocked` and `status === 'blocked'` during downstream dependency auto-unblocking
307
- - Update `deriveTaskLifecycleState` to evaluate `task.isBlocked === true`
308
-
309
- ## 0.20.0
310
-
311
- ### Minor Changes
312
-
313
- - c83235b: Add task execution timestamps and cumulative in-progress duration tracking:
314
- - Introduce `actualDurationSeconds` and `inProgressSince` to `Task` and `TaskEntity`
315
- - Automatically timestamp `actualStartDate` (retaining earliest) and begin session timer when transitioning to `in_progress`
316
- - Automatically accumulate duration delta into `actualDurationSeconds` when leaving `in_progress` (pausing/completing)
317
- - Automatically timestamp `actualEndDate` when entering `completed` or `canceled`, and reset `actualEndDate` to `undefined` upon reopening
318
- - Mutually synchronize manual edits between `actualDurationSeconds` and `actualHours`
319
- - Export `formatTaskDuration(seconds, options)` with dynamic scoping (`< 120s`, `< 1 day`, `>= 1 day`)
320
- - Add `calendarDurationHours` and `actualDurationSeconds` to `TaskInferredActuals`
321
-
322
- ## 0.19.1
323
-
324
- ### Patch Changes
325
-
326
- - f816145: Preserve real actor identity and metadata in `updateTask`, activity logs, and domain events, preventing status changes and updates from erroneously attributing the task's assignee as the initiating actor.
327
-
328
- ## 0.19.0
329
-
330
- ### Minor Changes
331
-
332
- - 31a6dde: Promote task blocking state (`isBlocked: boolean` and `blockedReason: string | null`) to first-class fields on `Task`, `CreateTaskInput`, and `UpdateTaskInput`.
333
-
334
- - **Domain Events**: Introduced `TaskBlockedEvent` (`task.blocked`) and updated `TaskUnblockedEvent` (`task.unblocked`) to support explicit unblocking.
335
- - **Lifecycle Derivation**: Updated `deriveTaskStatus` and `deriveTaskLifecycleState` to reflect `task.isBlocked` directly alongside upstream dependency checks.
336
- - **Engines & Storage**: Added `isBlocked` and `blockedReason` persistence to `SQLiteStore`, `FirebaseStore`, and `InMemoryStore`.
337
- - **MCP Server**: Added `isBlocked` and `blockedReason` parameter options to `create_task` and `update_task` tool schemas.
338
- - 31a6dde: Add comprehensive Work Schedule, Working Hours, Working Days & Holidays subsystem:
339
- - Added `WorkSchedule`, `DaySchedule`, `WorkingHoursRange`, and `Holiday` types supporting custom shifts, weekend configurations, and organization/regional holidays.
340
- - Integrated hierarchical calendar resolution: Task Assignee/Team -> Project -> Engine/Default (`DEFAULT_WORK_SCHEDULE`).
341
- - Enhanced Critical Path Method (CPM) with calendar working-hours math (`earlyStartDate`, `earlyFinishDate`, `lateStartDate`, `lateFinishDate`, `totalWorkingHours`, `projectEndDate`) skipping weekends and holidays.
342
- - Enhanced Workload & Capacity Engine with working-day effort distribution and holiday capacity deductions.
343
- - Added working-days schedule variance (`scheduleVarianceWorkingDays`) to Reality Deltas in the Ladder of Abstraction.
344
-
345
- ## 0.18.0
346
-
347
- ### Minor Changes
348
-
349
- - 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.
350
-
351
- ## 0.17.0
352
-
353
- ### Minor Changes
354
-
355
- - 9c31e8d: Introduce comprehensive Task Metrics, Inferred Actuals, Progress Inference, Earned Value Management (EVM), and Time-Series Progress History Curve Profiling.
356
- - **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.
357
- - **Reality Delta**: Multi-dimensional variance analysis comparing planned estimates to logged hours (`effortVarianceHours`, `durationVarianceHours`, `accuracyRatio`, `isOverdue`, `isOverEstimate`).
358
- - **Progress Inference**: Deterministic priority waterfall resolving completion progress across explicit values, checklist/todo completion ratios, logged effort, and elapsed schedule time.
359
- - **Earned Value Management (EVM)**: Task-level PV, EV, AC, CV, SV, CPI, and SPI calculations.
360
- - **Time-Series History & Curve Shapes**: Historical timeline reconstruction from activity logs with piecewise interpolation curve classification (`linear`, `s_curve`, `early_surge`, `late_rush`, `stalled`).
361
- - **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`).
362
-
363
- ## 0.16.0
364
-
365
- ### Minor Changes
366
-
367
- - e2a7eef: Introduce Ladder of Abstraction and Critical Path Method (CPM) timeline synthesis to the framework data model:
368
- - **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`.
369
- - **Server Router**: HTTP endpoints `GET /projects/:id/critical-path`, `GET /projects/:id/ladder`, and `GET /tasks/:id/ladder`.
370
- - **Client SDK**: `CriticalPathClient` methods `calculateCriticalPath`, `getTimelineLadder`, and `getTaskLadder`.
371
- - **MCP**: New AI tools `calculate_critical_path`, `get_timeline_ladder`, and `get_task_ladder`.
372
- - **React**: Custom hooks `useTimelineLadder`, `useCriticalPath`, and `useTaskLadder`.
373
- - **Svelte 5**: Svelte 5 Runes state classes `TimelineLadderState` and `CriticalPathState`.
374
-
375
- ## 0.15.2
376
-
377
- ### Patch Changes
378
-
379
- - dbd2072: Add comprehensive unit test coverage for task state lifecycle behaviors and upstream/downstream dependency validation.
380
-
381
- ## 0.15.1
382
-
383
- ### Patch Changes
384
-
385
- - f53afab: Add automated downstream task unblocking on task completion, full bidirectional VFX and Creative workflow transitions, and bidirectional dependency querying in FirebaseStore.
386
-
387
- ## 0.15.0
388
-
389
- ### Minor Changes
390
-
391
- - 21eb85c: Implement Universal Semantic Statuses & System-Derived Implied Statuses (3-Tier Status Architecture)
392
-
393
- - **Tier 1 (Universal Semantic Statuses)**: Defined canonical status enum `SemanticStatus = 'not_started' | 'in_progress' | 'completed' | 'canceled'` providing universal semantic meaning across any industry domain.
394
- - **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.
395
- - **Tier 3 (System-Derived Implied Statuses)**: Added `deriveTaskLifecycleState` and `engine.getTaskLifecycleState(taskId)` returning dynamic indicators:
396
- - Dependency: `isReady`, `isBlocked`, `blockingTaskIds`
397
- - Schedule: `isOverdue`, `isUpcoming`, `isUnplanned`
398
- - Ownership: `isUnassigned`, `isStalled`
399
- - Estimate/Pace: `isOverEstimate`, `isPaceWarning`
400
- - Convenience flags: `isDone`, `isActive`, `isCancelled`
401
- - **Domain Entities & Engine**: Added automatic timestamp progression (`actualStartDate`, `actualEndDate`), progress completion, and event emission driven by semantic status categories.
402
- - **React UI Hooks**: Updated `useKanban` to support dynamic custom workflow columns without dropping tasks, plus added `groupBy: 'semantic' | 'workflow'` option.
403
- - **Client SDK**: Added `client.getTaskLifecycleState(taskId)`.
404
-
405
- ## 0.14.0
406
-
407
- ### Minor Changes
408
-
409
- - 3dc2798: feat(core): add readAttachmentText engine method, download on storage adapters, and artifactType metadata
410
-
411
- ## 0.13.3
412
-
413
- ### Patch Changes
414
-
415
- - 573a4fa: Fix mention regex to avoid capturing trailing punctuation like periods or commas in unquoted handles
416
-
417
- ## 0.13.2
418
-
419
- ### Patch Changes
420
-
421
- - 03d269c: Make getAllowedNextStatuses strictly forward and symmetrical with getAllowedPreviousStatuses by constraining to downstream statuses in workflow sequence.
422
-
423
- ## 0.13.1
424
-
425
- ### Patch Changes
426
-
427
- - a7d17c0: Add backward status transitions to default workflows and align allowed previous statuses with workflow transitions
428
-
429
- ## 0.13.0
430
-
431
- ### Minor Changes
432
-
433
- - a4a464b: Support multi-assignees and backward workflow status transitions:
434
- - Add `TaskAssignee` interface (`id`, `name`, `role`, `type: 'user' | 'agent' | 'team'`, `avatarUrl`) and `assignees?: TaskAssignee[]` to `Task` entity and SQLite storage adapter.
435
- - Add `getAllowedPreviousStatuses(workflow, currentStatus)` utility and `CriticalPathEngine.getAllowedPreviousTaskTransitions(taskId)` for calculating valid backward transitions.
436
- - Expose `allowedPreviousStatuses` in server endpoint `GET /tasks/:taskId/transitions`.
437
- - Add `getAllowedPreviousTaskTransitions(taskId)` to `CriticalPathClient` SDK.
438
-
439
- ## 0.12.0
440
-
441
- ### Minor Changes
442
-
443
- - 5a5930f: Add first-class Deliverable entity, Creative Workflow presets, and reactive UI bindings:
444
- - `@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.
445
- - `@critical-path/server`: Added RESTful API endpoints for `/deliverables` and `/deliverables/:id/summary`.
446
- - `@critical-path/client`: Added deliverable management and summary methods to `CriticalPathClient`.
447
- - `@critical-path/react`: Added `useDeliverables` and `useDeliverableSummary` React hooks.
448
- - `@critical-path/svelte`: Added `DeliverableState` and `createDeliverableState` Svelte 5 Runes state management.
449
-
450
- ## 0.11.0
451
-
452
- ### Minor Changes
453
-
454
- - 55549e9: Support @mentions in comments with extraction and segmentation utilities
455
-
456
- - Add `mentions?: string[]` to `Comment` interface
457
- - Add `extractMentions` and `parseMentionSegments` utilities for mention parsing and UI rendering
458
- - Auto-extract and populate mentions during `addComment` and `updateComment` in the engine
459
- - Update SQLite comments schema with `mentions` column and migration
460
- - Preserve and pass through mentions in server routes, client SDK, and Svelte bindings
461
-
462
- ## 0.10.0
463
-
464
- ### Minor Changes
465
-
466
- - e9003d3: Add emoji reactions support for comment conversations with domain events, deduplication, REST endpoints, client SDK, and React/Svelte state integrations.
467
-
468
- ## 0.9.0
469
-
470
- ### Minor Changes
471
-
472
- - 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.
473
-
474
- ## 0.8.3
475
-
476
- ### Patch Changes
477
-
478
- - 2d5ff04: fix(core): decode base64 strings and data URIs into binary Uint8Array in storage adapters
479
-
480
- ## 0.8.2
481
-
482
- ### Patch Changes
483
-
484
- - fix(core): decode base64 strings and data URIs into binary Uint8Array in storage adapters
485
-
486
- ## 0.8.1
487
-
488
- ### Patch Changes
489
-
490
- - 315425c: fix(core): generate Firebase Storage download tokens and construct valid public URLs
491
-
492
- ## 0.8.0
493
-
494
- ### Minor Changes
495
-
496
- - 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.
497
-
498
- ## 0.7.0
499
-
500
- ### Minor Changes
501
-
502
- - a48a04a: Add threaded conversations, attachment metadata management, and storage adapters (S3 & Firebase Storage):
503
-
504
- - **`@critical-path/core`**:
505
- - Added `Attachment` entity, `CreateAttachmentInput`, `UploadFileInput`, and `FileStorageAdapter` contracts.
506
- - 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).
507
- - Extended `Comment` with `authorType` (`user`, `agent`, `system`) and `parentId` for threaded discussions.
508
- - Implemented full comment and attachment repository methods across `InMemoryStore`, `SQLiteStore`, and `FirebaseStore`.
509
- - Added engine operations for upload, presigning, and deleting attachments with domain events (`comment.*`, `attachment.*`) and webhooks.
510
-
511
- - **`@critical-path/server`**:
512
- - Added RESTful routes for comments (`GET/POST /tasks/:taskId/comments`, `GET/POST /comments`, `GET/PATCH/DELETE /comments/:id`).
513
- - Added RESTful routes for attachments (`GET/POST /tasks/:taskId/attachments`, `GET/POST /attachments`, `GET/DELETE /attachments/:id`, `POST /attachments/presign`).
514
-
515
- - **`@critical-path/client`**:
516
- - Added SDK methods `getComments`, `getComment`, `addComment`, `updateComment`, `deleteComment`.
517
- - Added SDK methods `getAttachments`, `getAttachment`, `createAttachment`, `deleteAttachment`, and `getPresignedAttachmentUploadUrl`.
518
-
519
- - **`@critical-path/react`**:
520
- - Added `useComments(taskId)` with reactive thread tree derivation (`threads` containing nested `replies`) and comment mutations.
521
- - Added `useAttachments(filter)` with attachment creation and deletion.
522
-
523
- - **`@critical-path/svelte`**:
524
- - Added Svelte 5 Rune-based `CommentState` / `createCommentState(client, taskId)` with derived threaded hierarchy.
525
- - Added Svelte 5 Rune-based `AttachmentState` / `createAttachmentState(client, filter)`.
526
-
527
- ## 0.6.0
528
-
529
- ### Minor Changes
530
-
531
- - 6e9dece: Introduce Domain-Driven Design (DDD) constructs:
532
- - Rich Domain Aggregates (`TaskEntity`, `ProjectEntity`, `BaseEntity`) encapsulating invariants, transitions, and uncommitted events.
533
- - Typed `DomainEventBus` and domain event interfaces (`task.created`, `task.status_changed`, `time.logged`, `dependency.added`, etc.).
534
- - DAG task dependency graph cycle detection (`detectDependencyCycle`, `CircularDependencyError`).
535
- - Custom field value object validation (`validateCustomFieldValues`, `CustomFieldValidationError`).
536
- - Interface segregation for discrete repositories (`ProjectRepository`, `TaskRepository`, `WorkflowRepository`, etc.).
537
-
538
- ## 0.5.2
539
-
540
- ### Patch Changes
541
-
542
- - c24b76c: Set `isDefault: false` on DEFAULT_SOFTWARE_WORKFLOW so only DEFAULT_SIMPLE_WORKFLOW is default
543
-
544
- ## 0.5.1
545
-
546
- ### Patch Changes
547
-
548
- - 34067fd: Make node:sqlite import browser-safe for web bundlers
549
-
550
- ## 0.5.0
551
-
552
- ### Minor Changes
553
-
554
- - 83a5c17: Add `DEFAULT_VFX_WORKFLOW` preset and validation suite for Software Development and Visual Effects (VFX) production use cases.
555
-
556
- ## 0.4.0
557
-
558
- ### Minor Changes
559
-
560
- - 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.
561
-
562
- ## 0.3.0
563
-
564
- ### Minor Changes
565
-
566
- - 4b92228: Add project short key utilities (`generateProjectKey`, `validateProjectKey`, `formatTaskKey`) and automatic key generation fallback in `createProject`.
567
-
568
- ## 0.2.1
569
-
570
- ### Patch Changes
571
-
572
- - df22aad: Remove implicit InMemoryFirestoreMock fallback and require explicit db parameter in FirebaseStore constructor
573
-
574
- ## 0.2.0
575
-
576
- ### Minor Changes
577
-
578
- - 755286a: Add native `SQLiteStore` (using `node:sqlite`) and `FirebaseStore` (Firestore) storage adapters with full CRUD support for projects, tasks, sprints, comments, activities, time entries, dependencies, and webhooks.
579
-
580
- ## 0.1.2
581
-
582
- ### Patch Changes
583
-
584
- - Initial open-source release of the core headless domain engine, plugin lifecycle hooks, and in-memory store.
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=deliverables.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deliverables.test.d.ts","sourceRoot":"","sources":["../src/deliverables.test.ts"],"names":[],"mappings":""}