@umbraco-ai/core 17.1.0 → 17.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ai/core",
3
- "version": "17.1.0",
3
+ "version": "17.2.0",
4
4
  "type": "module",
5
5
  "types": "./types/umbraco-ai-public-types.d.ts",
6
6
  "files": [
@@ -1064,7 +1064,10 @@ export declare class UaiDocumentAdapter implements UaiEntityAdapterApi {
1064
1064
  * for properties that don't vary, so prompt template variables like
1065
1065
  * `{{header}}` resolve to the active culture's value.
1066
1066
  */
1067
- serializeForLlm(workspaceContext: unknown): Promise<UaiSerializedEntity>;
1067
+ serializeForLlm(workspaceContext: unknown, activeVariant?: {
1068
+ culture: string | null;
1069
+ segment: string | null;
1070
+ }): Promise<UaiSerializedEntity>;
1068
1071
  /**
1069
1072
  * Apply a value change to the document workspace.
1070
1073
  * Changes are staged in the workspace - user must save to persist.
@@ -1229,8 +1232,13 @@ export declare interface UaiEntityAdapterApi extends UmbApi {
1229
1232
  getIconObservable?(workspaceContext: unknown): Observable<string | undefined> | undefined;
1230
1233
  /**
1231
1234
  * Serialize the entity for LLM context.
1235
+ * @param activeVariant When provided, overrides variant detection in the adapter so values are
1236
+ * read from the correct culture/segment (e.g. the right pane in split-view).
1232
1237
  */
1233
- serializeForLlm(workspaceContext: unknown): Promise<UaiSerializedEntity>;
1238
+ serializeForLlm(workspaceContext: unknown, activeVariant?: {
1239
+ culture: string | null;
1240
+ segment: string | null;
1241
+ }): Promise<UaiSerializedEntity>;
1234
1242
  /**
1235
1243
  * Apply a value change to the workspace (staged, not persisted).
1236
1244
  * Optional - some entity types may be read-only.