@microsoft/agents-copilotstudio-client 1.1.0-alpha.2 → 1.1.0-alpha.58
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/package.json +3 -3
- package/dist/src/browser.mjs +6 -8
- package/dist/src/browser.mjs.map +4 -4
- package/dist/src/copilotStudioClient.d.ts +16 -8
- package/dist/src/copilotStudioClient.js +88 -97
- package/dist/src/copilotStudioClient.js.map +1 -1
- package/dist/src/copilotStudioWebChat.js +80 -11
- package/dist/src/copilotStudioWebChat.js.map +1 -1
- package/package.json +3 -3
- package/src/copilotStudioClient.ts +92 -110
- package/src/copilotStudioWebChat.ts +88 -13
|
@@ -17,8 +17,8 @@ export declare class CopilotStudioClient {
|
|
|
17
17
|
private conversationId;
|
|
18
18
|
/** The connection settings for the client. */
|
|
19
19
|
private readonly settings;
|
|
20
|
-
/** The
|
|
21
|
-
private readonly
|
|
20
|
+
/** The authenticaton token. */
|
|
21
|
+
private readonly token;
|
|
22
22
|
/**
|
|
23
23
|
* Returns the scope URL needed to connect to Copilot Studio from the connection settings.
|
|
24
24
|
* This is used for authentication token audience configuration.
|
|
@@ -32,6 +32,13 @@ export declare class CopilotStudioClient {
|
|
|
32
32
|
* @param token The authentication token.
|
|
33
33
|
*/
|
|
34
34
|
constructor(settings: ConnectionSettings, token: string);
|
|
35
|
+
/**
|
|
36
|
+
* Streams activities from the Copilot Studio service using eventsource-client.
|
|
37
|
+
* @param url The connection URL for Copilot Studio.
|
|
38
|
+
* @param body Optional. The request body (for POST).
|
|
39
|
+
* @param method Optional. The HTTP method (default: POST).
|
|
40
|
+
* @returns An async generator yielding the Agent's Activities.
|
|
41
|
+
*/
|
|
35
42
|
private postRequestAsync;
|
|
36
43
|
/**
|
|
37
44
|
* Appends this package.json version to the User-Agent header.
|
|
@@ -40,24 +47,25 @@ export declare class CopilotStudioClient {
|
|
|
40
47
|
* @returns A string containing the product information, including version and user agent.
|
|
41
48
|
*/
|
|
42
49
|
private static getProductInfo;
|
|
50
|
+
private processResponseHeaders;
|
|
43
51
|
/**
|
|
44
52
|
* Starts a new conversation with the Copilot Studio service.
|
|
45
53
|
* @param emitStartConversationEvent Whether to emit a start conversation event. Defaults to true.
|
|
46
|
-
* @returns
|
|
54
|
+
* @returns An async generator yielding the Agent's Activities.
|
|
47
55
|
*/
|
|
48
|
-
startConversationAsync(emitStartConversationEvent?: boolean):
|
|
56
|
+
startConversationAsync(emitStartConversationEvent?: boolean): AsyncGenerator<Activity>;
|
|
49
57
|
/**
|
|
50
58
|
* Sends a question to the Copilot Studio service and retrieves the response activities.
|
|
51
59
|
* @param question The question to ask.
|
|
52
60
|
* @param conversationId The ID of the conversation. Defaults to the current conversation ID.
|
|
53
|
-
* @returns
|
|
61
|
+
* @returns An async generator yielding the Agent's Activities.
|
|
54
62
|
*/
|
|
55
|
-
askQuestionAsync(question: string, conversationId?: string):
|
|
63
|
+
askQuestionAsync(question: string, conversationId?: string): AsyncGenerator<Activity>;
|
|
56
64
|
/**
|
|
57
65
|
* Sends an activity to the Copilot Studio service and retrieves the response activities.
|
|
58
66
|
* @param activity The activity to send.
|
|
59
67
|
* @param conversationId The ID of the conversation. Defaults to the current conversation ID.
|
|
60
|
-
* @returns
|
|
68
|
+
* @returns An async generator yielding the Agent's Activities.
|
|
61
69
|
*/
|
|
62
|
-
sendActivity(activity: Activity, conversationId?: string):
|
|
70
|
+
sendActivity(activity: Activity, conversationId?: string): AsyncGenerator<Activity>;
|
|
63
71
|
}
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.CopilotStudioClient = void 0;
|
|
11
|
-
const
|
|
11
|
+
const eventsource_client_1 = require("eventsource-client");
|
|
12
12
|
const powerPlatformEnvironment_1 = require("./powerPlatformEnvironment");
|
|
13
13
|
const agents_activity_1 = require("@microsoft/agents-activity");
|
|
14
14
|
const executeTurnRequest_1 = require("./executeTurnRequest");
|
|
@@ -30,72 +30,70 @@ class CopilotStudioClient {
|
|
|
30
30
|
/** The ID of the current conversation. */
|
|
31
31
|
this.conversationId = '';
|
|
32
32
|
this.settings = settings;
|
|
33
|
-
this.
|
|
34
|
-
this.client.defaults.headers.common.Authorization = `Bearer ${token}`;
|
|
35
|
-
this.client.defaults.headers.common['User-Agent'] = CopilotStudioClient.getProductInfo();
|
|
33
|
+
this.token = token;
|
|
36
34
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
const processEvents = async ({ done, value }) => {
|
|
62
|
-
if (done) {
|
|
63
|
-
logger.debug('Stream complete');
|
|
64
|
-
result += value;
|
|
65
|
-
results.push(result);
|
|
66
|
-
return results;
|
|
35
|
+
/**
|
|
36
|
+
* Streams activities from the Copilot Studio service using eventsource-client.
|
|
37
|
+
* @param url The connection URL for Copilot Studio.
|
|
38
|
+
* @param body Optional. The request body (for POST).
|
|
39
|
+
* @param method Optional. The HTTP method (default: POST).
|
|
40
|
+
* @returns An async generator yielding the Agent's Activities.
|
|
41
|
+
*/
|
|
42
|
+
async *postRequestAsync(url, body, method = 'POST') {
|
|
43
|
+
var _a, _b;
|
|
44
|
+
logger.debug(`>>> SEND TO ${url}`);
|
|
45
|
+
const eventSource = (0, eventsource_client_1.createEventSource)({
|
|
46
|
+
url,
|
|
47
|
+
headers: {
|
|
48
|
+
Authorization: `Bearer ${this.token}`,
|
|
49
|
+
'User-Agent': CopilotStudioClient.getProductInfo(),
|
|
50
|
+
'Content-Type': 'application/json',
|
|
51
|
+
Accept: 'text/event-stream'
|
|
52
|
+
},
|
|
53
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
54
|
+
method,
|
|
55
|
+
fetch: async (url, init) => {
|
|
56
|
+
const response = await fetch(url, init);
|
|
57
|
+
this.processResponseHeaders(response.headers);
|
|
58
|
+
return response;
|
|
67
59
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
60
|
+
});
|
|
61
|
+
try {
|
|
62
|
+
for await (const { data, event } of eventSource) {
|
|
63
|
+
if (data && event === 'activity') {
|
|
64
|
+
try {
|
|
65
|
+
const activity = agents_activity_1.Activity.fromJson(data);
|
|
66
|
+
switch (activity.type) {
|
|
67
|
+
case agents_activity_1.ActivityTypes.Message:
|
|
68
|
+
if (!this.conversationId.trim()) { // Did not get it from the header.
|
|
69
|
+
this.conversationId = (_b = (_a = activity.conversation) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : '';
|
|
70
|
+
logger.debug(`Conversation ID: ${this.conversationId}`);
|
|
71
|
+
}
|
|
72
|
+
yield activity;
|
|
73
|
+
break;
|
|
74
|
+
default:
|
|
75
|
+
logger.debug(`Activity type: ${activity.type}`);
|
|
76
|
+
yield activity;
|
|
77
|
+
break;
|
|
86
78
|
}
|
|
87
79
|
}
|
|
88
|
-
|
|
89
|
-
logger.
|
|
80
|
+
catch (error) {
|
|
81
|
+
logger.error('Failed to parse activity:', error);
|
|
90
82
|
}
|
|
91
83
|
}
|
|
92
|
-
|
|
93
|
-
logger.
|
|
94
|
-
|
|
84
|
+
else if (event === 'end') {
|
|
85
|
+
logger.debug('Stream complete');
|
|
86
|
+
break;
|
|
95
87
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
if (eventSource.readyState === 'closed') {
|
|
89
|
+
logger.debug('Connection closed');
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
finally {
|
|
95
|
+
eventSource.close();
|
|
96
|
+
}
|
|
99
97
|
}
|
|
100
98
|
/**
|
|
101
99
|
* Appends this package.json version to the User-Agent header.
|
|
@@ -115,39 +113,45 @@ class CopilotStudioClient {
|
|
|
115
113
|
logger.debug(`User-Agent: ${userAgent}`);
|
|
116
114
|
return userAgent;
|
|
117
115
|
}
|
|
116
|
+
processResponseHeaders(responseHeaders) {
|
|
117
|
+
var _a, _b;
|
|
118
|
+
if (this.settings.useExperimentalEndpoint && !((_a = this.settings.directConnectUrl) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
119
|
+
const islandExperimentalUrl = responseHeaders === null || responseHeaders === void 0 ? void 0 : responseHeaders.get(CopilotStudioClient.islandExperimentalUrlHeaderKey);
|
|
120
|
+
if (islandExperimentalUrl) {
|
|
121
|
+
this.settings.directConnectUrl = islandExperimentalUrl;
|
|
122
|
+
logger.debug(`Island Experimental URL: ${islandExperimentalUrl}`);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
this.conversationId = (_b = responseHeaders === null || responseHeaders === void 0 ? void 0 : responseHeaders.get(CopilotStudioClient.conversationIdHeaderKey)) !== null && _b !== void 0 ? _b : '';
|
|
126
|
+
if (this.conversationId) {
|
|
127
|
+
logger.debug(`Conversation ID: ${this.conversationId}`);
|
|
128
|
+
}
|
|
129
|
+
const sanitizedHeaders = new Headers();
|
|
130
|
+
responseHeaders.forEach((value, key) => {
|
|
131
|
+
if (key.toLowerCase() !== 'authorization' && key.toLowerCase() !== CopilotStudioClient.conversationIdHeaderKey.toLowerCase()) {
|
|
132
|
+
sanitizedHeaders.set(key, value);
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
logger.debug('Headers received:', sanitizedHeaders);
|
|
136
|
+
}
|
|
118
137
|
/**
|
|
119
138
|
* Starts a new conversation with the Copilot Studio service.
|
|
120
139
|
* @param emitStartConversationEvent Whether to emit a start conversation event. Defaults to true.
|
|
121
|
-
* @returns
|
|
140
|
+
* @returns An async generator yielding the Agent's Activities.
|
|
122
141
|
*/
|
|
123
|
-
async startConversationAsync(emitStartConversationEvent = true) {
|
|
124
|
-
var _a;
|
|
142
|
+
async *startConversationAsync(emitStartConversationEvent = true) {
|
|
125
143
|
const uriStart = (0, powerPlatformEnvironment_1.getCopilotStudioConnectionUrl)(this.settings);
|
|
126
144
|
const body = { emitStartConversationEvent };
|
|
127
|
-
const config = {
|
|
128
|
-
method: 'post',
|
|
129
|
-
url: uriStart,
|
|
130
|
-
headers: {
|
|
131
|
-
Accept: 'text/event-stream',
|
|
132
|
-
'Content-Type': 'application/json',
|
|
133
|
-
},
|
|
134
|
-
data: body,
|
|
135
|
-
responseType: 'stream',
|
|
136
|
-
adapter: 'fetch'
|
|
137
|
-
};
|
|
138
145
|
logger.info('Starting conversation ...');
|
|
139
|
-
|
|
140
|
-
const act = values[0];
|
|
141
|
-
logger.info(`Conversation '${(_a = act.conversation) === null || _a === void 0 ? void 0 : _a.id}' started. Received ${values.length} activities.`, values);
|
|
142
|
-
return act;
|
|
146
|
+
yield* this.postRequestAsync(uriStart, body, 'POST');
|
|
143
147
|
}
|
|
144
148
|
/**
|
|
145
149
|
* Sends a question to the Copilot Studio service and retrieves the response activities.
|
|
146
150
|
* @param question The question to ask.
|
|
147
151
|
* @param conversationId The ID of the conversation. Defaults to the current conversation ID.
|
|
148
|
-
* @returns
|
|
152
|
+
* @returns An async generator yielding the Agent's Activities.
|
|
149
153
|
*/
|
|
150
|
-
async askQuestionAsync(question, conversationId = this.conversationId) {
|
|
154
|
+
async *askQuestionAsync(question, conversationId = this.conversationId) {
|
|
151
155
|
const conversationAccount = {
|
|
152
156
|
id: conversationId
|
|
153
157
|
};
|
|
@@ -157,34 +161,21 @@ class CopilotStudioClient {
|
|
|
157
161
|
conversation: conversationAccount
|
|
158
162
|
};
|
|
159
163
|
const activity = agents_activity_1.Activity.fromObject(activityObj);
|
|
160
|
-
|
|
164
|
+
yield* this.sendActivity(activity);
|
|
161
165
|
}
|
|
162
166
|
/**
|
|
163
167
|
* Sends an activity to the Copilot Studio service and retrieves the response activities.
|
|
164
168
|
* @param activity The activity to send.
|
|
165
169
|
* @param conversationId The ID of the conversation. Defaults to the current conversation ID.
|
|
166
|
-
* @returns
|
|
170
|
+
* @returns An async generator yielding the Agent's Activities.
|
|
167
171
|
*/
|
|
168
|
-
async sendActivity(activity, conversationId = this.conversationId) {
|
|
172
|
+
async *sendActivity(activity, conversationId = this.conversationId) {
|
|
169
173
|
var _a, _b;
|
|
170
174
|
const localConversationId = (_b = (_a = activity.conversation) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : conversationId;
|
|
171
175
|
const uriExecute = (0, powerPlatformEnvironment_1.getCopilotStudioConnectionUrl)(this.settings, localConversationId);
|
|
172
176
|
const qbody = new executeTurnRequest_1.ExecuteTurnRequest(activity);
|
|
173
|
-
const config = {
|
|
174
|
-
method: 'post',
|
|
175
|
-
url: uriExecute,
|
|
176
|
-
headers: {
|
|
177
|
-
Accept: 'text/event-stream',
|
|
178
|
-
'Content-Type': 'application/json',
|
|
179
|
-
},
|
|
180
|
-
data: qbody,
|
|
181
|
-
responseType: 'stream',
|
|
182
|
-
adapter: 'fetch'
|
|
183
|
-
};
|
|
184
177
|
logger.info('Sending activity...', activity);
|
|
185
|
-
|
|
186
|
-
logger.info(`Received ${values.length} activities.`, values);
|
|
187
|
-
return values;
|
|
178
|
+
yield* this.postRequestAsync(uriExecute, qbody, 'POST');
|
|
188
179
|
}
|
|
189
180
|
}
|
|
190
181
|
exports.CopilotStudioClient = CopilotStudioClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copilotStudioClient.js","sourceRoot":"","sources":["../../src/copilotStudioClient.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;
|
|
1
|
+
{"version":3,"file":"copilotStudioClient.js","sourceRoot":"","sources":["../../src/copilotStudioClient.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAEH,2DAAyE;AAEzE,yEAA4F;AAC5F,gEAAyF;AACzF,6DAAyD;AACzD,8DAAyD;AACzD,kDAAyC;AACzC,4CAAmB;AAEnB,MAAM,MAAM,GAAG,IAAA,cAAK,EAAC,uBAAuB,CAAC,CAAA;AAE7C;;;GAGG;AACH,MAAa,mBAAmB;IAqB9B;;;;OAIG;IACH,YAAa,QAA4B,EAAE,KAAa;QApBxD,0CAA0C;QAClC,mBAAc,GAAW,EAAE,CAAA;QAoBjC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IAED;;;;;;OAMG;IACK,KAAK,CAAC,CAAE,gBAAgB,CAAE,GAAW,EAAE,IAAU,EAAE,SAAiB,MAAM;;QAChF,MAAM,CAAC,KAAK,CAAC,eAAe,GAAG,EAAE,CAAC,CAAA;QAElC,MAAM,WAAW,GAAsB,IAAA,sCAAiB,EAAC;YACvD,GAAG;YACH,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE;gBACrC,YAAY,EAAE,mBAAmB,CAAC,cAAc,EAAE;gBAClD,cAAc,EAAE,kBAAkB;gBAClC,MAAM,EAAE,mBAAmB;aAC5B;YACD,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;YAC7C,MAAM;YACN,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;gBACzB,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;gBACvC,IAAI,CAAC,sBAAsB,CAAC,QAAQ,CAAC,OAAO,CA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jD,KAAM,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAA;IACrC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,CAAE,YAAY,CAAE,QAAkB,EAAE,iBAAyB,IAAI,CAAC,cAAc;;QAC3F,MAAM,mBAAmB,GAAG,MAAA,MAAA,QAAQ,CAAC,YAAY,0CAAE,EAAE,mCAAI,cAAc,CAAA;QACvE,MAAM,UAAU,GAAG,IAAA,wDAA6B,EAAC,IAAI,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAA;QACpF,MAAM,KAAK,GAAuB,IAAI,uCAAkB,CAAC,QAAQ,CAAC,CAAA;QAElE,MAAM,CAAC,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAAA;QAC5C,KAAM,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;IAC1D,CAAC;;AAxLH,kDAyLC;AAxLC,sCAAsC;AACd,2CAAuB,GAAW,qBAAqB,AAAhC,CAAgC;AAC/E,wBAAwB;AACA,kDAA8B,GAAW,uBAAuB,AAAlC,CAAkC;AASxF;;;;;GAKG;AACI,qCAAiB,GAA6C,2CAAgB,AAA7D,CAA6D"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.CopilotStudioWebChat = void 0;
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
|
+
const agents_activity_1 = require("@microsoft/agents-activity");
|
|
9
10
|
const rxjs_1 = require("rxjs");
|
|
10
11
|
const logger_1 = require("@microsoft/agents-activity/logger");
|
|
11
12
|
const logger = (0, logger_1.debug)('copilot-studio:webchat');
|
|
@@ -134,10 +135,11 @@ class CopilotStudioWebChat {
|
|
|
134
135
|
}
|
|
135
136
|
logger.debug('--> Connection established.');
|
|
136
137
|
notifyTyping();
|
|
137
|
-
const activity
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
for await (const activity of client.startConversationAsync()) {
|
|
139
|
+
delete activity.replyToId;
|
|
140
|
+
conversation = activity.conversation;
|
|
141
|
+
notifyActivity(activity);
|
|
142
|
+
}
|
|
141
143
|
});
|
|
142
144
|
const notifyActivity = (activity) => {
|
|
143
145
|
const newActivity = {
|
|
@@ -145,9 +147,10 @@ class CopilotStudioWebChat {
|
|
|
145
147
|
timestamp: new Date().toISOString(),
|
|
146
148
|
channelData: {
|
|
147
149
|
...activity.channelData,
|
|
148
|
-
'webchat:sequence-id': sequence
|
|
150
|
+
'webchat:sequence-id': sequence,
|
|
149
151
|
},
|
|
150
152
|
};
|
|
153
|
+
sequence++;
|
|
151
154
|
logger.debug(`Notify '${newActivity.type}' activity to WebChat:`, newActivity);
|
|
152
155
|
activitySubscriber === null || activitySubscriber === void 0 ? void 0 : activitySubscriber.next(newActivity);
|
|
153
156
|
};
|
|
@@ -173,17 +176,22 @@ class CopilotStudioWebChat {
|
|
|
173
176
|
}
|
|
174
177
|
return createObservable(async (subscriber) => {
|
|
175
178
|
try {
|
|
176
|
-
const id = (0, uuid_1.v4)();
|
|
177
179
|
logger.info('--> Sending activity to Copilot Studio ...');
|
|
178
|
-
|
|
180
|
+
const newActivity = agents_activity_1.Activity.fromObject({
|
|
181
|
+
...activity,
|
|
182
|
+
id: (0, uuid_1.v4)(),
|
|
183
|
+
attachments: await processAttachments(activity)
|
|
184
|
+
});
|
|
185
|
+
notifyActivity(newActivity);
|
|
179
186
|
notifyTyping();
|
|
180
|
-
|
|
181
|
-
|
|
187
|
+
// Notify WebChat immediately that the message was sent
|
|
188
|
+
subscriber.next(newActivity.id);
|
|
189
|
+
// Stream the agent's response, but don't block the UI
|
|
190
|
+
for await (const responseActivity of client.sendActivity(newActivity)) {
|
|
182
191
|
notifyActivity(responseActivity);
|
|
192
|
+
logger.info('<-- Activity received correctly from Copilot Studio.');
|
|
183
193
|
}
|
|
184
|
-
subscriber.next(id);
|
|
185
194
|
subscriber.complete();
|
|
186
|
-
logger.info('--> Activity received correctly from Copilot Studio.');
|
|
187
195
|
}
|
|
188
196
|
catch (error) {
|
|
189
197
|
logger.error('Error sending Activity to Copilot Studio:', error);
|
|
@@ -203,6 +211,67 @@ class CopilotStudioWebChat {
|
|
|
203
211
|
}
|
|
204
212
|
}
|
|
205
213
|
exports.CopilotStudioWebChat = CopilotStudioWebChat;
|
|
214
|
+
/**
|
|
215
|
+
* Processes activity attachments.
|
|
216
|
+
* @param activity The activity to process for attachments.
|
|
217
|
+
* @returns A promise that resolves to the activity with all attachments converted.
|
|
218
|
+
*/
|
|
219
|
+
async function processAttachments(activity) {
|
|
220
|
+
var _a;
|
|
221
|
+
if (activity.type !== 'message' || !((_a = activity.attachments) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
222
|
+
return activity.attachments || [];
|
|
223
|
+
}
|
|
224
|
+
const attachments = [];
|
|
225
|
+
for (const attachment of activity.attachments) {
|
|
226
|
+
const processed = await processBlobAttachment(attachment);
|
|
227
|
+
attachments.push(processed);
|
|
228
|
+
}
|
|
229
|
+
return attachments;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Processes a blob attachment to convert its content URL to a data URL.
|
|
233
|
+
* @param attachment The attachment to process.
|
|
234
|
+
* @returns A promise that resolves to the processed attachment.
|
|
235
|
+
*/
|
|
236
|
+
async function processBlobAttachment(attachment) {
|
|
237
|
+
let newContentUrl = attachment.contentUrl;
|
|
238
|
+
if (!(newContentUrl === null || newContentUrl === void 0 ? void 0 : newContentUrl.startsWith('blob:'))) {
|
|
239
|
+
return attachment;
|
|
240
|
+
}
|
|
241
|
+
try {
|
|
242
|
+
const response = await fetch(newContentUrl);
|
|
243
|
+
if (!response.ok) {
|
|
244
|
+
throw new Error(`Failed to fetch blob URL: ${response.status} ${response.statusText}`);
|
|
245
|
+
}
|
|
246
|
+
const blob = await response.blob();
|
|
247
|
+
const arrayBuffer = await blob.arrayBuffer();
|
|
248
|
+
const base64 = arrayBufferToBase64(arrayBuffer);
|
|
249
|
+
newContentUrl = `data:${blob.type};base64,${base64}`;
|
|
250
|
+
}
|
|
251
|
+
catch (error) {
|
|
252
|
+
newContentUrl = attachment.contentUrl;
|
|
253
|
+
logger.error('Error processing blob attachment:', newContentUrl, error);
|
|
254
|
+
}
|
|
255
|
+
return { ...attachment, contentUrl: newContentUrl };
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Converts an ArrayBuffer to a base64 string.
|
|
259
|
+
* @param buffer The ArrayBuffer to convert.
|
|
260
|
+
* @returns The base64 encoded string.
|
|
261
|
+
*/
|
|
262
|
+
function arrayBufferToBase64(buffer) {
|
|
263
|
+
// Node.js environment
|
|
264
|
+
const BufferClass = typeof globalThis.Buffer === 'function' ? globalThis.Buffer : undefined;
|
|
265
|
+
if (BufferClass && typeof BufferClass.from === 'function') {
|
|
266
|
+
return BufferClass.from(buffer).toString('base64');
|
|
267
|
+
}
|
|
268
|
+
// Browser environment
|
|
269
|
+
let binary = '';
|
|
270
|
+
for (const byte of new Uint8Array(buffer)) {
|
|
271
|
+
binary += String.fromCharCode(byte);
|
|
272
|
+
}
|
|
273
|
+
return btoa(binary);
|
|
274
|
+
}
|
|
206
275
|
/**
|
|
207
276
|
* Creates an RxJS Observable that wraps an asynchronous function execution.
|
|
208
277
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copilotStudioWebChat.js","sourceRoot":"","sources":["../../src/copilotStudioWebChat.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+BAAiC;
|
|
1
|
+
{"version":3,"file":"copilotStudioWebChat.js","sourceRoot":"","sources":["../../src/copilotStudioWebChat.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+BAAiC;AAEjC,gEAAsF;AACtF,+BAAmE;AAGnE,8DAAyD;AAEzD,MAAM,MAAM,GAAG,IAAA,cAAK,EAAC,wBAAwB,CAAC,CAAA;AA4E9C;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAA;IAC3F,IAAI,WAAW,IAAI,OAAO,WAAW,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QAC1D,OAAO,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;IACpD,CAAC;IAED,sBAAsB;IACtB,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,KAAK,MAAM,IAAI,IAAI,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1C,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;IACrC,CAAC;IACD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAA;AACrB,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAS,gBAAgB,CAAK,EAAuC;IACnE,OAAO,IAAI,iBAAU,CAAI,CAAC,UAAyB,EAAE,EAAE;QACrD,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;IAC3E,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/agents-copilotstudio-client",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.58",
|
|
4
4
|
"homepage": "https://github.com/microsoft/Agents-for-js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"build:browser": "esbuild --platform=browser --target=es2019 --format=esm --bundle --sourcemap --minify --outfile=dist/src/browser.mjs src/index.ts"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@microsoft/agents-activity": "1.1.0-alpha.
|
|
31
|
-
"
|
|
30
|
+
"@microsoft/agents-activity": "1.1.0-alpha.58",
|
|
31
|
+
"eventsource-client": "^1.2.0",
|
|
32
32
|
"rxjs": "7.8.2",
|
|
33
33
|
"uuid": "^11.1.0"
|
|
34
34
|
},
|