@semiont/make-meaning 0.2.33-build.78 → 0.2.33-build.79

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/dist/index.d.ts CHANGED
@@ -911,7 +911,15 @@ declare function generateResourceSummary(resourceName: string, content: string,
911
911
  */
912
912
  declare function generateReferenceSuggestions(referenceTitle: string, client: InferenceClient, entityType?: string, currentContent?: string): Promise<string[] | null>;
913
913
 
914
+ /**
915
+ * ID generation utilities
916
+ */
917
+ /**
918
+ * Generate a UUID v4-like ID (without dashes)
919
+ */
920
+ declare function generateUuid(): string;
921
+
914
922
  declare const PACKAGE_NAME = "@semiont/make-meaning";
915
923
  declare const VERSION = "0.1.0";
916
924
 
917
- export { AnnotationContext, AnnotationDetection, AnnotationOperations, AssessmentDetectionWorker, type AssessmentMatch, type BuildContextOptions, CommentDetectionWorker, type CommentMatch, type CreateAnnotationResult, type CreateResourceInput, type ExtractedEntity, GenerationWorker, GraphContext, GraphDBConsumer, type GraphEdge, type GraphNode, type GraphRepresentation, HighlightDetectionWorker, type HighlightMatch, LLMContext, type LLMContextOptions, type ListResourcesFilters, type MakeMeaningService, MotivationParsers, MotivationPrompts, PACKAGE_NAME, ReferenceDetectionWorker, ResourceContext, ResourceOperations, TagDetectionWorker, type TagMatch, type UpdateAnnotationBodyResult, type UpdateResourceInput, VERSION, bootstrapEntityTypes, extractEntities, generateReferenceSuggestions, generateResourceFromTopic, generateResourceSummary, readEntityTypesProjection, resetBootstrap, startMakeMeaning };
925
+ export { AnnotationContext, AnnotationDetection, AnnotationOperations, AssessmentDetectionWorker, type AssessmentMatch, type BuildContextOptions, CommentDetectionWorker, type CommentMatch, type CreateAnnotationResult, type CreateResourceInput, type ExtractedEntity, GenerationWorker, GraphContext, GraphDBConsumer, type GraphEdge, type GraphNode, type GraphRepresentation, HighlightDetectionWorker, type HighlightMatch, LLMContext, type LLMContextOptions, type ListResourcesFilters, type MakeMeaningService, MotivationParsers, MotivationPrompts, PACKAGE_NAME, ReferenceDetectionWorker, ResourceContext, ResourceOperations, TagDetectionWorker, type TagMatch, type UpdateAnnotationBodyResult, type UpdateResourceInput, VERSION, bootstrapEntityTypes, extractEntities, generateReferenceSuggestions, generateResourceFromTopic, generateResourceSummary, generateUuid, readEntityTypesProjection, resetBootstrap, startMakeMeaning };
package/dist/index.js CHANGED
@@ -575,10 +575,17 @@ import {
575
575
  import { getEntityTypes } from "@semiont/ontology";
576
576
  import {
577
577
  CREATION_METHODS,
578
- generateUuid,
579
578
  resourceId,
580
579
  annotationId
581
580
  } from "@semiont/core";
581
+
582
+ // src/id-generation.ts
583
+ import { randomBytes } from "crypto";
584
+ function generateUuid() {
585
+ return randomBytes(16).toString("hex");
586
+ }
587
+
588
+ // src/jobs/generation-worker.ts
582
589
  var GenerationWorker = class extends JobWorker2 {
583
590
  constructor(jobQueue, config, eventStore, inferenceClient) {
584
591
  super(jobQueue);
@@ -2248,7 +2255,6 @@ async function readEntityTypesProjection(config) {
2248
2255
  // src/resource-operations.ts
2249
2256
  import {
2250
2257
  CREATION_METHODS as CREATION_METHODS2,
2251
- generateUuid as generateUuid2,
2252
2258
  resourceId as resourceId2
2253
2259
  } from "@semiont/core";
2254
2260
  var ResourceOperations = class {
@@ -2257,7 +2263,7 @@ var ResourceOperations = class {
2257
2263
  * Orchestrates: content storage → event emission → response building
2258
2264
  */
2259
2265
  static async createResource(input, userId6, eventStore, repStore, config) {
2260
- const rId = resourceId2(generateUuid2());
2266
+ const rId = resourceId2(generateUuid());
2261
2267
  const storedRep = await repStore.store(input.content, {
2262
2268
  mediaType: input.format,
2263
2269
  language: input.language || void 0,
@@ -3869,6 +3875,7 @@ export {
3869
3875
  generateReferenceSuggestions,
3870
3876
  generateResourceFromTopic,
3871
3877
  generateResourceSummary,
3878
+ generateUuid,
3872
3879
  readEntityTypesProjection,
3873
3880
  resetBootstrap,
3874
3881
  startMakeMeaning