@exulu/backend 5.8.2 → 5.10.0

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.cts CHANGED
@@ -665,6 +665,15 @@ type ExuluContextFieldDefinition = {
665
665
  * excluded by name in the input generator.
666
666
  */
667
667
  hidden?: boolean;
668
+ /**
669
+ * Declares the shape of a `json` field. When present, the generated agent
670
+ * tools expose this schema to the model instead of the opaque "valid JSON
671
+ * string" instruction, so the model can see (and be validated against) the
672
+ * field's actual structure instead of guessing it. Undeclared `json` fields
673
+ * are unaffected — see json-field-schema.ts for the path/merge logic that
674
+ * reads this property in later tasks.
675
+ */
676
+ schema?: z.ZodTypeAny;
668
677
  };
669
678
  type ExuluContextSource = {
670
679
  id: string;
@@ -839,7 +848,9 @@ declare class ExuluContext {
839
848
  item: Item;
840
849
  job?: string;
841
850
  }>;
842
- updateItem: (item: Item, config: ExuluConfig, user?: number, role?: string, generateEmbeddingsOverwrite?: boolean, runProcessorOverwrite?: boolean) => Promise<{
851
+ updateItem: (item: Item, config: ExuluConfig, user?: number, role?: string, generateEmbeddingsOverwrite?: boolean, runProcessorOverwrite?: boolean,
852
+ /** Names of `json` fields in `item` whose value is a merge patch rather than a full replacement (spec Part B). */
853
+ merge?: string[]) => Promise<{
843
854
  item: Item;
844
855
  job?: string;
845
856
  }>;
package/dist/index.d.ts CHANGED
@@ -665,6 +665,15 @@ type ExuluContextFieldDefinition = {
665
665
  * excluded by name in the input generator.
666
666
  */
667
667
  hidden?: boolean;
668
+ /**
669
+ * Declares the shape of a `json` field. When present, the generated agent
670
+ * tools expose this schema to the model instead of the opaque "valid JSON
671
+ * string" instruction, so the model can see (and be validated against) the
672
+ * field's actual structure instead of guessing it. Undeclared `json` fields
673
+ * are unaffected — see json-field-schema.ts for the path/merge logic that
674
+ * reads this property in later tasks.
675
+ */
676
+ schema?: z.ZodTypeAny;
668
677
  };
669
678
  type ExuluContextSource = {
670
679
  id: string;
@@ -839,7 +848,9 @@ declare class ExuluContext {
839
848
  item: Item;
840
849
  job?: string;
841
850
  }>;
842
- updateItem: (item: Item, config: ExuluConfig, user?: number, role?: string, generateEmbeddingsOverwrite?: boolean, runProcessorOverwrite?: boolean) => Promise<{
851
+ updateItem: (item: Item, config: ExuluConfig, user?: number, role?: string, generateEmbeddingsOverwrite?: boolean, runProcessorOverwrite?: boolean,
852
+ /** Names of `json` fields in `item` whose value is a merge patch rather than a full replacement (spec Part B). */
853
+ merge?: string[]) => Promise<{
843
854
  item: Item;
844
855
  job?: string;
845
856
  }>;