@umbraco-ai/core 1.4.1 → 1.6.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,8 +1,10 @@
|
|
|
1
1
|
import { CSSResult } from 'lit';
|
|
2
2
|
import { HTMLElementConstructor } from '@umbraco-cms/backoffice/extension-api';
|
|
3
|
+
import { LitElement } from '@umbraco-cms/backoffice/external/lit';
|
|
3
4
|
import type { ManifestApi } from '@umbraco-cms/backoffice/extension-api';
|
|
4
5
|
import type { ManifestBase } from '@umbraco-cms/backoffice/extension-api';
|
|
5
6
|
import type { ManifestMenuItem } from '@umbraco-cms/backoffice/menu';
|
|
7
|
+
import type { ManifestRepository } from '@umbraco-cms/backoffice/extension-registry';
|
|
6
8
|
import { Observable } from '@umbraco-cms/backoffice/external/rxjs';
|
|
7
9
|
import { Observable as Observable_2 } from 'rxjs';
|
|
8
10
|
import { TemplateResult } from 'lit-html';
|
|
@@ -126,6 +128,32 @@ export declare interface ManifestUaiRequestContextContributor extends ManifestAp
|
|
|
126
128
|
meta?: Record<string, unknown>;
|
|
127
129
|
}
|
|
128
130
|
|
|
131
|
+
/**
|
|
132
|
+
* Manifest for registering a test feature entity repository.
|
|
133
|
+
*
|
|
134
|
+
* Each test feature (e.g., "prompt", "agent")
|
|
135
|
+
* registers one repository that provides entities for that feature.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```typescript
|
|
139
|
+
* const manifest: ManifestUaiTestFeatureEntityRepository = {
|
|
140
|
+
* type: "repository",
|
|
141
|
+
* alias: "Uai.Repository.TestFeatureEntity.Prompt",
|
|
142
|
+
* name: "Prompt Test Feature Entity Repository",
|
|
143
|
+
* meta: {
|
|
144
|
+
* feature: "prompt",
|
|
145
|
+
* },
|
|
146
|
+
* api: () => import("./prompt-test-entity.repository.js"),
|
|
147
|
+
* };
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
export declare interface ManifestUaiTestFeatureEntityRepository extends ManifestRepository<UaiTestFeatureEntityRepositoryApi> {
|
|
151
|
+
meta: {
|
|
152
|
+
/** The test feature ID this repository provides entities for */
|
|
153
|
+
feature: string;
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
129
157
|
/**
|
|
130
158
|
* Resolve an entity adapter by entity type.
|
|
131
159
|
*
|
|
@@ -177,7 +205,12 @@ export declare const UAI_ADDONS_MENU_ALIAS = "Uai.Menu.Addons";
|
|
|
177
205
|
|
|
178
206
|
export declare const UAI_AI_SECTION_PATHNAME = "ai";
|
|
179
207
|
|
|
180
|
-
export declare const
|
|
208
|
+
export declare const UAI_CONFIGURATION_MENU_ALIAS = "Uai.Menu.Configuration";
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* @deprecated Use UAI_CONFIGURATION_MENU_ALIAS instead.
|
|
212
|
+
*/
|
|
213
|
+
export declare const UAI_CORE_MENU_ALIAS = "Uai.Menu.Configuration";
|
|
181
214
|
|
|
182
215
|
/**
|
|
183
216
|
* A constant representing an empty GUID.
|
|
@@ -192,6 +225,8 @@ export declare const UAI_ENTITY_ADAPTER_EXTENSION_TYPE = "uaiEntityAdapter";
|
|
|
192
225
|
|
|
193
226
|
export declare const UAI_ITEM_PICKER_MODAL: UmbModalToken<UaiItemPickerModalData, UaiItemPickerModalValue>;
|
|
194
227
|
|
|
228
|
+
export declare const UAI_MONITORING_MENU_ALIAS = "Uai.Menu.Monitoring";
|
|
229
|
+
|
|
195
230
|
/**
|
|
196
231
|
* Extension type alias for request context contributors.
|
|
197
232
|
*/
|
|
@@ -441,7 +476,6 @@ export declare interface UaiDetectedEntity {
|
|
|
441
476
|
* Adapter for Umbraco document entities.
|
|
442
477
|
*/
|
|
443
478
|
export declare class UaiDocumentAdapter implements UaiEntityAdapterApi {
|
|
444
|
-
#private;
|
|
445
479
|
readonly entityType = "document";
|
|
446
480
|
/**
|
|
447
481
|
* Check if the workspace context is a document workspace.
|
|
@@ -762,6 +796,23 @@ export declare interface UaiFrontendToolRepositoryApi extends UmbApi {
|
|
|
762
796
|
getTools(): Promise<UaiFrontendToolData[]>;
|
|
763
797
|
}
|
|
764
798
|
|
|
799
|
+
/**
|
|
800
|
+
* A card with background/border chrome wrapping a labeled field.
|
|
801
|
+
*/
|
|
802
|
+
export declare class UaiInfoCardElement extends LitElement {
|
|
803
|
+
label: string;
|
|
804
|
+
render(): TemplateResult<1>;
|
|
805
|
+
static styles: CSSResult;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* A responsive grid layout wrapper for info cards.
|
|
810
|
+
*/
|
|
811
|
+
export declare class UaiInfoGridElement extends LitElement {
|
|
812
|
+
render(): TemplateResult<1>;
|
|
813
|
+
static styles: CSSResult;
|
|
814
|
+
}
|
|
815
|
+
|
|
765
816
|
export declare interface UaiItemPickerModalData {
|
|
766
817
|
items?: UaiPickableItemModel[];
|
|
767
818
|
fetchItems?: () => Promise<UaiPickableItemModel[]>;
|
|
@@ -770,6 +821,8 @@ export declare interface UaiItemPickerModalData {
|
|
|
770
821
|
title?: string;
|
|
771
822
|
buttonLabel?: string;
|
|
772
823
|
noResultsMessage?: string;
|
|
824
|
+
/** If false, modal won't auto-close in single selection mode. Default: true */
|
|
825
|
+
autoSubmit?: boolean;
|
|
773
826
|
}
|
|
774
827
|
|
|
775
828
|
export declare class UaiItemPickerModalElement extends UmbModalBaseElement<UaiItemPickerModalData, UaiItemPickerModalValue> {
|
|
@@ -787,6 +840,15 @@ export declare interface UaiItemPickerModalValue {
|
|
|
787
840
|
selection: UaiPickableItemModel[];
|
|
788
841
|
}
|
|
789
842
|
|
|
843
|
+
/**
|
|
844
|
+
* A label + slotted content pair. No visual chrome — just the label/content layout.
|
|
845
|
+
*/
|
|
846
|
+
export declare class UaiLabeledFieldElement extends LitElement {
|
|
847
|
+
label: string;
|
|
848
|
+
render(): TemplateResult<1>;
|
|
849
|
+
static styles: CSSResult;
|
|
850
|
+
}
|
|
851
|
+
|
|
790
852
|
/**
|
|
791
853
|
* Event detail for model editor value changes.
|
|
792
854
|
*/
|
|
@@ -1179,6 +1241,42 @@ export declare class UaiTagsInputElement extends UaiTagsInputElement_base {
|
|
|
1179
1241
|
|
|
1180
1242
|
declare const UaiTagsInputElement_base: (new (...args: any[]) => UUIFormControlMixinElement<FormData | FormDataEntryValue>) & typeof UmbLitElement;
|
|
1181
1243
|
|
|
1244
|
+
/**
|
|
1245
|
+
* Entity data for display in test feature target pickers.
|
|
1246
|
+
* Minimal data needed to display available entities in the UI.
|
|
1247
|
+
*/
|
|
1248
|
+
export declare interface UaiTestFeatureEntityData {
|
|
1249
|
+
/** Unique entity identifier (can be GUID or alias) */
|
|
1250
|
+
id: string;
|
|
1251
|
+
/** Display name for the entity */
|
|
1252
|
+
name: string;
|
|
1253
|
+
/** Description of the entity (optional) */
|
|
1254
|
+
description?: string;
|
|
1255
|
+
/** Umbraco icon name (e.g., "icon-chat", "icon-robot") */
|
|
1256
|
+
icon: string;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* Repository API for accessing test feature entities.
|
|
1261
|
+
* Implemented by packages that provide testable entities (Prompt, Agent, etc.).
|
|
1262
|
+
*
|
|
1263
|
+
* Each test feature type can have zero or one repository implementation.
|
|
1264
|
+
*/
|
|
1265
|
+
export declare interface UaiTestFeatureEntityRepositoryApi extends UmbApi {
|
|
1266
|
+
/**
|
|
1267
|
+
* Get all entities available for testing within this feature type.
|
|
1268
|
+
* @returns Array of entity data for display in picker
|
|
1269
|
+
*/
|
|
1270
|
+
getEntities(): Promise<UaiTestFeatureEntityData[]>;
|
|
1271
|
+
/**
|
|
1272
|
+
* Get a single entity by ID or alias.
|
|
1273
|
+
* Used for resolving the entity when loading an existing test.
|
|
1274
|
+
* @param idOrAlias - Entity ID (GUID) or alias
|
|
1275
|
+
* @returns Entity data or undefined if not found
|
|
1276
|
+
*/
|
|
1277
|
+
getEntity(idOrAlias: string): Promise<UaiTestFeatureEntityData | undefined>;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1182
1280
|
/**
|
|
1183
1281
|
* Tool with permission state.
|
|
1184
1282
|
*/
|