@semiont/make-meaning 0.5.28 → 0.5.29
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/README.md +7 -5
- package/dist/archivist-main.d.ts +2 -0
- package/dist/archivist-main.js +12568 -0
- package/dist/archivist-main.js.map +1 -0
- package/dist/index.d.ts +649 -460
- package/dist/index.js +580 -1060
- package/dist/index.js.map +1 -1
- package/dist/librarian-main.d.ts +2 -0
- package/dist/librarian-main.js +11449 -0
- package/dist/librarian-main.js.map +1 -0
- package/dist/smelter-main.js +21 -15
- package/dist/smelter-main.js.map +1 -1
- package/dist/weaver-main.d.ts +2 -0
- package/dist/weaver-main.js +13 -8
- package/dist/weaver-main.js.map +1 -1
- package/package.json +27 -16
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ Two **projection pipelines** follow the event log to keep the eventually-consist
|
|
|
27
27
|
|
|
28
28
|
All seven actors subscribe to the EventBus via RxJS pipelines and expose no public business methods — only `initialize()` and `stop()`, plus a startup recovery entry point on the pipelines (`rebuildAll()` / `reconcile()`). Callers communicate with the access actors by putting events on the bus.
|
|
29
29
|
|
|
30
|
-
The EventBus is a **complete interface** for all knowledge-domain operations. HTTP routes in the
|
|
30
|
+
The EventBus is a **complete interface** for all knowledge-domain operations. HTTP routes in the gateway are thin wrappers that delegate to EventBus actors. The `@semiont/http-transport` exposes the same operations via verb-oriented namespaces (`semiont.browse`, `semiont.mark`, `semiont.gather`, etc.).
|
|
31
31
|
|
|
32
32
|
## Quick Start
|
|
33
33
|
|
|
@@ -45,7 +45,9 @@ import type { Logger } from '@semiont/core';
|
|
|
45
45
|
|
|
46
46
|
// EventBus is created outside make-meaning — it is not encapsulated by this package
|
|
47
47
|
const eventBus = new EventBus();
|
|
48
|
-
const project = new SemiontProject('/path/to/project'
|
|
48
|
+
const project = new SemiontProject('/path/to/project', {
|
|
49
|
+
anchoredTextDir: process.env.SEMIONT_ANCHORED_TEXT_DIR!,
|
|
50
|
+
});
|
|
49
51
|
|
|
50
52
|
// Start all infrastructure
|
|
51
53
|
const makeMeaning = await startMakeMeaning(project, config, eventBus, logger);
|
|
@@ -103,7 +105,7 @@ All meaningful actions flow through the EventBus. The KB actors are reactive —
|
|
|
103
105
|
|
|
104
106
|
```mermaid
|
|
105
107
|
graph TB
|
|
106
|
-
Routes["
|
|
108
|
+
Routes["Gateway Routes"] -->|commands| BUS["Event Bus"]
|
|
107
109
|
Workers["Job Workers"] -->|commands| BUS
|
|
108
110
|
EBC["SemiontClient"] -->|commands| BUS
|
|
109
111
|
|
|
@@ -183,7 +185,7 @@ const kb = await createKnowledgeBase(eventStore, project, graphDb, eventBus, log
|
|
|
183
185
|
|
|
184
186
|
### EventBus Ownership
|
|
185
187
|
|
|
186
|
-
The EventBus is created by the
|
|
188
|
+
The EventBus is created by the gateway (or script) and passed into `startMakeMeaning()` as a dependency. Make-meaning does not own or encapsulate the EventBus — it is shared across the entire system.
|
|
187
189
|
|
|
188
190
|
### Pure projection validators
|
|
189
191
|
|
|
@@ -204,7 +206,7 @@ This pattern (functional core, imperative shell) is shared with `@semiont/event-
|
|
|
204
206
|
- **[API Reference](./docs/api-reference.md)** — Context modules and operations
|
|
205
207
|
- **[Examples](./docs/examples.md)** — Common use cases and patterns
|
|
206
208
|
- **[Job Workers](./docs/job-workers.md)** — Async annotation workers (in @semiont/jobs)
|
|
207
|
-
- **[Scripting](./docs/SCRIPTING.md)** — Direct scripting without HTTP
|
|
209
|
+
- **[Scripting](./docs/SCRIPTING.md)** — Direct scripting without HTTP gateway
|
|
208
210
|
|
|
209
211
|
## Exports
|
|
210
212
|
|