@xpert-ai/contracts 3.18.6 → 3.20.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 +1390 -222
- package/index.esm.js +1317 -223
- package/package.json +6 -3
- package/src/agent/ai-model.d.ts +1 -0
- package/src/agent/token.d.ts +4 -0
- package/src/agent-plugin.d.ts +192 -0
- package/src/ai/agent-output-delivery.model.d.ts +31 -0
- package/src/ai/agent-runtime.model.d.ts +53 -0
- package/src/ai/ai-model.model.d.ts +3 -0
- package/src/ai/assistant-binding.model.d.ts +3 -0
- package/src/ai/assistant-configuration.model.d.ts +76 -0
- package/src/ai/assistant-order.d.ts +5 -0
- package/src/ai/assistant-trigger.model.d.ts +56 -0
- package/src/ai/bosi.model.d.ts +73 -0
- package/src/ai/chat-activity.model.d.ts +14 -0
- package/src/ai/chat-message-envelope.model.d.ts +55 -0
- package/src/ai/chat-message.model.d.ts +14 -1
- package/src/ai/chat-task-summary.model.d.ts +4 -3
- package/src/ai/chat.model.d.ts +110 -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/execution-activity.model.d.ts +547 -0
- package/src/ai/index.d.ts +17 -0
- package/src/ai/knowledge-keyword-analyzer.model.d.ts +18 -0
- package/src/ai/knowledgebase.model.d.ts +5 -0
- package/src/ai/mcp-capability.model.d.ts +5 -1
- package/src/ai/mcp-publication.model.d.ts +1 -1
- package/src/ai/membership.model.d.ts +5 -0
- package/src/ai/middleware.model.d.ts +1 -0
- package/src/ai/mobile.model.d.ts +5 -0
- package/src/ai/model-execution.model.d.ts +265 -0
- package/src/ai/model-gateway.model.d.ts +15 -3
- package/src/ai/model-usage.model.d.ts +19 -0
- package/src/ai/project-selection.model.d.ts +9 -0
- package/src/ai/project-task-graph.model.d.ts +70 -0
- package/src/ai/project-task-runtime.model.d.ts +1106 -0
- package/src/ai/project-task-schedule.d.ts +24 -0
- package/src/ai/project-task-type.model.d.ts +13 -0
- package/src/ai/prompt-workflow-capabilities.model.d.ts +15 -0
- package/src/ai/prompt-workflow.model.d.ts +17 -0
- package/src/ai/realtime-voice.model.d.ts +90 -0
- package/src/ai/realtime-voice.transport.d.ts +54 -0
- package/src/ai/resource-card.d.ts +2 -0
- package/src/ai/sandbox-file-output.model.d.ts +9 -0
- package/src/ai/thread-activity.model.d.ts +14 -0
- package/src/ai/xpert-agent-execution.model.d.ts +37 -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 +46 -1
- package/src/ai/xpert-template.model.d.ts +48 -0
- package/src/ai/xpert-tool-mcp.model.d.ts +21 -1
- package/src/ai/xpert-workflow.model.d.ts +15 -1
- package/src/ai/xpert.model.d.ts +20 -1
- package/src/desktop-shell.model.d.ts +159 -0
- package/src/i18n.model.d.ts +1 -0
- package/src/index.d.ts +7 -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/types.d.ts +4 -0
- package/src/view-extension/index.d.ts +2 -0
- package/src/view-extension/model.d.ts +41 -1
- package/src/view-extension/workbench-open.d.ts +10 -0
- package/src/view-extension/workbench.d.ts +6 -0
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,11 @@ export type TXpertTitleFeature = {
|
|
|
42
42
|
instruction?: string;
|
|
43
43
|
};
|
|
44
44
|
export type TXpertFeatures = {
|
|
45
|
+
realtimeVoice?: import('./realtime-voice.model').RealtimeVoiceFeature;
|
|
46
|
+
/** Generate start-screen questions from recurring intents in conversation history. */
|
|
47
|
+
frequentQuestions?: {
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
};
|
|
45
50
|
opener: {
|
|
46
51
|
enabled: boolean;
|
|
47
52
|
message: string;
|
|
@@ -296,6 +301,11 @@ export type TXpertDataXpertOptions = {
|
|
|
296
301
|
[key: string]: unknown;
|
|
297
302
|
};
|
|
298
303
|
export type TXpertOptions = {
|
|
304
|
+
/** Default ChatKit message display for this Assistant. Omit to inherit the host application's default. */
|
|
305
|
+
messagePresentation?: {
|
|
306
|
+
mode?: 'transcript' | 'bubbles';
|
|
307
|
+
};
|
|
308
|
+
assistantCapabilities?: import('./assistant-configuration.model').AssistantCapabilityState;
|
|
299
309
|
/** Runtime-selectable Primary Agent models. The configured Primary model is added automatically. */
|
|
300
310
|
modelSelection?: {
|
|
301
311
|
/** Additional LLM models users may select. */
|
|
@@ -305,6 +315,10 @@ export type TXpertOptions = {
|
|
|
305
315
|
workspaceScope?: {
|
|
306
316
|
/** Require an explicit Project, or prefer one while preserving the legacy fallback. */
|
|
307
317
|
mode: 'project-required' | 'project-preferred';
|
|
318
|
+
/** Create on first send, or defer creation until a human confirms the pending setup App. */
|
|
319
|
+
onMissing?: 'create' | 'confirm';
|
|
320
|
+
/** Explicit application context for discovery and governed Project creation. */
|
|
321
|
+
projectType?: import('./xpert-project-type.model').XpertProjectTypeRef;
|
|
308
322
|
};
|
|
309
323
|
/** Legacy template key retained for existing plugin-authored DSL files. */
|
|
310
324
|
templateKey?: string;
|
|
@@ -356,6 +370,8 @@ export type TXpertAgentConfig = {
|
|
|
356
370
|
* Sensitive tools and agents
|
|
357
371
|
*/
|
|
358
372
|
interruptBefore?: string[];
|
|
373
|
+
/** Pause after these tools finish, before the next model turn. Resume never reruns the tool. */
|
|
374
|
+
interruptAfter?: string[];
|
|
359
375
|
/**
|
|
360
376
|
* End nodes
|
|
361
377
|
*/
|
|
@@ -610,6 +626,9 @@ export type TChatOptions = {
|
|
|
610
626
|
messageId?: string;
|
|
611
627
|
thread_id?: string;
|
|
612
628
|
checkpointId?: string;
|
|
629
|
+
/** Server-resolved pause checkpoint; never an arbitrary client state patch. */
|
|
630
|
+
resumeCheckpoint?: TChatCheckpointReference;
|
|
631
|
+
inputMessageId?: string;
|
|
613
632
|
/**
|
|
614
633
|
* The language used by the current browser page
|
|
615
634
|
*/
|
|
@@ -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/i18n.model.d.ts
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from './types';
|
|
2
|
+
export * from './ai/project-task-graph.model';
|
|
3
|
+
export * from './ai/project-task-type.model';
|
|
4
|
+
export * from './ai/project-task-schedule';
|
|
2
5
|
export * from './utils';
|
|
3
6
|
export type { I18nObject, I18nText } from './i18n.model';
|
|
4
7
|
export { resolveI18nText } from './i18n.model';
|
|
@@ -60,3 +63,7 @@ export * from './plain-object.model';
|
|
|
60
63
|
export * from './plugin';
|
|
61
64
|
export * from './view-extension';
|
|
62
65
|
export * from './runtime-control';
|
|
66
|
+
export type { RuntimeResourceKind, RuntimeResourceStatus, RuntimeResourceReference, RuntimeResourcesSelection, AgentPluginDiagnostic, RuntimeResourceCatalogItem, RuntimeResourceView, RuntimeResourceCatalog, AgentPluginXpertExtension, AgentPluginConnectorAuth, AgentPluginConnectorBinding, RuntimeResourceDefinition, RuntimeResourceBindingInput, WorkspaceAgentPlugin, WorkspaceAgentPluginOptions, WorkspaceAgentPluginAddInput, WorkspaceAgentPluginAddResult } from './agent-plugin';
|
|
67
|
+
export * from './desktop-shell.model';
|
|
68
|
+
export * from './ai/agent-output-delivery.model';
|
|
69
|
+
export * from './ai/execution-activity.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;
|
package/src/types.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { AssistantAppearance } from '@xpert-ai/chatkit-types';
|
|
1
2
|
import ShortUniqueId from 'short-unique-id';
|
|
2
3
|
import type * as z3 from 'zod/v3';
|
|
3
4
|
import type * as z4 from 'zod/v4/core';
|
|
4
5
|
import type { I18nObject } from './i18n.model';
|
|
6
|
+
export type { AssistantAppearance as TAssistantAppearance, AssistantCharacterConfig as TAssistantCharacterConfig } from '@xpert-ai/chatkit-types';
|
|
5
7
|
export type { I18nObject, I18nText } from './i18n.model';
|
|
6
8
|
export { resolveI18nText } from './i18n.model';
|
|
7
9
|
declare const uuidGenerator: ShortUniqueId;
|
|
@@ -15,6 +17,8 @@ export declare const uuid: (...args: Parameters<(typeof uuidGenerator)["randomUU
|
|
|
15
17
|
*/
|
|
16
18
|
export type ID = string;
|
|
17
19
|
export type TAvatar = {
|
|
20
|
+
/** Optional animated Assistant presentation; legacy renderers continue to use url/emoji. */
|
|
21
|
+
appearance?: AssistantAppearance;
|
|
18
22
|
emoji?: {
|
|
19
23
|
id: string;
|
|
20
24
|
set?: '' | 'apple' | 'google' | 'twitter' | 'facebook';
|
|
@@ -134,8 +134,20 @@ 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';
|
|
147
|
+
/** Opt into conversation changes while retaining the mounted Remote View. */
|
|
148
|
+
contextScope?: 'project' | 'conversation';
|
|
138
149
|
menu?: {
|
|
150
|
+
/** Controls the manual entry only; does not disable the view or navigation. */
|
|
139
151
|
enabled?: boolean;
|
|
140
152
|
label?: string | I18nObject;
|
|
141
153
|
order?: number;
|
|
@@ -326,8 +338,12 @@ export declare const ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = "assistant.chat.send_
|
|
|
326
338
|
export declare const ASSISTANT_CONTEXT_SET_COMMAND = "assistant.context.set";
|
|
327
339
|
export declare const WORKBENCH_FILE_OPEN_COMMAND = "workbench.file.open";
|
|
328
340
|
export declare const WORKBENCH_NAVIGATION_OPEN_COMMAND = "workbench.navigation.open";
|
|
341
|
+
export declare const WORKBENCH_AGENT_EVOLUTION_TARGET = "agent-evolution.target";
|
|
342
|
+
export declare const WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET = "agent-evolution.change";
|
|
329
343
|
export declare const WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
|
|
330
344
|
export declare const WORKBENCH_ASSISTANT_CONVERSATION_TARGET = "assistant.conversation";
|
|
345
|
+
/** Inspect an exact execution; embedded clients may open it without changing the active conversation. */
|
|
346
|
+
export declare const WORKBENCH_ASSISTANT_EXECUTION_TARGET = "assistant.execution";
|
|
331
347
|
/** Opens the current Assistant inside a Project-scoped workbench route. */
|
|
332
348
|
export declare const WORKBENCH_ASSISTANT_PROJECT_TARGET = "assistant.project";
|
|
333
349
|
export declare const WORKBENCH_EXTENSION_VIEW_TARGET = "workbench.view";
|
|
@@ -368,9 +384,12 @@ export interface WorkbenchOpenFile {
|
|
|
368
384
|
previewUrl?: string;
|
|
369
385
|
evidence?: WorkbenchOpenFileEvidence;
|
|
370
386
|
}
|
|
371
|
-
export type WorkbenchNavigationOpenTarget = typeof WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET | typeof WORKBENCH_ASSISTANT_CONVERSATION_TARGET | typeof WORKBENCH_ASSISTANT_PROJECT_TARGET | typeof WORKBENCH_EXTENSION_VIEW_TARGET;
|
|
387
|
+
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
388
|
export interface WorkbenchNavigationOpenPayload {
|
|
373
389
|
target: WorkbenchNavigationOpenTarget;
|
|
390
|
+
targetId?: string;
|
|
391
|
+
/** Exact evolution request to select on the existing evaluation page. */
|
|
392
|
+
changeId?: string;
|
|
374
393
|
knowledgebaseId?: string;
|
|
375
394
|
documentId?: string;
|
|
376
395
|
parentId?: string;
|
|
@@ -392,6 +411,10 @@ export interface WorkbenchNavigationOpenPayload {
|
|
|
392
411
|
viewKey?: string;
|
|
393
412
|
selectionId?: string;
|
|
394
413
|
parameters?: Record<string, XpertViewScalar | XpertViewScalar[]>;
|
|
414
|
+
/** Exact visible message in the requested branch. */
|
|
415
|
+
messageId?: string;
|
|
416
|
+
/** Keep the originating Workbench view open during navigation. */
|
|
417
|
+
preserveView?: boolean;
|
|
395
418
|
}
|
|
396
419
|
export interface WorkbenchAssistantConversationOpenRequest {
|
|
397
420
|
conversationId: string;
|
|
@@ -401,6 +424,10 @@ export interface WorkbenchAssistantConversationOpenRequest {
|
|
|
401
424
|
xpertId?: string;
|
|
402
425
|
/** Untrusted hint; the host must resolve the canonical Project from `conversationId`. */
|
|
403
426
|
projectId?: string;
|
|
427
|
+
/** Exact visible message in the requested branch. */
|
|
428
|
+
messageId?: string;
|
|
429
|
+
/** Keep the originating Workbench view open during navigation. */
|
|
430
|
+
preserveView?: boolean;
|
|
404
431
|
}
|
|
405
432
|
/** Server-authorized runtime scope used to rebuild ChatKit for one persisted Assistant conversation. */
|
|
406
433
|
export interface WorkbenchAssistantConversationResolution {
|
|
@@ -409,10 +436,13 @@ export interface WorkbenchAssistantConversationResolution {
|
|
|
409
436
|
xpertId: string;
|
|
410
437
|
projectId: string | null;
|
|
411
438
|
isExternalAssistant: boolean;
|
|
439
|
+
messageId?: string;
|
|
412
440
|
}
|
|
413
441
|
export interface WorkbenchAssistantProjectOpenRequest {
|
|
414
442
|
/** Trusted platform Chat Project id; this is distinct from plugin business ids. */
|
|
415
443
|
projectId: string;
|
|
444
|
+
/** Inspect a View in this Project without changing the active conversation. */
|
|
445
|
+
view?: WorkbenchExtensionViewOpenRequest;
|
|
416
446
|
}
|
|
417
447
|
export interface WorkbenchExtensionViewOpenRequest {
|
|
418
448
|
viewKey: string;
|
|
@@ -505,6 +535,16 @@ export interface XpertRemoteViewHostEventMessage {
|
|
|
505
535
|
/** Optional visualization metadata used by manifest filters and remote views. */
|
|
506
536
|
visualization?: XpertViewHostEventVisualization;
|
|
507
537
|
}
|
|
538
|
+
/** Sent to every mounted View after an authorized runtime context change, including hidden Views. */
|
|
539
|
+
export interface XpertRemoteViewContextChangedEvent extends XpertRemoteViewHostEventMessage {
|
|
540
|
+
type: 'view.context.changed';
|
|
541
|
+
data: {
|
|
542
|
+
/** Monotonic within this View instance; stale asynchronous results must be ignored. */
|
|
543
|
+
revision: number;
|
|
544
|
+
/** Complete target scope. Null means no binding, never a scope still being resolved. */
|
|
545
|
+
runtimeScope: Required<XpertViewRuntimeScopeInput>;
|
|
546
|
+
};
|
|
547
|
+
}
|
|
508
548
|
/**
|
|
509
549
|
* Host-internal event message. `hostType` and `hostId` are routing fields and
|
|
510
550
|
* must be stripped before forwarding to remote components.
|
|
@@ -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;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Assistant Workbench slot; openMode controls initial tab opening separately. */
|
|
2
|
+
export declare const AGENT_WORKBENCH_SLOT = "agent.workbench";
|
|
3
|
+
/** Legacy plugin declarations and client requests; normalized to AGENT_WORKBENCH_SLOT by the host. */
|
|
4
|
+
export declare const LEGACY_AGENT_WORKBENCH_SLOTS: readonly ["agent.workbench.fixed", "agent.workbench.main"];
|
|
5
|
+
/** Platform-provided navigation, available without Assistant middleware. */
|
|
6
|
+
export declare const CONVERSATION_MAP_FEATURE = "platform.conversation-map";
|