@acorex-platform/module-ai-management-client 0.0.28 → 0.0.32
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/fesm2022/acorex-platform-module-ai-management-client-contracts.mjs +10 -1
- package/fesm2022/acorex-platform-module-ai-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-ai-management-client.mjs +24 -49
- package/fesm2022/acorex-platform-module-ai-management-client.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-module-ai-management-client-contracts.d.ts +36 -4
- package/types/acorex-platform-module-ai-management-client.d.ts +4 -9
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
|
|
|
6
6
|
* `ManageCatalog` is Platform Console only (Intelligence config menu).
|
|
7
7
|
*/
|
|
8
8
|
declare const AXPAiManagementFeatureKeys: {
|
|
9
|
-
/** Configuration → Intelligence (agents, assists, models, endpoints, rules). */
|
|
9
|
+
/** Configuration → Intelligence (agents, assists, models, endpoints, rules, skills). */
|
|
10
10
|
readonly ManageCatalog: "AiManagement:Feature:ManageCatalog";
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -27,6 +27,8 @@ declare const AXPAiManagementMenuKeys: {
|
|
|
27
27
|
readonly Agents: "AiManagement:Menu:Agents";
|
|
28
28
|
/** Reusable system-prompt rules (Markdown fragments). */
|
|
29
29
|
readonly Rules: "AiManagement:Menu:Rules";
|
|
30
|
+
/** Playbooks (FLOWs) the Assist follows in the same turn. */
|
|
31
|
+
readonly Skills: "AiManagement:Menu:Skills";
|
|
30
32
|
};
|
|
31
33
|
|
|
32
34
|
/**
|
|
@@ -142,6 +144,13 @@ declare const RootConfig: {
|
|
|
142
144
|
titlePlural: string;
|
|
143
145
|
icon: string;
|
|
144
146
|
};
|
|
147
|
+
skill: {
|
|
148
|
+
name: string;
|
|
149
|
+
fullName: string;
|
|
150
|
+
title: string;
|
|
151
|
+
titlePlural: string;
|
|
152
|
+
icon: string;
|
|
153
|
+
};
|
|
145
154
|
mcpServer: {
|
|
146
155
|
name: string;
|
|
147
156
|
fullName: string;
|
|
@@ -205,6 +214,26 @@ interface AXMAiManagementAgentEntityModel extends AXPEntityModel<string> {
|
|
|
205
214
|
maxSteps?: number;
|
|
206
215
|
}
|
|
207
216
|
|
|
217
|
+
/** Denormalized {@link AiSkill} snapshot on assist rows (multi-lookup expose). */
|
|
218
|
+
interface AXMAiManagementSkillRef {
|
|
219
|
+
id: string;
|
|
220
|
+
/** Unique programmatic key used by the engine when listing attached Skills. */
|
|
221
|
+
name: string;
|
|
222
|
+
title: AXPMultiLanguageString;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Persisted AiSkill catalog row — playbooks (FLOWs) the Assist follows in the same turn.
|
|
226
|
+
*/
|
|
227
|
+
interface AXMAiManagementSkillEntityModel extends AXPEntityModel<string> {
|
|
228
|
+
/** Programmatic key (e.g. `create-entity-record`); referenced from assist `skills`. */
|
|
229
|
+
name: string;
|
|
230
|
+
title: AXPMultiLanguageString;
|
|
231
|
+
/** Trigger: when the Assist should follow this playbook (Cursor Skill `description`). */
|
|
232
|
+
description?: AXPMultiLanguageString;
|
|
233
|
+
/** Playbook body merged into the Assist system prompt when this Skill is attached. */
|
|
234
|
+
markdown: string;
|
|
235
|
+
}
|
|
236
|
+
|
|
208
237
|
/** Aligns with {@link AXPAiPlanningMode} in ai-engine.types (avoid circular imports). */
|
|
209
238
|
type AXMAiManagementAssistPlanningMode = 'off' | 'once' | 'when-needed';
|
|
210
239
|
/**
|
|
@@ -235,6 +264,10 @@ interface AXMAiManagementAssistEntityModel extends AXPEntityModel<string> {
|
|
|
235
264
|
ruleIds?: string[] | null;
|
|
236
265
|
/** Denormalized rule rows from multi-lookup expose (`title` = display, `name` = engine key). */
|
|
237
266
|
rules?: AXMAiManagementRuleRef[] | null;
|
|
267
|
+
/** Selected {@link AiSkill} catalog ids (multi-lookup value field). */
|
|
268
|
+
skillIds?: string[] | null;
|
|
269
|
+
/** Denormalized skill rows from multi-lookup expose (`title` = display, `name` = engine key). */
|
|
270
|
+
skills?: AXMAiManagementSkillRef[] | null;
|
|
238
271
|
/** Knowledge-base attachments (PDF and image formats) for this assist. */
|
|
239
272
|
knowledgeFiles?: AXPFileListItem[] | null;
|
|
240
273
|
/** Command registry bindings the assist may call directly in the same session. */
|
|
@@ -397,7 +430,6 @@ type AXPAiEffectiveAgentRow = Partial<Omit<AXMAiManagementAgentEntityModel, 'id'
|
|
|
397
430
|
};
|
|
398
431
|
interface AXPAiChatModelListRequest {
|
|
399
432
|
assistId?: string | null;
|
|
400
|
-
directAgentId?: string | null;
|
|
401
433
|
}
|
|
402
434
|
interface AXPAiChatModelListItem {
|
|
403
435
|
id: string;
|
|
@@ -575,9 +607,9 @@ type AXPAiEngineRunEvent = {
|
|
|
575
607
|
};
|
|
576
608
|
interface AXPAiEngineRunOptions {
|
|
577
609
|
messages: AXPAiChatMessage[];
|
|
610
|
+
/** Catalog Assist id. When omitted, the platform/default Assist is used. */
|
|
578
611
|
assistId?: string;
|
|
579
612
|
demisSessionUuid?: string;
|
|
580
|
-
directAgentId?: string;
|
|
581
613
|
modelEntityId?: string;
|
|
582
614
|
modelId?: string;
|
|
583
615
|
maxSteps?: number;
|
|
@@ -893,4 +925,4 @@ declare function axpAiChatMessagesFromProviderAssistant(text: string, toolCalls?
|
|
|
893
925
|
declare function axcResolveAiMlOrPlainString(value: unknown, locale?: string): string;
|
|
894
926
|
|
|
895
927
|
export { AIMANAGEMENT_CHAT_GENERATE_IMAGE_COMMAND_KEY, AIMANAGEMENT_CHAT_SYNTHESIZE_SPEECH_COMMAND_KEY, AIMANAGEMENT_CHAT_TRANSCRIBE_SPEECH_COMMAND_KEY, AIMANAGEMENT_EXTRACT_DOCUMENT_TEXT_COMMAND_KEY, AIMANAGEMENT_STRUCTURED_TEXT_COMPLETION_COMMAND_KEY, AXMAiAssistPermissionKeys, AXMAiManagementTransportKeys, AXMPermissionsKeys, AXM_AI_PLATFORM_RUNTIME_CONTEXT_DEFINITIONS, AXPAI_AGENT_OUTPUT_CONTRACT_DEFAULT_STRUCTURED_RETRIES, AXPAI_SUPERVISOR_AGENT_TOOL_PREFIX, AXPAdministrationPermissionKeys, AXPAiManagementFeatureKeys, AXPAiManagementMenuKeys, AXPAiManagementSettings, AXP_AI_SDK_TOOL_CONTEXT_JSON_SCHEMA, AXP_FOLLOW_UP_ENVELOPE_JSON_SCHEMA, AXP_WIDGET_NODE_JSON_SCHEMA, RootConfig, assembleAxpAiPlatformRuntimeContext, attachAxpAiSdkChatContext, axcResolveAiMlOrPlainString, axpAiAgentOutputContractOmitsRoleBaseline, axpAiAgentOutputContractStructuredRetryCap, axpAiAgentOutputContractUsesStructuredFinalize, axpAiChatMessageGetText, axpAiChatMessagesFromProviderAssistant, axpAiChatTextMessage, axpAiChatToolResultMessage, axpAiNormalizeHandlerResultToToolBody, axpAiParseSupervisorAgentToolName, axpAiShouldApplyChatStructuredOutput, axpAiSupervisorAgentToolName, axpAiTextDuplicatesStructuredSegment, axpAiTryParseJsonValueFromAssistantText, buildAxpAiSdkChatContextBundle, canAiExtractDocument, classifyAiExtractDocument, defaultRetriesForKind, deriveProviderResponseFormat, formatAxpAiPlatformRuntimeLocalDateTime, formatAxpAiPlatformRuntimePrompt, isChatPurposeModelRow, modelRowHasPurpose, parseAgentOutputContract, parseChatTransport, parseJsonSchemaLike, parseResponseFormat, readModelPurposes, resolveAgentOutputContract, resolveBuiltinSchemaForOutputContract, resolveEffectiveOutputContract, resolveOutputTranscriptSegment };
|
|
896
|
-
export type { AXMAiManagementAgentEntityModel, AXMAiManagementAssistEntityModel, AXMAiManagementAssistPlanningMode, AXMAiManagementMcpServerEntityModel, AXMAiManagementMcpServerTransport, AXMAiManagementModelChatTransport, AXMAiManagementModelEntityModel, AXMAiManagementModelPurposeSlug, AXMAiManagementOpenAiEndpointEntityModel, AXMAiManagementRuleEntityModel, AXMAiManagementRuleRef, AXMAiModelPurposeSlug, AXPAiAgentOutputContract, AXPAiAgentOutputKind, AXPAiChatAgentAssistantResponse, AXPAiChatAgentResultResponse, AXPAiChatFileResponse, AXPAiChatFollowUpCommand, AXPAiChatFollowUpItem, AXPAiChatFollowUpResponse, AXPAiChatMessage, AXPAiChatModelListItem, AXPAiChatModelListRequest, AXPAiChatNodeResponse, AXPAiChatOptions, AXPAiChatOptionsDemis, AXPAiChatResponse, AXPAiChatResult, AXPAiChatStructuredOutputGate, AXPAiChatTextResponse, AXPAiChatThinkResponse, AXPAiChatToolAssistantResponse, AXPAiChatToolChoice, AXPAiChatToolInvocationContent, AXPAiChatToolResultResponse, AXPAiChatTransport, AXPAiDelegatedAgentResultPayload, AXPAiDelegatedAgentResultSegment, AXPAiDelegatedAgentTranscriptEntry, AXPAiDelegatedAgentTranscriptRunInput, AXPAiDelegatedNestedToolCallContext, AXPAiEffectiveAgentRow, AXPAiEffectiveAssistRow, AXPAiEngineLastProviderPayload, AXPAiEngineRunEvent, AXPAiEngineRunOptions, AXPAiEngineRunRequest, AXPAiEngineRunResult, AXPAiEngineUsageTotals, AXPAiEngineWireEvent, AXPAiExtractDocumentKind, AXPAiExtractDocumentTextOptions, AXPAiGenerateImageOptions, AXPAiGenerateVideoOptions, AXPAiJsonSchemaLike, AXPAiOutputTranscriptSegment, AXPAiPlatformRuntimeContext, AXPAiPlatformRuntimeContextSources, AXPAiResponseFormat, AXPAiSdkChatContextBundle, AXPAiSynthesizeSpeechOptions, AXPAiToolCall, AXPAiToolSchema, AXPAiTranscribeSpeechOptions, ResolveEffectiveOutputContractInput };
|
|
928
|
+
export type { AXMAiManagementAgentEntityModel, AXMAiManagementAssistEntityModel, AXMAiManagementAssistPlanningMode, AXMAiManagementMcpServerEntityModel, AXMAiManagementMcpServerTransport, AXMAiManagementModelChatTransport, AXMAiManagementModelEntityModel, AXMAiManagementModelPurposeSlug, AXMAiManagementOpenAiEndpointEntityModel, AXMAiManagementRuleEntityModel, AXMAiManagementRuleRef, AXMAiManagementSkillEntityModel, AXMAiManagementSkillRef, AXMAiModelPurposeSlug, AXPAiAgentOutputContract, AXPAiAgentOutputKind, AXPAiChatAgentAssistantResponse, AXPAiChatAgentResultResponse, AXPAiChatFileResponse, AXPAiChatFollowUpCommand, AXPAiChatFollowUpItem, AXPAiChatFollowUpResponse, AXPAiChatMessage, AXPAiChatModelListItem, AXPAiChatModelListRequest, AXPAiChatNodeResponse, AXPAiChatOptions, AXPAiChatOptionsDemis, AXPAiChatResponse, AXPAiChatResult, AXPAiChatStructuredOutputGate, AXPAiChatTextResponse, AXPAiChatThinkResponse, AXPAiChatToolAssistantResponse, AXPAiChatToolChoice, AXPAiChatToolInvocationContent, AXPAiChatToolResultResponse, AXPAiChatTransport, AXPAiDelegatedAgentResultPayload, AXPAiDelegatedAgentResultSegment, AXPAiDelegatedAgentTranscriptEntry, AXPAiDelegatedAgentTranscriptRunInput, AXPAiDelegatedNestedToolCallContext, AXPAiEffectiveAgentRow, AXPAiEffectiveAssistRow, AXPAiEngineLastProviderPayload, AXPAiEngineRunEvent, AXPAiEngineRunOptions, AXPAiEngineRunRequest, AXPAiEngineRunResult, AXPAiEngineUsageTotals, AXPAiEngineWireEvent, AXPAiExtractDocumentKind, AXPAiExtractDocumentTextOptions, AXPAiGenerateImageOptions, AXPAiGenerateVideoOptions, AXPAiJsonSchemaLike, AXPAiOutputTranscriptSegment, AXPAiPlatformRuntimeContext, AXPAiPlatformRuntimeContextSources, AXPAiResponseFormat, AXPAiSdkChatContextBundle, AXPAiSynthesizeSpeechOptions, AXPAiToolCall, AXPAiToolSchema, AXPAiTranscribeSpeechOptions, ResolveEffectiveOutputContractInput };
|
|
@@ -92,7 +92,6 @@ interface AXPAiAssistUserMediaAttachment {
|
|
|
92
92
|
interface AXPAiAssistPromptSubmitPayload {
|
|
93
93
|
prompt: string;
|
|
94
94
|
assistId?: string;
|
|
95
|
-
directAgentId?: string;
|
|
96
95
|
userMediaAttachments: AXPAiAssistUserMediaAttachment[];
|
|
97
96
|
}
|
|
98
97
|
/**
|
|
@@ -118,10 +117,9 @@ interface AXPAiAssistRunInput {
|
|
|
118
117
|
userMediaAttachments?: AXPAiAssistUserMediaAttachment[];
|
|
119
118
|
context?: AXPAiAssistRunContext;
|
|
120
119
|
/**
|
|
121
|
-
* Catalog assist id. When omitted
|
|
120
|
+
* Catalog assist id. When omitted, the platform default assist is used.
|
|
122
121
|
*/
|
|
123
122
|
assistId?: string;
|
|
124
|
-
directAgentId?: string;
|
|
125
123
|
maxSteps?: number;
|
|
126
124
|
temperature?: number;
|
|
127
125
|
/**
|
|
@@ -254,10 +252,9 @@ interface AXPAiAssistShowOptions {
|
|
|
254
252
|
size?: AXPAiAssistPopupSize;
|
|
255
253
|
context?: AXPAiAssistRunContext;
|
|
256
254
|
/**
|
|
257
|
-
* Optional catalog assist. When omitted
|
|
255
|
+
* Optional catalog assist. When omitted, the tenant/platform default assist applies.
|
|
258
256
|
*/
|
|
259
257
|
assistId?: string;
|
|
260
|
-
directAgentId?: string;
|
|
261
258
|
maxSteps?: number;
|
|
262
259
|
temperature?: number;
|
|
263
260
|
maxTokens?: number;
|
|
@@ -624,7 +621,6 @@ declare class AXPAiManagerService extends AXPAiAssistService {
|
|
|
624
621
|
private readonly loadingDialog;
|
|
625
622
|
private readonly assistData;
|
|
626
623
|
private readonly modelEntityData;
|
|
627
|
-
private readonly agentEntityData;
|
|
628
624
|
/**
|
|
629
625
|
* Loads the effective assist from `DefaultAssistId` (tenant setting), or the assist named `platform-assistant`.
|
|
630
626
|
*/
|
|
@@ -647,7 +643,7 @@ declare class AXPAiManagerService extends AXPAiAssistService {
|
|
|
647
643
|
*/
|
|
648
644
|
private normalizeMaxOutputTokens;
|
|
649
645
|
/**
|
|
650
|
-
* Reads {@link AXMAiModelMaxTokensRow.maxOutputTokens} for the model bound to the assist
|
|
646
|
+
* Reads {@link AXMAiModelMaxTokensRow.maxOutputTokens} for the model bound to the assist.
|
|
651
647
|
*/
|
|
652
648
|
private resolveCatalogMaxOutputTokens;
|
|
653
649
|
/** @inheritdoc */
|
|
@@ -740,7 +736,6 @@ declare class AXMAiAssistPromptBoxComponent implements OnInit, OnDestroy {
|
|
|
740
736
|
readonly initialPrompt: i0.InputSignal<string>;
|
|
741
737
|
readonly contentMaxWidthPx: i0.InputSignal<number>;
|
|
742
738
|
readonly initialAssistId: i0.InputSignal<string | undefined>;
|
|
743
|
-
readonly initialDirectAgentId: i0.InputSignal<string | undefined>;
|
|
744
739
|
readonly runPrompt: i0.InputSignal<(payload: AXPAiAssistPromptSubmitPayload) => Promise<AXPAiAssistRunResult>>;
|
|
745
740
|
readonly requestClose: i0.InputSignal<(result: AXPAiAssistRunResult | null) => void>;
|
|
746
741
|
readonly promptDraft: i0.WritableSignal<string>;
|
|
@@ -782,7 +777,7 @@ declare class AXMAiAssistPromptBoxComponent implements OnInit, OnDestroy {
|
|
|
782
777
|
private processComposerDocumentFiles;
|
|
783
778
|
private showUploadWarning;
|
|
784
779
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMAiAssistPromptBoxComponent, never>;
|
|
785
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXMAiAssistPromptBoxComponent, "axm-ai-assist-prompt-box", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "initialPrompt": { "alias": "initialPrompt"; "required": false; "isSignal": true; }; "contentMaxWidthPx": { "alias": "contentMaxWidthPx"; "required": false; "isSignal": true; }; "initialAssistId": { "alias": "initialAssistId"; "required": false; "isSignal": true; }; "
|
|
780
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXMAiAssistPromptBoxComponent, "axm-ai-assist-prompt-box", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "initialPrompt": { "alias": "initialPrompt"; "required": false; "isSignal": true; }; "contentMaxWidthPx": { "alias": "contentMaxWidthPx"; "required": false; "isSignal": true; }; "initialAssistId": { "alias": "initialAssistId"; "required": false; "isSignal": true; }; "runPrompt": { "alias": "runPrompt"; "required": true; "isSignal": true; }; "requestClose": { "alias": "requestClose"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
786
781
|
}
|
|
787
782
|
|
|
788
783
|
/**
|