@semiont/make-meaning 0.5.4 → 0.5.5

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 (93) hide show
  1. package/dist/index.d.ts +1244 -37
  2. package/dist/index.js +1325 -1325
  3. package/dist/index.js.map +1 -1
  4. package/dist/smelter-main.d.ts +2 -16
  5. package/dist/smelter-main.js +1325 -1325
  6. package/dist/smelter-main.js.map +1 -1
  7. package/package.json +5 -3
  8. package/dist/annotation-assembly.d.ts +0 -8
  9. package/dist/annotation-assembly.d.ts.map +0 -1
  10. package/dist/annotation-context.d.ts +0 -104
  11. package/dist/annotation-context.d.ts.map +0 -1
  12. package/dist/annotation-operations.d.ts +0 -41
  13. package/dist/annotation-operations.d.ts.map +0 -1
  14. package/dist/batch-utils.d.ts +0 -14
  15. package/dist/batch-utils.d.ts.map +0 -1
  16. package/dist/bootstrap/entity-types.d.ts +0 -26
  17. package/dist/bootstrap/entity-types.d.ts.map +0 -1
  18. package/dist/browser.d.ts +0 -45
  19. package/dist/browser.d.ts.map +0 -1
  20. package/dist/clone-token-manager.d.ts +0 -31
  21. package/dist/clone-token-manager.d.ts.map +0 -1
  22. package/dist/config.d.ts +0 -55
  23. package/dist/config.d.ts.map +0 -1
  24. package/dist/embedding-store.d.ts +0 -63
  25. package/dist/embedding-store.d.ts.map +0 -1
  26. package/dist/event-enrichment.d.ts +0 -5
  27. package/dist/event-enrichment.d.ts.map +0 -1
  28. package/dist/exchange/backup-exporter.d.ts +0 -43
  29. package/dist/exchange/backup-exporter.d.ts.map +0 -1
  30. package/dist/exchange/backup-importer.d.ts +0 -41
  31. package/dist/exchange/backup-importer.d.ts.map +0 -1
  32. package/dist/exchange/index.d.ts +0 -10
  33. package/dist/exchange/index.d.ts.map +0 -1
  34. package/dist/exchange/linked-data-exporter.d.ts +0 -42
  35. package/dist/exchange/linked-data-exporter.d.ts.map +0 -1
  36. package/dist/exchange/linked-data-importer.d.ts +0 -44
  37. package/dist/exchange/linked-data-importer.d.ts.map +0 -1
  38. package/dist/exchange/manifest.d.ts +0 -42
  39. package/dist/exchange/manifest.d.ts.map +0 -1
  40. package/dist/exchange/replay.d.ts +0 -37
  41. package/dist/exchange/replay.d.ts.map +0 -1
  42. package/dist/exchange/tar.d.ts +0 -34
  43. package/dist/exchange/tar.d.ts.map +0 -1
  44. package/dist/gatherer.d.ts +0 -45
  45. package/dist/gatherer.d.ts.map +0 -1
  46. package/dist/generation/resource-generation.d.ts +0 -20
  47. package/dist/generation/resource-generation.d.ts.map +0 -1
  48. package/dist/graph/consumer.d.ts +0 -104
  49. package/dist/graph/consumer.d.ts.map +0 -1
  50. package/dist/graph-context.d.ts +0 -56
  51. package/dist/graph-context.d.ts.map +0 -1
  52. package/dist/handlers/annotation-assembly.d.ts +0 -19
  53. package/dist/handlers/annotation-assembly.d.ts.map +0 -1
  54. package/dist/handlers/annotation-lookups.d.ts +0 -8
  55. package/dist/handlers/annotation-lookups.d.ts.map +0 -1
  56. package/dist/handlers/bind-update-body.d.ts +0 -19
  57. package/dist/handlers/bind-update-body.d.ts.map +0 -1
  58. package/dist/handlers/index.d.ts +0 -27
  59. package/dist/handlers/index.d.ts.map +0 -1
  60. package/dist/handlers/job-commands.d.ts +0 -5
  61. package/dist/handlers/job-commands.d.ts.map +0 -1
  62. package/dist/index.d.ts.map +0 -1
  63. package/dist/knowledge-base.d.ts +0 -40
  64. package/dist/knowledge-base.d.ts.map +0 -1
  65. package/dist/knowledge-system.d.ts +0 -32
  66. package/dist/knowledge-system.d.ts.map +0 -1
  67. package/dist/llm-context.d.ts +0 -26
  68. package/dist/llm-context.d.ts.map +0 -1
  69. package/dist/local-content-transport.d.ts +0 -41
  70. package/dist/local-content-transport.d.ts.map +0 -1
  71. package/dist/local-transport.d.ts +0 -80
  72. package/dist/local-transport.d.ts.map +0 -1
  73. package/dist/matcher.d.ts +0 -60
  74. package/dist/matcher.d.ts.map +0 -1
  75. package/dist/resource-context.d.ts +0 -44
  76. package/dist/resource-context.d.ts.map +0 -1
  77. package/dist/resource-operations.d.ts +0 -38
  78. package/dist/resource-operations.d.ts.map +0 -1
  79. package/dist/service.d.ts +0 -21
  80. package/dist/service.d.ts.map +0 -1
  81. package/dist/smelter-actor-state-unit.d.ts +0 -31
  82. package/dist/smelter-actor-state-unit.d.ts.map +0 -1
  83. package/dist/smelter-main.d.ts.map +0 -1
  84. package/dist/smelter.d.ts +0 -95
  85. package/dist/smelter.d.ts.map +0 -1
  86. package/dist/stower.d.ts +0 -69
  87. package/dist/stower.d.ts.map +0 -1
  88. package/dist/views/entity-types-reader.d.ts +0 -12
  89. package/dist/views/entity-types-reader.d.ts.map +0 -1
  90. package/dist/views/projection-validators.d.ts +0 -80
  91. package/dist/views/projection-validators.d.ts.map +0 -1
  92. package/dist/views/tag-schemas-reader.d.ts +0 -14
  93. package/dist/views/tag-schemas-reader.d.ts.map +0 -1
@@ -1,80 +0,0 @@
1
- /**
2
- * Projection validators — pure functions that take a projection's
3
- * current state plus a caller-supplied command input and decide
4
- * whether the input is valid against the registered vocabulary.
5
- *
6
- * Used by the dispatcher in `handlers/job-commands.ts`. The dispatcher
7
- * reads the projection (I/O), passes it here (pure), and either
8
- * resolves the input or rejects with the error these functions return.
9
- *
10
- * Sibling to the projection-reducers in `@semiont/event-sourcing` —
11
- * reducers handle the write side of projections; validators handle
12
- * the read side. Both are I/O-free so the test for "unknown schemaId
13
- * rejects" doesn't need a filesystem or a Stower.
14
- *
15
- * Load-bearing properties (mutual exclusion, soundness, completeness,
16
- * order preservation, no-mutation) are pinned by axiom-style
17
- * fast-check tests in `__tests__/views/projection-validators.test.ts`.
18
- * See `docs/system/PROJECTION-PATTERN.md` for the full axiom catalog
19
- * and the architectural narrative.
20
- */
21
- import type { TagSchema } from '@semiont/core';
22
- /**
23
- * Result of {@link resolveTagSchema}.
24
- *
25
- * Discriminated union — callers narrow on the absence of `error` to
26
- * get a typed `TagSchema`.
27
- */
28
- export type ResolveTagSchemaResult = {
29
- schema: TagSchema;
30
- error?: undefined;
31
- } | {
32
- schema?: undefined;
33
- error: string;
34
- };
35
- /**
36
- * Look up a tag schema by id in the per-KB tag-schema projection.
37
- *
38
- * Pure read of `tagSchemas` (the unwrapped projection content; what
39
- * `readTagSchemasProjection` returns). Returns either the resolved
40
- * schema or a caller-facing error message.
41
- *
42
- * Two failure modes:
43
- * - Empty/missing schemaId → "tag-annotation requires schemaId"
44
- * - Non-empty but unregistered → "Tag schema not registered: <id>"
45
- *
46
- * Both messages are surfaced verbatim to the bus via `job:create-failed`.
47
- */
48
- export declare function resolveTagSchema(tagSchemas: readonly TagSchema[], schemaId: unknown): ResolveTagSchemaResult;
49
- /**
50
- * Result of {@link validateEntityTypes}.
51
- *
52
- * Two cases — `ok: true` when all supplied tags are in the registered
53
- * set (or none were supplied at all), `ok: false` plus the offending
54
- * unknown tags otherwise.
55
- */
56
- export type ValidateEntityTypesResult = {
57
- ok: true;
58
- } | {
59
- ok: false;
60
- unknown: string[];
61
- };
62
- /**
63
- * Validate that every caller-supplied entity type is in the per-KB
64
- * entity-type projection.
65
- *
66
- * Pure read of `registered` (the unwrapped projection content; what
67
- * `readEntityTypesProjection` returns). Empty/missing `requested`
68
- * skips the check entirely — "no tags supplied" is not a validation
69
- * failure, and the validator should never trigger an unnecessary
70
- * projection read for it.
71
- */
72
- export declare function validateEntityTypes(registered: readonly string[], requested: readonly string[] | undefined): ValidateEntityTypesResult;
73
- /**
74
- * Format the standard error message for an entity-type validation
75
- * failure. Kept here so the dispatcher and any future caller agree on
76
- * the wire format — same `Entity type not registered: <comma-list>`
77
- * shape that `mark.assist` and `yield.fromAnnotation` callers handle.
78
- */
79
- export declare function entityTypesNotRegisteredMessage(unknown: readonly string[]): string;
80
- //# sourceMappingURL=projection-validators.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"projection-validators.d.ts","sourceRoot":"","sources":["../../src/views/projection-validators.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI/C;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAC9B;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GACxC;IAAE,MAAM,CAAC,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1C;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,SAAS,SAAS,EAAE,EAChC,QAAQ,EAAE,OAAO,GAChB,sBAAsB,CASxB;AAID;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GACjC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GACZ;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAErC;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GACvC,yBAAyB,CAO3B;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAElF"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Tag Schemas Projection Reader
3
- *
4
- * Reads tag schemas from the view storage projection file.
5
- * This file is maintained by ViewMaterializer in response to
6
- * `frame:tag-schema-added` events.
7
- */
8
- import type { SemiontProject } from '@semiont/core/node';
9
- import type { TagSchema } from '@semiont/core';
10
- /**
11
- * Read tag schemas from view storage projection
12
- */
13
- export declare function readTagSchemasProjection(project: SemiontProject): Promise<TagSchema[]>;
14
- //# sourceMappingURL=tag-schemas-reader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tag-schemas-reader.d.ts","sourceRoot":"","sources":["../../src/views/tag-schemas-reader.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;GAEG;AACH,wBAAsB,wBAAwB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAqB5F"}