@semiont/ontology 0.5.6 → 0.5.7

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 (2) hide show
  1. package/README.md +4 -6
  2. package/package.json +5 -2
package/README.md CHANGED
@@ -59,9 +59,7 @@ Extract entity types from annotation bodies:
59
59
 
60
60
  ```typescript
61
61
  import { getEntityTypes } from '@semiont/ontology';
62
- import type { components } from '@semiont/api-client';
63
-
64
- type Annotation = components['schemas']['Annotation'];
62
+ import type { Annotation } from '@semiont/core';
65
63
 
66
64
  const annotation: Annotation = {
67
65
  motivation: 'linking',
@@ -134,7 +132,7 @@ From [src/tag-collections.ts](src/tag-collections.ts): Interfaces for managing e
134
132
 
135
133
  ## Dependencies
136
134
 
137
- - `@semiont/api-client`: For W3C annotation type definitions
135
+ - `@semiont/core`: For the `Annotation` type
138
136
 
139
137
  ## Package Structure
140
138
 
@@ -154,8 +152,8 @@ packages/ontology/
154
152
 
155
153
  ## Notes
156
154
 
157
- - **Bootstrap service**: The entity types bootstrap logic remains in `apps/backend/src/bootstrap/entity-types-bootstrap.ts` to avoid circular dependency with `@semiont/core`.
158
- - **Annotation type guards**: Type guards like `isHighlight()`, `isReference()`, etc. remain in `@semiont/api-client` as the OpenAPI spec is the source of truth for W3C motivations.
155
+ - **Bootstrap service**: The entity types bootstrap logic lives in `packages/make-meaning/src/bootstrap/entity-types.ts` it needs `EventBus`/`EventStore`, which don't belong in this package.
156
+ - **Annotation type guards**: Type guards like `isHighlight()`, `isReference()`, etc. live in `@semiont/core` (`src/web-annotation-utils.ts`).
159
157
 
160
158
  ## License
161
159
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@semiont/ontology",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "engines": {
5
5
  "node": ">=24.0.0"
6
6
  },
7
7
  "type": "module",
8
- "description": "Entity types, tag schemas, and W3C annotation vocabularies",
8
+ "description": "Entity types and annotation-body extraction utilities for the Semiont annotation system",
9
9
  "main": "./dist/index.js",
10
10
  "types": "./dist/index.d.ts",
11
11
  "exports": {
@@ -18,6 +18,9 @@
18
18
  "dist",
19
19
  "README.md"
20
20
  ],
21
+ "dependencies": {
22
+ "@semiont/core": "*"
23
+ },
21
24
  "scripts": {
22
25
  "build": "npm run typecheck && tsup && tsc -p tsconfig.build.json && rollup -c rollup.dts.config.mjs && rm -rf dist-types",
23
26
  "typecheck": "tsc --noEmit",