Skip to content

Commit f4b3353

Browse files
committed
docs(kernel): add the MetadataWatchEvent row this PR's own fence now depends on
Restoring subscribe? to the Interface Definition fence brought in MetadataWatchEvent, the only Metadata* type in that fence without a row in the page's own Types Reference table. Read the shape from its actual declaration (packages/spec/src/system/metadata-persistence.zod.ts, MetadataWatchEventSchema) rather than inferring it from MetadataWatchCallback's differently-shaped event. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
1 parent a7a3b19 commit f4b3353

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎content/docs/kernel/contracts/metadata-service.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ console.log(result.failed); // failed
328328
| `MetadataBulkResult` | Result of `bulkRegister` / `bulkUnregister` |
329329
| `MetadataWatchCallback` | `(event: { type, metadataType, name, data? }) => void` |
330330
| `MetadataWatchHandle` | `{ unsubscribe(): void }` |
331+
| `MetadataWatchEvent` | `subscribe`'s callback argument: `{ type: 'added' \| 'changed' \| 'deleted', path, name?, stats?, metadataType?, data?, timestamp? }` |
331332
| `PackagePublishResult` | `{ success, packageId, version, publishedAt, itemsPublished, validationErrors? }` |
332333

333334
---

0 commit comments

Comments
 (0)