@xpert-ai/contracts 3.18.5 → 3.19.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/index.cjs.js +1045 -216
- package/index.esm.js +1023 -217
- package/package.json +3 -3
- package/src/agent-plugin.d.ts +192 -0
- package/src/ai/assistant-configuration.model.d.ts +45 -0
- package/src/ai/assistant-order.d.ts +5 -0
- package/src/ai/assistant-trigger.model.d.ts +56 -0
- package/src/ai/chat-activity.model.d.ts +14 -0
- package/src/ai/chat-message.model.d.ts +10 -1
- package/src/ai/chat-task-summary.model.d.ts +4 -3
- package/src/ai/chat.model.d.ts +100 -13
- package/src/ai/clawxpert-conversation-scope.model.d.ts +2 -0
- package/src/ai/evolution/baseline.d.ts +40 -0
- package/src/ai/evolution/change.d.ts +53 -0
- package/src/ai/evolution/index.d.ts +1 -0
- package/src/ai/evolution/persistence.d.ts +2 -0
- package/src/ai/evolution/provider.d.ts +1 -1
- package/src/ai/index.d.ts +9 -0
- package/src/ai/knowledge-doc.model.d.ts +18 -1
- package/src/ai/knowledge-filter.model.d.ts +26 -1
- package/src/ai/knowledge-graph.model.d.ts +18 -1
- package/src/ai/knowledge-keyword-analyzer.model.d.ts +18 -0
- package/src/ai/knowledge-parser-selection.d.ts +6 -0
- package/src/ai/knowledgebase.model.d.ts +18 -0
- package/src/ai/mcp-publication.model.d.ts +1 -1
- package/src/ai/middleware.model.d.ts +1 -0
- package/src/ai/mobile.model.d.ts +5 -0
- package/src/ai/project-selection.model.d.ts +9 -0
- package/src/ai/project-task-graph.model.d.ts +58 -0
- package/src/ai/project-task-schedule.d.ts +24 -0
- package/src/ai/prompt-workflow-capabilities.model.d.ts +15 -0
- package/src/ai/prompt-workflow.model.d.ts +13 -0
- package/src/ai/sandbox-file-output.model.d.ts +9 -0
- package/src/ai/xpert-agent-execution.model.d.ts +33 -0
- package/src/ai/xpert-chat.model.d.ts +2 -0
- package/src/ai/xpert-marketplace.model.d.ts +5 -0
- package/src/ai/xpert-project-type.model.d.ts +56 -0
- package/src/ai/xpert-project.model.d.ts +25 -1
- package/src/ai/xpert-template.model.d.ts +30 -0
- package/src/ai/xpert-tool-mcp.model.d.ts +15 -1
- package/src/ai/xpert-workflow.model.d.ts +15 -1
- package/src/ai/xpert.model.d.ts +15 -1
- package/src/desktop-shell.model.d.ts +159 -0
- package/src/index.d.ts +4 -0
- package/src/integration.model.d.ts +19 -0
- package/src/plugin.d.ts +26 -7
- package/src/tag-entity.model.d.ts +1 -1
- package/src/view-extension/index.d.ts +2 -0
- package/src/view-extension/model.d.ts +20 -1
- package/src/view-extension/workbench-open.d.ts +10 -0
- package/src/view-extension/workbench.d.ts +2 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IBasePerTenantEntityModel } from '../base-entity.model';
|
|
2
2
|
import { IconDefinition, TAvatar } from '../types';
|
|
3
3
|
import { TCopilotModel } from './copilot-model.model';
|
|
4
|
+
import { ModelFeature } from './ai-model.model';
|
|
4
5
|
import { MCPServerType, TMCPServer } from './xpert-tool-mcp.model';
|
|
5
6
|
import { XpertTypeEnum } from './xpert.model';
|
|
6
7
|
import type { TPromptWorkflow } from './prompt-workflow.model';
|
|
@@ -101,6 +102,12 @@ export type TTemplate = {
|
|
|
101
102
|
contentHash?: string;
|
|
102
103
|
xpertName?: string;
|
|
103
104
|
dependencies?: XpertTemplatePluginDependencies;
|
|
105
|
+
/** Explicit capability requirements/options, implemented by registered providers. */
|
|
106
|
+
capabilities?: AssistantCapabilityDeclaration[];
|
|
107
|
+
/** Capabilities composed into this resolved template variant. */
|
|
108
|
+
enabledCapabilities?: string[];
|
|
109
|
+
/** Require an explicitly selected, authorized LLM even without capability constraints. */
|
|
110
|
+
requiresModelSelection?: boolean;
|
|
104
111
|
/** Trusted plugin App explicitly linked to this Assistant template. */
|
|
105
112
|
application?: PluginTemplateApplicationSummary;
|
|
106
113
|
};
|
|
@@ -110,6 +117,29 @@ export type TXpertTemplate = TTemplate & {
|
|
|
110
117
|
copilotModel?: Partial<TCopilotModel>;
|
|
111
118
|
};
|
|
112
119
|
export type TXpertTemplateSummary = Omit<TXpertTemplate, 'export_data'>;
|
|
120
|
+
/** Opt-in capabilities offered by the serving distribution for a template. */
|
|
121
|
+
export type XpertTemplateCapability = string;
|
|
122
|
+
export interface AssistantCapabilityDeclaration {
|
|
123
|
+
key: string;
|
|
124
|
+
/** Required capabilities cannot be disabled; optional capabilities default to off. */
|
|
125
|
+
required?: boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface XpertTemplateSetup {
|
|
128
|
+
requiresModel?: boolean;
|
|
129
|
+
optionalCapabilities: {
|
|
130
|
+
key: XpertTemplateCapability;
|
|
131
|
+
label: string;
|
|
132
|
+
description: string;
|
|
133
|
+
}[];
|
|
134
|
+
requiredModelFeatures: ModelFeature[];
|
|
135
|
+
models: {
|
|
136
|
+
id: string;
|
|
137
|
+
label: string;
|
|
138
|
+
copilotModel: TCopilotModel;
|
|
139
|
+
}[];
|
|
140
|
+
canInstall: boolean;
|
|
141
|
+
reason?: string;
|
|
142
|
+
}
|
|
113
143
|
export interface TXpertTemplateCatalogQuery {
|
|
114
144
|
search?: string;
|
|
115
145
|
category?: string;
|
|
@@ -56,9 +56,23 @@ export type TMCPServerReconnect = {
|
|
|
56
56
|
*/
|
|
57
57
|
delayMs?: number;
|
|
58
58
|
};
|
|
59
|
-
|
|
59
|
+
/** Supported authentication modes for a host-consumed MCP server. */
|
|
60
|
+
export declare const MCP_CONSUMER_AUTH_TYPES: readonly ["none", "manual_header", "api_key", "oauth", "connector"];
|
|
61
|
+
/** Discriminator for MCP consumer authentication configuration. */
|
|
60
62
|
export type McpConsumerAuthType = (typeof MCP_CONSUMER_AUTH_TYPES)[number];
|
|
63
|
+
/** MCP authentication by mode; Connector credentials remain host-managed. */
|
|
61
64
|
export type TMcpConsumerAuth = {
|
|
65
|
+
/** Use the caller's Connector authorization. */
|
|
66
|
+
type: 'connector';
|
|
67
|
+
/** Administrator-resolved binding. Never a token or a package-supplied machine ID. */
|
|
68
|
+
bindingId: string;
|
|
69
|
+
/** Registered Connector strategy key matching this binding. */
|
|
70
|
+
provider: string;
|
|
71
|
+
/** Resource/audience understood by the Connector provider. */
|
|
72
|
+
resource?: string;
|
|
73
|
+
/** Required scopes, revalidated by the Connector. */
|
|
74
|
+
scopes?: string[];
|
|
75
|
+
} | {
|
|
62
76
|
type: 'none';
|
|
63
77
|
} | {
|
|
64
78
|
type: 'manual_header';
|
|
@@ -3,6 +3,7 @@ import { ICopilotModel } from './copilot-model.model';
|
|
|
3
3
|
import { TKBRecallParams } from './knowledgebase.model';
|
|
4
4
|
import { ApiAuthType, JsonSchemaObjectType, TErrorHandling, TXpertRefParameter } from './types';
|
|
5
5
|
import { TKBRetrievalSettings, TStateVariable, TXpertParameter } from './xpert.model';
|
|
6
|
+
import type { AssistantTriggerPresentation } from './assistant-trigger.model';
|
|
6
7
|
export type TWorkflowNodeMeta = {
|
|
7
8
|
name: string;
|
|
8
9
|
label: I18nObject;
|
|
@@ -10,7 +11,20 @@ export type TWorkflowNodeMeta = {
|
|
|
10
11
|
deprecated?: boolean;
|
|
11
12
|
configSchema: JsonSchemaObjectType;
|
|
12
13
|
};
|
|
13
|
-
export type TWorkflowTriggerMeta = TWorkflowNodeMeta
|
|
14
|
+
export type TWorkflowTriggerMeta = TWorkflowNodeMeta & {
|
|
15
|
+
assistant?: AssistantTriggerPresentation;
|
|
16
|
+
quickConnect?: {
|
|
17
|
+
method: 'qr';
|
|
18
|
+
integrationProvider: string;
|
|
19
|
+
configField: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type TWorkflowTriggerConnectionStatus = {
|
|
23
|
+
provider: string;
|
|
24
|
+
enabled: boolean;
|
|
25
|
+
connected: boolean;
|
|
26
|
+
state: 'disconnected' | 'connecting' | 'connected' | 'failed';
|
|
27
|
+
};
|
|
14
28
|
export declare enum WorkflowNodeTypeEnum {
|
|
15
29
|
START = "start",
|
|
16
30
|
END = "end",
|
package/src/ai/xpert.model.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { IXpertAgent } from './xpert-agent.model';
|
|
|
11
11
|
import { IXpertToolset } from './xpert-toolset.model';
|
|
12
12
|
import { IBasePerWorkspaceEntityModel } from './xpert-workspace.model';
|
|
13
13
|
import { IIntegration } from '../integration.model';
|
|
14
|
-
import { TChatFrom } from './chat.model';
|
|
14
|
+
import { TChatCheckpointReference, TChatFrom } from './chat.model';
|
|
15
15
|
import { IWorkflowNode, TVariableAssigner, VariableOperationEnum } from './xpert-workflow.model';
|
|
16
16
|
import { IEnvironment } from './environment.model';
|
|
17
17
|
import { TXpertCommandProfile } from './prompt-workflow.model';
|
|
@@ -42,6 +42,10 @@ export type TXpertTitleFeature = {
|
|
|
42
42
|
instruction?: string;
|
|
43
43
|
};
|
|
44
44
|
export type TXpertFeatures = {
|
|
45
|
+
/** Generate start-screen questions from recurring intents in conversation history. */
|
|
46
|
+
frequentQuestions?: {
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
};
|
|
45
49
|
opener: {
|
|
46
50
|
enabled: boolean;
|
|
47
51
|
message: string;
|
|
@@ -296,6 +300,7 @@ export type TXpertDataXpertOptions = {
|
|
|
296
300
|
[key: string]: unknown;
|
|
297
301
|
};
|
|
298
302
|
export type TXpertOptions = {
|
|
303
|
+
assistantCapabilities?: import('./assistant-configuration.model').AssistantCapabilityState;
|
|
299
304
|
/** Runtime-selectable Primary Agent models. The configured Primary model is added automatically. */
|
|
300
305
|
modelSelection?: {
|
|
301
306
|
/** Additional LLM models users may select. */
|
|
@@ -305,6 +310,10 @@ export type TXpertOptions = {
|
|
|
305
310
|
workspaceScope?: {
|
|
306
311
|
/** Require an explicit Project, or prefer one while preserving the legacy fallback. */
|
|
307
312
|
mode: 'project-required' | 'project-preferred';
|
|
313
|
+
/** Opt in to creating a Project on the first send of an empty conversation, under the caller's permissions. */
|
|
314
|
+
onMissing?: 'create';
|
|
315
|
+
/** Explicit application context for discovery and governed Project creation. */
|
|
316
|
+
projectType?: import('./xpert-project-type.model').XpertProjectTypeRef;
|
|
308
317
|
};
|
|
309
318
|
/** Legacy template key retained for existing plugin-authored DSL files. */
|
|
310
319
|
templateKey?: string;
|
|
@@ -356,6 +365,8 @@ export type TXpertAgentConfig = {
|
|
|
356
365
|
* Sensitive tools and agents
|
|
357
366
|
*/
|
|
358
367
|
interruptBefore?: string[];
|
|
368
|
+
/** Pause after these tools finish, before the next model turn. Resume never reruns the tool. */
|
|
369
|
+
interruptAfter?: string[];
|
|
359
370
|
/**
|
|
360
371
|
* End nodes
|
|
361
372
|
*/
|
|
@@ -610,6 +621,9 @@ export type TChatOptions = {
|
|
|
610
621
|
messageId?: string;
|
|
611
622
|
thread_id?: string;
|
|
612
623
|
checkpointId?: string;
|
|
624
|
+
/** Server-resolved pause checkpoint; never an arbitrary client state patch. */
|
|
625
|
+
resumeCheckpoint?: TChatCheckpointReference;
|
|
626
|
+
inputMessageId?: string;
|
|
613
627
|
/**
|
|
614
628
|
* The language used by the current browser page
|
|
615
629
|
*/
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
export type ShellState = 'pending' | 'running' | 'cancel_requested' | 'succeeded' | 'failed' | 'cancelled' | 'timed_out' | 'rejected' | 'unknown';
|
|
2
|
+
export interface ShellSettings {
|
|
3
|
+
name: string;
|
|
4
|
+
shell: '/bin/zsh' | '/bin/bash';
|
|
5
|
+
cwd: string;
|
|
6
|
+
path: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ShellExecInput {
|
|
9
|
+
action: 'exec';
|
|
10
|
+
command: string;
|
|
11
|
+
cwd?: string;
|
|
12
|
+
timeout_sec?: number;
|
|
13
|
+
}
|
|
14
|
+
export type ShellInput = ShellExecInput | {
|
|
15
|
+
action: 'status';
|
|
16
|
+
operationId: string;
|
|
17
|
+
cursor?: number;
|
|
18
|
+
} | {
|
|
19
|
+
action: 'cancel';
|
|
20
|
+
operationId: string;
|
|
21
|
+
};
|
|
22
|
+
export interface ShellScope {
|
|
23
|
+
tenantId: string;
|
|
24
|
+
organizationId: string;
|
|
25
|
+
userId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ShellDeviceInfo {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
platform: string;
|
|
31
|
+
shell: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ShellChunk {
|
|
34
|
+
seq: number;
|
|
35
|
+
stream: 'stdout' | 'stderr';
|
|
36
|
+
data: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ShellResult {
|
|
39
|
+
operationId: string;
|
|
40
|
+
executionTarget: 'desktop';
|
|
41
|
+
device: ShellDeviceInfo;
|
|
42
|
+
cwd: string;
|
|
43
|
+
state: ShellState;
|
|
44
|
+
stdout: string;
|
|
45
|
+
stderr: string;
|
|
46
|
+
exitCode: number | null;
|
|
47
|
+
signal?: string;
|
|
48
|
+
nextCursor: number;
|
|
49
|
+
truncated: boolean;
|
|
50
|
+
error?: {
|
|
51
|
+
code: string;
|
|
52
|
+
message: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
interface WireBase {
|
|
56
|
+
version: 1;
|
|
57
|
+
operationId: string;
|
|
58
|
+
connectionEpoch: string;
|
|
59
|
+
}
|
|
60
|
+
export interface ShellExecCommand extends WireBase {
|
|
61
|
+
type: 'exec';
|
|
62
|
+
grantId: string;
|
|
63
|
+
argsHash: string;
|
|
64
|
+
command: string;
|
|
65
|
+
cwd: string;
|
|
66
|
+
timeoutSec: number;
|
|
67
|
+
deadline: number;
|
|
68
|
+
}
|
|
69
|
+
export interface ShellCancelCommand extends WireBase {
|
|
70
|
+
type: 'cancel';
|
|
71
|
+
reason?: 'cancelled' | 'timed_out';
|
|
72
|
+
}
|
|
73
|
+
export type ShellCommand = ShellExecCommand | ShellCancelCommand;
|
|
74
|
+
export interface ShellOutputReport extends WireBase {
|
|
75
|
+
type: 'output';
|
|
76
|
+
state: 'running';
|
|
77
|
+
seq: number;
|
|
78
|
+
stream: 'stdout' | 'stderr';
|
|
79
|
+
data: string;
|
|
80
|
+
}
|
|
81
|
+
export interface ShellStateReport extends WireBase {
|
|
82
|
+
type: 'state';
|
|
83
|
+
state: ShellState;
|
|
84
|
+
seq: number;
|
|
85
|
+
exitCode: number | null;
|
|
86
|
+
signal?: string;
|
|
87
|
+
truncated: boolean;
|
|
88
|
+
errorCode?: string;
|
|
89
|
+
}
|
|
90
|
+
export type ShellReport = ShellOutputReport | ShellStateReport;
|
|
91
|
+
export interface IDesktopShellDevice extends ShellScope {
|
|
92
|
+
id: string;
|
|
93
|
+
installationId: string;
|
|
94
|
+
name: string;
|
|
95
|
+
platform: string;
|
|
96
|
+
shell: string;
|
|
97
|
+
cwd: string;
|
|
98
|
+
enabled: boolean;
|
|
99
|
+
credentialHash: string;
|
|
100
|
+
credentialExpiresAt: Date;
|
|
101
|
+
connectionEpoch: string | null;
|
|
102
|
+
leaseExpiresAt: Date | null;
|
|
103
|
+
}
|
|
104
|
+
export interface IDesktopShellGrant extends ShellScope {
|
|
105
|
+
operation: ShellOperationAuthorization | null;
|
|
106
|
+
id: string;
|
|
107
|
+
deviceId: string;
|
|
108
|
+
assistantId: string;
|
|
109
|
+
threadId: string | null;
|
|
110
|
+
enabled: boolean;
|
|
111
|
+
expiresAt: Date;
|
|
112
|
+
}
|
|
113
|
+
export interface IDesktopShellOperation extends ShellScope {
|
|
114
|
+
id: string;
|
|
115
|
+
deviceId: string;
|
|
116
|
+
grantId: string;
|
|
117
|
+
threadId: string;
|
|
118
|
+
runId: string;
|
|
119
|
+
toolCallId: string;
|
|
120
|
+
argsHash: string;
|
|
121
|
+
command: string;
|
|
122
|
+
cwd: string;
|
|
123
|
+
timeoutSec: number;
|
|
124
|
+
deadline: Date;
|
|
125
|
+
state: ShellState;
|
|
126
|
+
output: ShellChunk[];
|
|
127
|
+
outputBytes: number;
|
|
128
|
+
seq: number;
|
|
129
|
+
exitCode: number | null;
|
|
130
|
+
signal: string | null;
|
|
131
|
+
truncated: boolean;
|
|
132
|
+
errorCode: string | null;
|
|
133
|
+
}
|
|
134
|
+
export type ShellPolicy = 'ask' | 'allow' | 'deny';
|
|
135
|
+
export interface ShellPreparationRequest {
|
|
136
|
+
kind: 'desktop-shell';
|
|
137
|
+
assistantId: string;
|
|
138
|
+
threadId: string;
|
|
139
|
+
runId: string;
|
|
140
|
+
toolCallId: string;
|
|
141
|
+
command: string;
|
|
142
|
+
cwd?: string;
|
|
143
|
+
timeoutSec: number;
|
|
144
|
+
}
|
|
145
|
+
export interface ShellOperationAuthorization {
|
|
146
|
+
runId: string;
|
|
147
|
+
toolCallId: string;
|
|
148
|
+
argsHash: string;
|
|
149
|
+
decision: 'pending' | 'approved' | 'rejected';
|
|
150
|
+
}
|
|
151
|
+
export interface ShellPreparation {
|
|
152
|
+
kind: 'desktop-shell';
|
|
153
|
+
grantId: string;
|
|
154
|
+
deviceName: string;
|
|
155
|
+
cwd: string;
|
|
156
|
+
decision: 'pending' | 'approved';
|
|
157
|
+
expiresAt: number;
|
|
158
|
+
}
|
|
159
|
+
export {};
|
package/src/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './types';
|
|
2
|
+
export * from './ai/project-task-graph.model';
|
|
3
|
+
export * from './ai/project-task-schedule';
|
|
2
4
|
export * from './utils';
|
|
3
5
|
export type { I18nObject, I18nText } from './i18n.model';
|
|
4
6
|
export { resolveI18nText } from './i18n.model';
|
|
@@ -60,3 +62,5 @@ export * from './plain-object.model';
|
|
|
60
62
|
export * from './plugin';
|
|
61
63
|
export * from './view-extension';
|
|
62
64
|
export * from './runtime-control';
|
|
65
|
+
export type { RuntimeResourceKind, RuntimeResourceStatus, RuntimeResourceReference, RuntimeResourcesSelection, AgentPluginDiagnostic, RuntimeResourceCatalogItem, RuntimeResourceView, RuntimeResourceCatalog, AgentPluginXpertExtension, AgentPluginConnectorAuth, AgentPluginConnectorBinding, RuntimeResourceDefinition, RuntimeResourceBindingInput, WorkspaceAgentPlugin, WorkspaceAgentPluginOptions, WorkspaceAgentPluginAddInput, WorkspaceAgentPluginAddResult } from './agent-plugin';
|
|
66
|
+
export * from './desktop-shell.model';
|
|
@@ -110,6 +110,8 @@ export type TIntegrationProvider = {
|
|
|
110
110
|
* authorization links, without the host hard-coding provider names.
|
|
111
111
|
*/
|
|
112
112
|
setup?: {
|
|
113
|
+
/** The provider implements the server-side QR authorization lifecycle. */
|
|
114
|
+
qrAuthorization?: boolean;
|
|
113
115
|
/**
|
|
114
116
|
* When true, the host runs the provider's `validateConfig` after an
|
|
115
117
|
* existing integration is loaded and after save/upsert succeeds. Use this
|
|
@@ -126,3 +128,20 @@ export type TIntegrationProvider = {
|
|
|
126
128
|
};
|
|
127
129
|
pro?: boolean;
|
|
128
130
|
};
|
|
131
|
+
/** Public QR setup data; provider device codes and credentials stay on the server. */
|
|
132
|
+
export interface TIntegrationQrSession {
|
|
133
|
+
id: string;
|
|
134
|
+
authorizationUrl: string;
|
|
135
|
+
expiresAt: number;
|
|
136
|
+
intervalSeconds: number;
|
|
137
|
+
}
|
|
138
|
+
export type TIntegrationQrStatus = 'waiting' | 'authorized' | 'expired' | 'denied' | 'failed';
|
|
139
|
+
/** Stable setup failures; clients translate these codes instead of parsing server messages. */
|
|
140
|
+
export type TIntegrationQrErrorCode = 'INTEGRATION_QR_BUSY' | 'TRIGGER_DRAFT_CONFLICT' | 'TRIGGER_PUBLISH_REQUIRED';
|
|
141
|
+
export interface TIntegrationQrResult {
|
|
142
|
+
status: TIntegrationQrStatus;
|
|
143
|
+
}
|
|
144
|
+
export type TIntegrationQrCreateInput = Pick<IIntegration, 'name' | 'description' | 'avatar'>;
|
|
145
|
+
export type TIntegrationQrCompletion = Pick<IIntegration, 'id' | 'name' | 'slug' | 'provider'> & {
|
|
146
|
+
outcome: 'created' | 'reused';
|
|
147
|
+
};
|
package/src/plugin.d.ts
CHANGED
|
@@ -147,16 +147,20 @@ export interface PluginMarketplaceAppModelRequirements {
|
|
|
147
147
|
embeddingLabel?: string | I18nObject;
|
|
148
148
|
visionLabel?: string | I18nObject;
|
|
149
149
|
}
|
|
150
|
+
export interface PluginMarketplaceAppAssistantDefinition {
|
|
151
|
+
key: string;
|
|
152
|
+
templateKey: string;
|
|
153
|
+
primaryAgentKey: string;
|
|
154
|
+
title?: string | I18nObject;
|
|
155
|
+
}
|
|
150
156
|
/** Portable independent Assistant topology owned by a trusted App. Instance IDs are host-managed. */
|
|
151
157
|
export interface PluginMarketplaceAppAssistantSuite {
|
|
152
158
|
version: string;
|
|
153
159
|
coordinatorAgentKey: string;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
title?: string | I18nObject;
|
|
159
|
-
}>;
|
|
160
|
+
/** Published Assistants connected to the coordinator as required External Xperts. */
|
|
161
|
+
roles: PluginMarketplaceAppAssistantDefinition[];
|
|
162
|
+
/** Published in the same workspace without granting coordinator delegation. */
|
|
163
|
+
standaloneAssistants?: PluginMarketplaceAppAssistantDefinition[];
|
|
160
164
|
}
|
|
161
165
|
/**
|
|
162
166
|
* Declarative, host-owned initialization contract for a trusted plugin App.
|
|
@@ -170,7 +174,8 @@ export interface PluginMarketplaceAppConfig {
|
|
|
170
174
|
mode: 'dedicated';
|
|
171
175
|
name: string | I18nObject;
|
|
172
176
|
description?: string | I18nObject;
|
|
173
|
-
|
|
177
|
+
/** New app workspaces are private. Legacy 'organization' is accepted but does not grant sharing. */
|
|
178
|
+
sharing?: 'private' | 'organization';
|
|
174
179
|
};
|
|
175
180
|
knowledgebases?: PluginMarketplaceAppKnowledgebaseConfig[];
|
|
176
181
|
modelRequirements?: PluginMarketplaceAppModelRequirements;
|
|
@@ -440,6 +445,8 @@ export interface XpertTemplatePluginDependencies {
|
|
|
440
445
|
toolsets?: XpertTemplatePluginToolsetDependency[];
|
|
441
446
|
}
|
|
442
447
|
export interface PluginMarketplaceContribution {
|
|
448
|
+
/** Project types defined by an App, separate from installation configuration. */
|
|
449
|
+
projectTypes?: import('./ai/xpert-project-type.model').XpertProjectTypeDefinition[];
|
|
443
450
|
id?: string;
|
|
444
451
|
type: PluginMarketplaceContributionType;
|
|
445
452
|
name: string;
|
|
@@ -462,6 +469,12 @@ export interface PluginMarketplaceTrialShortcut {
|
|
|
462
469
|
}
|
|
463
470
|
export declare const PLUGIN_MARKETPLACE_CATEGORIES: readonly ["featured", "business-operations", "communication", "creativity", "data-analytics", "developer-tools", "education-research", "finance", "productivity", "research", "security", "travel", "sales", "other"];
|
|
464
471
|
export type PluginMarketplaceCategory = (typeof PLUGIN_MARKETPLACE_CATEGORIES)[number];
|
|
472
|
+
/**
|
|
473
|
+
* Technical subcategories used by the plugin marketplace.
|
|
474
|
+
* marketplace.category describes the business-facing group; marketplace.subcategory describes the technical type.
|
|
475
|
+
*/
|
|
476
|
+
export declare const PLUGIN_MARKETPLACE_SUBCATEGORIES: readonly ["connector", "middleware", "integration", "database", "tools", "model", "vlm", "vector-store", "doc-source", "datasource", "agent", "set"];
|
|
477
|
+
export type PluginMarketplaceSubcategory = (typeof PLUGIN_MARKETPLACE_SUBCATEGORIES)[number];
|
|
465
478
|
export interface PluginTargetAppMarketplaceMetadata {
|
|
466
479
|
contents?: PluginMarketplaceContribution[];
|
|
467
480
|
category?: PluginMarketplaceCategory;
|
|
@@ -650,6 +663,10 @@ export interface PluginMarketplaceItemSource {
|
|
|
650
663
|
packageName?: string | null;
|
|
651
664
|
}
|
|
652
665
|
export interface PluginMarketplaceItem {
|
|
666
|
+
/** A card projection; fetch the plugin endpoint before displaying full contents/actions. */
|
|
667
|
+
summary?: boolean;
|
|
668
|
+
/** Content hash of an embedded icon served by the authenticated marketplace assets endpoint. */
|
|
669
|
+
iconAsset?: string;
|
|
653
670
|
name: string;
|
|
654
671
|
packageName?: string | null;
|
|
655
672
|
displayName?: I18nObject | string;
|
|
@@ -913,6 +930,8 @@ export interface PluginResourceInstallXpertInput {
|
|
|
913
930
|
}
|
|
914
931
|
export interface XpertTemplateInstallInput {
|
|
915
932
|
workspaceId: string;
|
|
933
|
+
/** Optional Assistant capability IDs selected for this installation. */
|
|
934
|
+
capabilities?: string[];
|
|
916
935
|
basic?: {
|
|
917
936
|
name?: string;
|
|
918
937
|
title?: string;
|
|
@@ -12,7 +12,7 @@ export interface ITag extends IBasePerTenantAndOrganizationEntityModel {
|
|
|
12
12
|
isActive?: boolean;
|
|
13
13
|
isSystem?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export type TagTarget = TagCategoryEnum | 'knowledgebase' | 'people' | 'integration';
|
|
15
|
+
export type TagTarget = TagCategoryEnum | 'knowledgebase' | 'prompt_workflow' | 'people' | 'integration';
|
|
16
16
|
export declare function getTagTargets(tag: ITag): TagTarget[];
|
|
17
17
|
export interface ITagUsage {
|
|
18
18
|
target: TagTarget;
|
|
@@ -134,8 +134,18 @@ export interface XpertViewActivation {
|
|
|
134
134
|
requiredFeatures?: string[];
|
|
135
135
|
}
|
|
136
136
|
export interface XpertWorkbenchViewOptions {
|
|
137
|
+
/**
|
|
138
|
+
* @deprecated Use the manifest's `visible` field for visibility and `openMode`
|
|
139
|
+
* for initial tab behavior. Retained for compatibility; false hides the view.
|
|
140
|
+
*/
|
|
137
141
|
fixed?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Initial tab behavior; defaults to auto. On-demand views open through a
|
|
144
|
+
* menu, navigation or live Agent request. This does not grant view access.
|
|
145
|
+
*/
|
|
146
|
+
openMode?: 'auto' | 'on-demand';
|
|
138
147
|
menu?: {
|
|
148
|
+
/** Controls the manual entry only; does not disable the view or navigation. */
|
|
139
149
|
enabled?: boolean;
|
|
140
150
|
label?: string | I18nObject;
|
|
141
151
|
order?: number;
|
|
@@ -326,8 +336,12 @@ export declare const ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = "assistant.chat.send_
|
|
|
326
336
|
export declare const ASSISTANT_CONTEXT_SET_COMMAND = "assistant.context.set";
|
|
327
337
|
export declare const WORKBENCH_FILE_OPEN_COMMAND = "workbench.file.open";
|
|
328
338
|
export declare const WORKBENCH_NAVIGATION_OPEN_COMMAND = "workbench.navigation.open";
|
|
339
|
+
export declare const WORKBENCH_AGENT_EVOLUTION_TARGET = "agent-evolution.target";
|
|
340
|
+
export declare const WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET = "agent-evolution.change";
|
|
329
341
|
export declare const WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
|
|
330
342
|
export declare const WORKBENCH_ASSISTANT_CONVERSATION_TARGET = "assistant.conversation";
|
|
343
|
+
/** Inspect an exact execution; embedded clients may open it without changing the active conversation. */
|
|
344
|
+
export declare const WORKBENCH_ASSISTANT_EXECUTION_TARGET = "assistant.execution";
|
|
331
345
|
/** Opens the current Assistant inside a Project-scoped workbench route. */
|
|
332
346
|
export declare const WORKBENCH_ASSISTANT_PROJECT_TARGET = "assistant.project";
|
|
333
347
|
export declare const WORKBENCH_EXTENSION_VIEW_TARGET = "workbench.view";
|
|
@@ -368,9 +382,12 @@ export interface WorkbenchOpenFile {
|
|
|
368
382
|
previewUrl?: string;
|
|
369
383
|
evidence?: WorkbenchOpenFileEvidence;
|
|
370
384
|
}
|
|
371
|
-
export type WorkbenchNavigationOpenTarget = typeof WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET | typeof WORKBENCH_ASSISTANT_CONVERSATION_TARGET | typeof WORKBENCH_ASSISTANT_PROJECT_TARGET | typeof WORKBENCH_EXTENSION_VIEW_TARGET;
|
|
385
|
+
export type WorkbenchNavigationOpenTarget = typeof WORKBENCH_AGENT_EVOLUTION_TARGET | typeof WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET | typeof WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET | typeof WORKBENCH_ASSISTANT_CONVERSATION_TARGET | typeof WORKBENCH_ASSISTANT_EXECUTION_TARGET | typeof WORKBENCH_ASSISTANT_PROJECT_TARGET | typeof WORKBENCH_EXTENSION_VIEW_TARGET;
|
|
372
386
|
export interface WorkbenchNavigationOpenPayload {
|
|
373
387
|
target: WorkbenchNavigationOpenTarget;
|
|
388
|
+
targetId?: string;
|
|
389
|
+
/** Exact evolution request to select on the existing evaluation page. */
|
|
390
|
+
changeId?: string;
|
|
374
391
|
knowledgebaseId?: string;
|
|
375
392
|
documentId?: string;
|
|
376
393
|
parentId?: string;
|
|
@@ -413,6 +430,8 @@ export interface WorkbenchAssistantConversationResolution {
|
|
|
413
430
|
export interface WorkbenchAssistantProjectOpenRequest {
|
|
414
431
|
/** Trusted platform Chat Project id; this is distinct from plugin business ids. */
|
|
415
432
|
projectId: string;
|
|
433
|
+
/** Open a business selection atomically with the Project route. */
|
|
434
|
+
view?: WorkbenchExtensionViewOpenRequest;
|
|
416
435
|
}
|
|
417
436
|
export interface WorkbenchExtensionViewOpenRequest {
|
|
418
437
|
viewKey: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WorkbenchExtensionViewOpenRequest } from './model';
|
|
2
|
+
/** Live-only UI request. Project scope is mandatory; history playback must not reopen Views. */
|
|
3
|
+
export declare const WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
4
|
+
export interface WorkbenchViewOpenEvent extends WorkbenchExtensionViewOpenRequest {
|
|
5
|
+
type: typeof WORKBENCH_VIEW_OPEN_EVENT;
|
|
6
|
+
projectId: string;
|
|
7
|
+
conversationId?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Parse the public lg.chat.event boundary, keeping arbitrary logs out of navigation. */
|
|
10
|
+
export declare function parseWorkbenchViewOpenEvent(value: unknown): WorkbenchViewOpenEvent | null;
|