@xpert-ai/xpert-sdk 0.4.4 → 0.5.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/dist/index.d.ts
CHANGED
|
@@ -11,3 +11,4 @@ export { ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASS
|
|
|
11
11
|
export type { XpertExtensionViewManifest, XpertI18nObject, XpertRemoteComponentEntry, XpertRemoteComponentInvokeClientCommandRequest, XpertRemoteComponentRuntime, XpertRemoteComponentViewSchema, XpertRemoteViewHostEventMessage, XpertResolvedViewHostContext, XpertViewActionDefinition, XpertViewActionPlacement, XpertViewActionRequest, XpertViewActionResult, XpertViewActionTransport, XpertViewActionType, XpertViewActivation, XpertViewBadge, XpertViewCachePolicy, XpertViewClientCommandDefinition, XpertViewColumnDataType, XpertViewDataResult, XpertViewDataSource, XpertDetailViewSchema, XpertViewFile, XpertViewFileAccessDefinition, XpertViewFileAccessGrantResult, XpertViewFileAccessPurpose, XpertViewFileAccessRequest, XpertViewFileAccessSessionResult, XpertViewFileActionRequest, XpertViewFilter, XpertViewFilterOperator, XpertViewHostCapabilities, XpertViewFeatureProvider, XpertViewHostAccessLevel, XpertViewHostContext, XpertViewHostEventMessage, XpertViewHostEventSubscription, XpertViewHostEventSubscriptionActionType, XpertViewHostEventVisualization, XpertViewHostEvents, XpertViewHostState, XpertViewHostType, XpertViewJsonSchema, XpertViewJsonSchemaNode, XpertViewJsonSchemaValue, XpertListViewSchema, XpertViewParameterDefinition, XpertViewParameterOption, XpertViewParameterOptionsQuery, XpertViewParameterOptionsResult, XpertViewPolling, XpertViewQuery, XpertViewQuerySchema, XpertRawJsonViewSchema, XpertViewRequestOptions, XpertViewRuntimeScope, XpertViewRuntimeScopeInput, XpertViewProjectAccess, XpertViewWorkspaceFilesScope, XpertViewScalar, XpertViewSchema, XpertViewSchemaType, XpertViewSlot, XpertViewSlotMode, XpertViewSortDirection, XpertViewSource, XpertStatsViewSchema, XpertTableViewSchema, XpertViewValueType, XpertWorkbenchViewOptions, WorkbenchAssistantConversationOpenRequest, WorkbenchExtensionViewOpenRequest, WorkbenchNavigationOpenPayload, WorkbenchNavigationOpenTarget, WorkbenchOpenFile, WorkbenchOpenFileEvidence, WorkbenchOpenFileEvidenceBox, } from "./view-extension.js";
|
|
12
12
|
export type * from "./runtime-resources.js";
|
|
13
13
|
export * from "./workbench-open.js";
|
|
14
|
+
export type { ConversationResourceCard, ResourceCardOpenTarget, TMessageContentResourceCard } from './resource-card.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { XpertViewScalar } from './view-extension.js';
|
|
2
|
+
import type { IconDefinition } from './schema.js';
|
|
3
|
+
/** Public chat resource-card wire contract, synchronized with chatkit-types. */
|
|
4
|
+
export type ResourceCardOpenTarget = {
|
|
5
|
+
viewKey: string;
|
|
6
|
+
selectionId?: string;
|
|
7
|
+
parameters?: Record<string, XpertViewScalar | XpertViewScalar[]>;
|
|
8
|
+
} & ({
|
|
9
|
+
target: 'workbench.view';
|
|
10
|
+
} | {
|
|
11
|
+
target: 'assistant.project';
|
|
12
|
+
projectId: string;
|
|
13
|
+
});
|
|
14
|
+
export interface ConversationResourceCard {
|
|
15
|
+
resource: {
|
|
16
|
+
namespace: string;
|
|
17
|
+
type: string;
|
|
18
|
+
id: string;
|
|
19
|
+
artifactId?: string;
|
|
20
|
+
};
|
|
21
|
+
title: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
icon?: IconDefinition;
|
|
24
|
+
open: ResourceCardOpenTarget;
|
|
25
|
+
}
|
|
26
|
+
export type TMessageContentResourceCard = {
|
|
27
|
+
type: 'resource_card';
|
|
28
|
+
id: string;
|
|
29
|
+
data: ConversationResourceCard;
|
|
30
|
+
messageId?: string;
|
|
31
|
+
executionId?: string;
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-card.js","sourceRoot":"","sources":["../src/resource-card.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-card.mjs","sourceRoot":"","sources":["../src/resource-card.ts"],"names":[],"mappings":""}
|
package/dist/types.messages.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TMessageContentResourceCard } from './resource-card.js';
|
|
1
2
|
type ImageDetail = "auto" | "low" | "high";
|
|
2
3
|
type MessageContentImageUrl = {
|
|
3
4
|
type: "image_url";
|
|
@@ -10,7 +11,7 @@ type MessageContentText = {
|
|
|
10
11
|
type: "text";
|
|
11
12
|
text: string;
|
|
12
13
|
};
|
|
13
|
-
type MessageContentComplex = MessageContentText | MessageContentImageUrl;
|
|
14
|
+
type MessageContentComplex = MessageContentText | MessageContentImageUrl | TMessageContentResourceCard;
|
|
14
15
|
type MessageContent = string | MessageContentComplex[];
|
|
15
16
|
/**
|
|
16
17
|
* Model-specific additional kwargs, which is passed back to the underlying LLM.
|