@theia/ai-history 1.46.0-next.241
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/README.md +31 -0
- package/lib/browser/ai-history-communication-card.d.ts +8 -0
- package/lib/browser/ai-history-communication-card.d.ts.map +1 -0
- package/lib/browser/ai-history-communication-card.js +40 -0
- package/lib/browser/ai-history-communication-card.js.map +1 -0
- package/lib/browser/ai-history-contribution.d.ts +22 -0
- package/lib/browser/ai-history-contribution.d.ts.map +1 -0
- package/lib/browser/ai-history-contribution.js +133 -0
- package/lib/browser/ai-history-contribution.js.map +1 -0
- package/lib/browser/ai-history-frontend-module.d.ts +5 -0
- package/lib/browser/ai-history-frontend-module.d.ts.map +1 -0
- package/lib/browser/ai-history-frontend-module.js +42 -0
- package/lib/browser/ai-history-frontend-module.js.map +1 -0
- package/lib/browser/ai-history-widget.d.ts +32 -0
- package/lib/browser/ai-history-widget.d.ts.map +1 -0
- package/lib/browser/ai-history-widget.js +139 -0
- package/lib/browser/ai-history-widget.js.map +1 -0
- package/lib/common/communication-recording-service.d.ts +18 -0
- package/lib/common/communication-recording-service.d.ts.map +1 -0
- package/lib/common/communication-recording-service.js +65 -0
- package/lib/common/communication-recording-service.js.map +1 -0
- package/lib/common/communication-recording-service.spec.d.ts +2 -0
- package/lib/common/communication-recording-service.spec.d.ts.map +1 -0
- package/lib/common/communication-recording-service.spec.js +41 -0
- package/lib/common/communication-recording-service.spec.js.map +1 -0
- package/lib/common/index.d.ts +2 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +20 -0
- package/lib/common/index.js.map +1 -0
- package/package.json +54 -0
- package/src/browser/ai-history-communication-card.tsx +71 -0
- package/src/browser/ai-history-contribution.ts +136 -0
- package/src/browser/ai-history-frontend-module.ts +44 -0
- package/src/browser/ai-history-widget.tsx +149 -0
- package/src/browser/style/ai-history.css +92 -0
- package/src/common/communication-recording-service.spec.ts +62 -0
- package/src/common/communication-recording-service.ts +88 -0
- package/src/common/index.ts +17 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<div align='center'>
|
|
2
|
+
|
|
3
|
+
<br />
|
|
4
|
+
|
|
5
|
+
<img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
|
|
6
|
+
|
|
7
|
+
<h2>ECLIPSE THEIA - AI History EXTENSION</h2>
|
|
8
|
+
|
|
9
|
+
<hr />
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
## Description
|
|
14
|
+
|
|
15
|
+
The `@theia/ai-history` extension offers a framework for agents to record their requests and responses.
|
|
16
|
+
It also offers a view to inspect the history.
|
|
17
|
+
|
|
18
|
+
## Additional Information
|
|
19
|
+
|
|
20
|
+
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
21
|
+
- [Theia - Website](https://theia-ide.org/)
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
26
|
+
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
27
|
+
|
|
28
|
+
## Trademark
|
|
29
|
+
|
|
30
|
+
"Theia" is a trademark of the Eclipse Foundation
|
|
31
|
+
<https://www.eclipse.org/theia>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CommunicationHistoryEntry } from '@theia/ai-core';
|
|
3
|
+
import * as React from '@theia/core/shared/react';
|
|
4
|
+
export interface CommunicationCardProps {
|
|
5
|
+
entry: CommunicationHistoryEntry;
|
|
6
|
+
}
|
|
7
|
+
export declare const CommunicationCard: React.FC<CommunicationCardProps>;
|
|
8
|
+
//# sourceMappingURL=ai-history-communication-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-history-communication-card.d.ts","sourceRoot":"","sources":["../../src/browser/ai-history-communication-card.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,yBAAyB,CAAC;CACpC;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAgD9D,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommunicationCard = void 0;
|
|
4
|
+
const React = require("@theia/core/shared/react");
|
|
5
|
+
const CommunicationCard = ({ entry }) => (React.createElement("div", { className: 'theia-card' },
|
|
6
|
+
React.createElement("div", { className: 'theia-card-meta' },
|
|
7
|
+
React.createElement("span", { className: 'theia-card-request-id' },
|
|
8
|
+
"Request ID: ",
|
|
9
|
+
entry.requestId),
|
|
10
|
+
React.createElement("span", { className: 'theia-card-session-id' },
|
|
11
|
+
"Session ID: ",
|
|
12
|
+
entry.sessionId)),
|
|
13
|
+
React.createElement("div", { className: 'theia-card-content' },
|
|
14
|
+
entry.request && (React.createElement("div", { className: 'theia-card-request' },
|
|
15
|
+
React.createElement("h2", null, "Request"),
|
|
16
|
+
React.createElement("pre", null, entry.request))),
|
|
17
|
+
entry.response && (React.createElement("div", { className: 'theia-card-response' },
|
|
18
|
+
React.createElement("h2", null, "Response"),
|
|
19
|
+
React.createElement("pre", null, entry.response))),
|
|
20
|
+
(entry.systemMessage || (entry.messages && entry.messages.length > 0)) && (React.createElement("div", { className: 'theia-card-context' },
|
|
21
|
+
React.createElement("details", null,
|
|
22
|
+
React.createElement("summary", null,
|
|
23
|
+
React.createElement("h2", null, "Context")),
|
|
24
|
+
(entry.systemMessage && (React.createElement("div", { className: 'theia-context-system-message' },
|
|
25
|
+
React.createElement("h3", null, "System Message"),
|
|
26
|
+
React.createElement("pre", null, entry.systemMessage)))),
|
|
27
|
+
(entry.messages && entry.messages.length > 0) && (React.createElement("div", { className: 'theia-context-messages' },
|
|
28
|
+
React.createElement("h3", null, "Messages"),
|
|
29
|
+
React.createElement("ul", null, entry.messages.map((message, index) => (React.createElement("li", { key: index },
|
|
30
|
+
React.createElement("pre", null, JSON.stringify(message, undefined, 2)))))))))))),
|
|
31
|
+
React.createElement("div", { className: 'theia-card-meta' },
|
|
32
|
+
React.createElement("span", { className: 'theia-card-timestamp' },
|
|
33
|
+
"Timestamp: ",
|
|
34
|
+
new Date(entry.timestamp).toLocaleString()),
|
|
35
|
+
entry.responseTime && React.createElement("span", { className: 'theia-card-response-time' },
|
|
36
|
+
"Response Time: ",
|
|
37
|
+
entry.responseTime,
|
|
38
|
+
"ms"))));
|
|
39
|
+
exports.CommunicationCard = CommunicationCard;
|
|
40
|
+
//# sourceMappingURL=ai-history-communication-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-history-communication-card.js","sourceRoot":"","sources":["../../src/browser/ai-history-communication-card.tsx"],"names":[],"mappings":";;;AAgBA,kDAAkD;AAM3C,MAAM,iBAAiB,GAAqC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC9E,6BAAK,SAAS,EAAC,YAAY;IACvB,6BAAK,SAAS,EAAC,iBAAiB;QAC5B,8BAAM,SAAS,EAAC,uBAAuB;;YAAc,KAAK,CAAC,SAAS,CAAQ;QAC5E,8BAAM,SAAS,EAAC,uBAAuB;;YAAc,KAAK,CAAC,SAAS,CAAQ,CAC1E;IACN,6BAAK,SAAS,EAAC,oBAAoB;QAC9B,KAAK,CAAC,OAAO,IAAI,CACd,6BAAK,SAAS,EAAC,oBAAoB;YAC/B,0CAAgB;YAChB,iCAAM,KAAK,CAAC,OAAO,CAAO,CACxB,CACT;QACA,KAAK,CAAC,QAAQ,IAAI,CACf,6BAAK,SAAS,EAA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import { AIHistoryView } from './ai-history-widget';
|
|
4
|
+
import { Command, CommandRegistry, Emitter } from '@theia/core';
|
|
5
|
+
import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
6
|
+
export declare const AI_HISTORY_TOGGLE_COMMAND_ID = "aiHistory:toggle";
|
|
7
|
+
export declare const OPEN_AI_HISTORY_VIEW: Command;
|
|
8
|
+
export declare const AI_HISTORY_VIEW_SORT_CHRONOLOGICALLY: Command;
|
|
9
|
+
export declare const AI_HISTORY_VIEW_SORT_REVERSE_CHRONOLOGICALLY: Command;
|
|
10
|
+
export declare const AI_HISTORY_VIEW_CLEAR: Command;
|
|
11
|
+
export declare class AIHistoryViewContribution extends AIViewContribution<AIHistoryView> implements TabBarToolbarContribution {
|
|
12
|
+
private recordingService;
|
|
13
|
+
protected readonly chronologicalChangedEmitter: Emitter<void>;
|
|
14
|
+
protected readonly chronologicalStateChanged: import("@theia/core").Event<void>;
|
|
15
|
+
constructor();
|
|
16
|
+
initializeLayout(_app: FrontendApplication): Promise<void>;
|
|
17
|
+
registerCommands(registry: CommandRegistry): void;
|
|
18
|
+
clearHistory(): void;
|
|
19
|
+
protected withHistoryWidget(widget?: unknown, predicate?: (output: AIHistoryView) => boolean): boolean | false;
|
|
20
|
+
registerToolbarItems(registry: TabBarToolbarRegistry): void;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ai-history-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-history-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/ai-history-contribution.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,mBAAmB,EAAW,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAGjH,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAC/D,eAAO,MAAM,oBAAoB,SAG/B,CAAC;AAEH,eAAO,MAAM,oCAAoC,SAI/C,CAAC;AAEH,eAAO,MAAM,4CAA4C,SAIvD,CAAC;AAEH,eAAO,MAAM,qBAAqB,SAIhC,CAAC;AAEH,qBACa,yBAA0B,SAAQ,kBAAkB,CAAC,aAAa,CAAE,YAAW,yBAAyB;IAC1E,OAAO,CAAC,gBAAgB,CAAgC;IAE/F,SAAS,CAAC,QAAQ,CAAC,2BAA2B,gBAAuB;IACrE,SAAS,CAAC,QAAQ,CAAC,yBAAyB,oCAA0C;;IAchF,gBAAgB,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvD,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;IAgCnD,YAAY,IAAI,IAAI;IAI3B,SAAS,CAAC,iBAAiB,CACvB,MAAM,GAAE,OAA6B,EACrC,SAAS,GAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAoB,GAC3D,OAAO,GAAG,KAAK;IAIlB,oBAAoB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI;CAsB9D"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AIHistoryViewContribution = exports.AI_HISTORY_VIEW_CLEAR = exports.AI_HISTORY_VIEW_SORT_REVERSE_CHRONOLOGICALLY = exports.AI_HISTORY_VIEW_SORT_CHRONOLOGICALLY = exports.OPEN_AI_HISTORY_VIEW = exports.AI_HISTORY_TOGGLE_COMMAND_ID = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
// *****************************************************************************
|
|
6
|
+
// Copyright (C) 2024 EclipseSource GmbH.
|
|
7
|
+
//
|
|
8
|
+
// This program and the accompanying materials are made available under the
|
|
9
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
10
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
11
|
+
//
|
|
12
|
+
// This Source Code may also be made available under the following Secondary
|
|
13
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
14
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
15
|
+
// with the GNU Classpath Exception which is available at
|
|
16
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
17
|
+
//
|
|
18
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
19
|
+
// *****************************************************************************
|
|
20
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
21
|
+
const browser_2 = require("@theia/ai-core/lib/browser");
|
|
22
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
23
|
+
const ai_history_widget_1 = require("./ai-history-widget");
|
|
24
|
+
const core_1 = require("@theia/core");
|
|
25
|
+
const ai_core_1 = require("@theia/ai-core");
|
|
26
|
+
exports.AI_HISTORY_TOGGLE_COMMAND_ID = 'aiHistory:toggle';
|
|
27
|
+
exports.OPEN_AI_HISTORY_VIEW = core_1.Command.toLocalizedCommand({
|
|
28
|
+
id: 'aiHistory:open',
|
|
29
|
+
label: 'Open AI History view',
|
|
30
|
+
});
|
|
31
|
+
exports.AI_HISTORY_VIEW_SORT_CHRONOLOGICALLY = core_1.Command.toLocalizedCommand({
|
|
32
|
+
id: 'aiHistory:sortChronologically',
|
|
33
|
+
label: 'AI History: Sort chronologically',
|
|
34
|
+
iconClass: (0, browser_1.codicon)('arrow-down')
|
|
35
|
+
});
|
|
36
|
+
exports.AI_HISTORY_VIEW_SORT_REVERSE_CHRONOLOGICALLY = core_1.Command.toLocalizedCommand({
|
|
37
|
+
id: 'aiHistory:sortReverseChronologically',
|
|
38
|
+
label: 'AI History: Sort reverse chronologically',
|
|
39
|
+
iconClass: (0, browser_1.codicon)('arrow-up')
|
|
40
|
+
});
|
|
41
|
+
exports.AI_HISTORY_VIEW_CLEAR = core_1.Command.toLocalizedCommand({
|
|
42
|
+
id: 'aiHistory:clear',
|
|
43
|
+
label: 'AI History: Clear History',
|
|
44
|
+
iconClass: (0, browser_1.codicon)('clear-all')
|
|
45
|
+
});
|
|
46
|
+
let AIHistoryViewContribution = class AIHistoryViewContribution extends browser_2.AIViewContribution {
|
|
47
|
+
constructor() {
|
|
48
|
+
super({
|
|
49
|
+
widgetId: ai_history_widget_1.AIHistoryView.ID,
|
|
50
|
+
widgetName: ai_history_widget_1.AIHistoryView.LABEL,
|
|
51
|
+
defaultWidgetOptions: {
|
|
52
|
+
area: 'bottom',
|
|
53
|
+
rank: 100
|
|
54
|
+
},
|
|
55
|
+
toggleCommandId: exports.AI_HISTORY_TOGGLE_COMMAND_ID,
|
|
56
|
+
});
|
|
57
|
+
this.chronologicalChangedEmitter = new core_1.Emitter();
|
|
58
|
+
this.chronologicalStateChanged = this.chronologicalChangedEmitter.event;
|
|
59
|
+
}
|
|
60
|
+
async initializeLayout(_app) {
|
|
61
|
+
await this.openView();
|
|
62
|
+
}
|
|
63
|
+
registerCommands(registry) {
|
|
64
|
+
super.registerCommands(registry);
|
|
65
|
+
registry.registerCommand(exports.OPEN_AI_HISTORY_VIEW, {
|
|
66
|
+
execute: () => this.openView({ activate: true }),
|
|
67
|
+
});
|
|
68
|
+
registry.registerCommand(exports.AI_HISTORY_VIEW_SORT_CHRONOLOGICALLY, {
|
|
69
|
+
isEnabled: widget => this.withHistoryWidget(widget, historyView => !historyView.isChronological),
|
|
70
|
+
isVisible: widget => this.withHistoryWidget(widget, historyView => !historyView.isChronological),
|
|
71
|
+
execute: widget => this.withHistoryWidget(widget, historyView => {
|
|
72
|
+
historyView.sortHistory(true);
|
|
73
|
+
this.chronologicalChangedEmitter.fire();
|
|
74
|
+
return true;
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
registry.registerCommand(exports.AI_HISTORY_VIEW_SORT_REVERSE_CHRONOLOGICALLY, {
|
|
78
|
+
isEnabled: widget => this.withHistoryWidget(widget, historyView => historyView.isChronological),
|
|
79
|
+
isVisible: widget => this.withHistoryWidget(widget, historyView => historyView.isChronological),
|
|
80
|
+
execute: widget => this.withHistoryWidget(widget, historyView => {
|
|
81
|
+
historyView.sortHistory(false);
|
|
82
|
+
this.chronologicalChangedEmitter.fire();
|
|
83
|
+
return true;
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
registry.registerCommand(exports.AI_HISTORY_VIEW_CLEAR, {
|
|
87
|
+
isEnabled: widget => this.withHistoryWidget(widget),
|
|
88
|
+
isVisible: widget => this.withHistoryWidget(widget),
|
|
89
|
+
execute: widget => this.withHistoryWidget(widget, () => {
|
|
90
|
+
this.clearHistory();
|
|
91
|
+
return true;
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
clearHistory() {
|
|
96
|
+
this.recordingService.clearHistory();
|
|
97
|
+
}
|
|
98
|
+
withHistoryWidget(widget = this.tryGetWidget(), predicate = () => true) {
|
|
99
|
+
return widget instanceof ai_history_widget_1.AIHistoryView ? predicate(widget) : false;
|
|
100
|
+
}
|
|
101
|
+
registerToolbarItems(registry) {
|
|
102
|
+
registry.registerItem({
|
|
103
|
+
id: exports.AI_HISTORY_VIEW_SORT_CHRONOLOGICALLY.id,
|
|
104
|
+
command: exports.AI_HISTORY_VIEW_SORT_CHRONOLOGICALLY.id,
|
|
105
|
+
tooltip: 'Sort chronologically',
|
|
106
|
+
isVisible: widget => this.withHistoryWidget(widget),
|
|
107
|
+
onDidChange: this.chronologicalStateChanged
|
|
108
|
+
});
|
|
109
|
+
registry.registerItem({
|
|
110
|
+
id: exports.AI_HISTORY_VIEW_SORT_REVERSE_CHRONOLOGICALLY.id,
|
|
111
|
+
command: exports.AI_HISTORY_VIEW_SORT_REVERSE_CHRONOLOGICALLY.id,
|
|
112
|
+
tooltip: 'Sort reverse chronologically',
|
|
113
|
+
isVisible: widget => this.withHistoryWidget(widget),
|
|
114
|
+
onDidChange: this.chronologicalStateChanged
|
|
115
|
+
});
|
|
116
|
+
registry.registerItem({
|
|
117
|
+
id: exports.AI_HISTORY_VIEW_CLEAR.id,
|
|
118
|
+
command: exports.AI_HISTORY_VIEW_CLEAR.id,
|
|
119
|
+
tooltip: 'Clear History of all agents',
|
|
120
|
+
isVisible: widget => this.withHistoryWidget(widget)
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
exports.AIHistoryViewContribution = AIHistoryViewContribution;
|
|
125
|
+
tslib_1.__decorate([
|
|
126
|
+
(0, inversify_1.inject)(ai_core_1.CommunicationRecordingService),
|
|
127
|
+
tslib_1.__metadata("design:type", Object)
|
|
128
|
+
], AIHistoryViewContribution.prototype, "recordingService", void 0);
|
|
129
|
+
exports.AIHistoryViewContribution = AIHistoryViewContribution = tslib_1.__decorate([
|
|
130
|
+
(0, inversify_1.injectable)(),
|
|
131
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
132
|
+
], AIHistoryViewContribution);
|
|
133
|
+
//# sourceMappingURL=ai-history-contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-history-contribution.js","sourceRoot":"","sources":["../../src/browser/ai-history-contribution.ts"],"names":[],"mappings":";;;;AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,qDAAuE;AACvE,wDAAgE;AAChE,4DAAkE;AAClE,2DAAoD;AACpD,sCAAgE;AAEhE,4CAA+D;AAElD,QAAA,4BAA4B,GAAG,kBAAkB,CAAC;AAClD,QAAA,oBAAoB,GAAG,cAAO,CAAC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ACnD,WAAW,EAAE,IAAI,CAAC,yBAAyB;SAC9C,CAAC,CAAC;QACH,QAAQ,CAAC,YAAY,CAAC;YAClB,EAAE,EAAE,6BAAqB,CAAC,EAAE;YAC5B,OAAO,EAAE,6BAAqB,CAAC,EAAE;YACjC,OAAO,EAAE,6BAA6B;YACtC,SAAS,EAAE,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC;SACtD,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAvFY,8DAAyB;AACa;IAA9C,IAAA,kBAAM,EAAC,uCAA6B,CAAC;;mEAAyD;oCADtF,yBAAyB;IADrC,IAAA,sBAAU,GAAE;;GACA,yBAAyB,CAuFrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-history-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/ai-history-frontend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAM/D,OAAO,wCAAwC,CAAC;;AAGhD,wBAkBG"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// *****************************************************************************
|
|
4
|
+
// Copyright (C) 2024 EclipseSource GmbH.
|
|
5
|
+
//
|
|
6
|
+
// This program and the accompanying materials are made available under the
|
|
7
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
8
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
9
|
+
//
|
|
10
|
+
// This Source Code may also be made available under the following Secondary
|
|
11
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
12
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
13
|
+
// with the GNU Classpath Exception which is available at
|
|
14
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
15
|
+
//
|
|
16
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
17
|
+
// *****************************************************************************
|
|
18
|
+
const ai_core_1 = require("@theia/ai-core");
|
|
19
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
20
|
+
const communication_recording_service_1 = require("../common/communication-recording-service");
|
|
21
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
22
|
+
const core_1 = require("@theia/core");
|
|
23
|
+
const ai_history_contribution_1 = require("./ai-history-contribution");
|
|
24
|
+
const ai_history_widget_1 = require("./ai-history-widget");
|
|
25
|
+
require("../../src/browser/style/ai-history.css");
|
|
26
|
+
const tab_bar_toolbar_1 = require("@theia/core/lib/browser/shell/tab-bar-toolbar");
|
|
27
|
+
exports.default = new inversify_1.ContainerModule(bind => {
|
|
28
|
+
bind(communication_recording_service_1.DefaultCommunicationRecordingService).toSelf().inSingletonScope();
|
|
29
|
+
bind(ai_core_1.CommunicationRecordingService).toService(communication_recording_service_1.DefaultCommunicationRecordingService);
|
|
30
|
+
bind(core_1.ILogger).toDynamicValue(ctx => {
|
|
31
|
+
const parentLogger = ctx.container.get(core_1.ILogger);
|
|
32
|
+
return parentLogger.child('llm-communication-recorder');
|
|
33
|
+
}).inSingletonScope().whenTargetNamed('llm-communication-recorder');
|
|
34
|
+
(0, browser_1.bindViewContribution)(bind, ai_history_contribution_1.AIHistoryViewContribution);
|
|
35
|
+
bind(ai_history_widget_1.AIHistoryView).toSelf();
|
|
36
|
+
bind(browser_1.WidgetFactory).toDynamicValue(context => ({
|
|
37
|
+
id: ai_history_widget_1.AIHistoryView.ID,
|
|
38
|
+
createWidget: () => context.container.get(ai_history_widget_1.AIHistoryView)
|
|
39
|
+
})).inSingletonScope();
|
|
40
|
+
bind(tab_bar_toolbar_1.TabBarToolbarContribution).toService(ai_history_contribution_1.AIHistoryViewContribution);
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=ai-history-frontend-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-history-frontend-module.js","sour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gB,EAAE,CAAC;IACvB,IAAI,CAAC,2CAAyB,CAAC,CAAC,SAAS,CAAC,mDAAyB,CAAC,CAAC;AAEzE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Agent, AgentService, CommunicationRecordingService, CommunicationRequestEntry, CommunicationResponseEntry } from '@theia/ai-core';
|
|
3
|
+
import { ReactWidget, StatefulWidget } from '@theia/core/lib/browser';
|
|
4
|
+
import * as React from '@theia/core/shared/react';
|
|
5
|
+
declare namespace AIHistoryView {
|
|
6
|
+
interface State {
|
|
7
|
+
chronological: boolean;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class AIHistoryView extends ReactWidget implements StatefulWidget {
|
|
11
|
+
protected recordingService: CommunicationRecordingService;
|
|
12
|
+
protected readonly agentService: AgentService;
|
|
13
|
+
static ID: string;
|
|
14
|
+
static LABEL: string;
|
|
15
|
+
protected selectedAgent?: Agent;
|
|
16
|
+
protected _state: AIHistoryView.State;
|
|
17
|
+
constructor();
|
|
18
|
+
protected get state(): AIHistoryView.State;
|
|
19
|
+
protected set state(state: AIHistoryView.State);
|
|
20
|
+
storeState(): object;
|
|
21
|
+
restoreState(oldState: object & Partial<AIHistoryView.State>): void;
|
|
22
|
+
protected init(): void;
|
|
23
|
+
protected selectAgent(agent: Agent | undefined): void;
|
|
24
|
+
protected historyContentUpdated(entry: CommunicationRequestEntry | CommunicationResponseEntry): void;
|
|
25
|
+
render(): React.ReactNode;
|
|
26
|
+
protected renderHistory(): React.ReactNode;
|
|
27
|
+
protected onClick(e: React.MouseEvent<HTMLDivElement>, agent: Agent): void;
|
|
28
|
+
sortHistory(chronological: boolean): void;
|
|
29
|
+
get isChronological(): boolean;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=ai-history-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-history-widget.d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,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IAKnE,WAAW,CAAC,aAAa,EAAE,OAAO,GAAG,IAAI;IAIhD,IAAI,eAAe,IAAI,OAAO,CAE7B;CACJ"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var AIHistoryView_1;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AIHistoryView = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
// *****************************************************************************
|
|
7
|
+
// Copyright (C) 2024 EclipseSource GmbH.
|
|
8
|
+
//
|
|
9
|
+
// This program and the accompanying materials are made available under the
|
|
10
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
11
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
12
|
+
//
|
|
13
|
+
// This Source Code may also be made available under the following Secondary
|
|
14
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
15
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
16
|
+
// with the GNU Classpath Exception which is available at
|
|
17
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
18
|
+
//
|
|
19
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
20
|
+
// *****************************************************************************
|
|
21
|
+
const ai_core_1 = require("@theia/ai-core");
|
|
22
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
24
|
+
const React = require("@theia/core/shared/react");
|
|
25
|
+
const ai_history_communication_card_1 = require("./ai-history-communication-card");
|
|
26
|
+
const select_component_1 = require("@theia/core/lib/browser/widgets/select-component");
|
|
27
|
+
const core_1 = require("@theia/core");
|
|
28
|
+
let AIHistoryView = AIHistoryView_1 = class AIHistoryView extends browser_1.ReactWidget {
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
this._state = { chronological: false };
|
|
32
|
+
this.id = AIHistoryView_1.ID;
|
|
33
|
+
this.title.label = AIHistoryView_1.LABEL;
|
|
34
|
+
this.title.caption = AIHistoryView_1.LABEL;
|
|
35
|
+
this.title.closable = true;
|
|
36
|
+
this.title.iconClass = (0, browser_1.codicon)('history');
|
|
37
|
+
}
|
|
38
|
+
get state() {
|
|
39
|
+
return this._state;
|
|
40
|
+
}
|
|
41
|
+
set state(state) {
|
|
42
|
+
this._state = state;
|
|
43
|
+
this.update();
|
|
44
|
+
}
|
|
45
|
+
storeState() {
|
|
46
|
+
return this.state;
|
|
47
|
+
}
|
|
48
|
+
restoreState(oldState) {
|
|
49
|
+
const copy = (0, core_1.deepClone)(this.state);
|
|
50
|
+
if (oldState.chronological) {
|
|
51
|
+
copy.chronological = oldState.chronological;
|
|
52
|
+
}
|
|
53
|
+
this.state = copy;
|
|
54
|
+
}
|
|
55
|
+
init() {
|
|
56
|
+
this.update();
|
|
57
|
+
this.toDispose.push(this.recordingService.onDidRecordRequest(entry => this.historyContentUpdated(entry)));
|
|
58
|
+
this.toDispose.push(this.recordingService.onDidRecordResponse(entry => this.historyContentUpdated(entry)));
|
|
59
|
+
this.toDispose.push(this.recordingService.onStructuralChange(() => this.update()));
|
|
60
|
+
this.selectAgent(this.agentService.getAllAgents()[0]);
|
|
61
|
+
}
|
|
62
|
+
selectAgent(agent) {
|
|
63
|
+
this.selectedAgent = agent;
|
|
64
|
+
this.update();
|
|
65
|
+
}
|
|
66
|
+
historyContentUpdated(entry) {
|
|
67
|
+
var _a;
|
|
68
|
+
if (entry.agentId === ((_a = this.selectedAgent) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
69
|
+
this.update();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
render() {
|
|
73
|
+
var _a;
|
|
74
|
+
const selectionChange = (value) => {
|
|
75
|
+
this.selectedAgent = this.agentService.getAllAgents().find(agent => agent.id === value.value);
|
|
76
|
+
this.update();
|
|
77
|
+
};
|
|
78
|
+
const agents = this.agentService.getAllAgents();
|
|
79
|
+
if (agents.length === 0) {
|
|
80
|
+
return (React.createElement("div", { className: 'agent-history-widget' },
|
|
81
|
+
React.createElement("div", { className: 'theia-card no-content' }, "No agent available.")));
|
|
82
|
+
}
|
|
83
|
+
return (React.createElement("div", { className: 'agent-history-widget' },
|
|
84
|
+
React.createElement(select_component_1.SelectComponent, { options: agents.map(agent => ({
|
|
85
|
+
value: agent.id,
|
|
86
|
+
label: agent.name,
|
|
87
|
+
description: agent.description || ''
|
|
88
|
+
})), onChange: selectionChange, defaultValue: (_a = this.selectedAgent) === null || _a === void 0 ? void 0 : _a.id }),
|
|
89
|
+
React.createElement("div", { className: 'agent-history' }, this.renderHistory())));
|
|
90
|
+
}
|
|
91
|
+
renderHistory() {
|
|
92
|
+
if (!this.selectedAgent) {
|
|
93
|
+
return React.createElement("div", { className: 'theia-card no-content' }, "No agent selected.");
|
|
94
|
+
}
|
|
95
|
+
const history = [...this.recordingService.getHistory(this.selectedAgent.id)];
|
|
96
|
+
if (history.length === 0) {
|
|
97
|
+
return React.createElement("div", { className: 'theia-card no-content' },
|
|
98
|
+
"No history available for the selected agent '",
|
|
99
|
+
this.selectedAgent.name,
|
|
100
|
+
"'.");
|
|
101
|
+
}
|
|
102
|
+
if (!this.state.chronological) {
|
|
103
|
+
history.reverse();
|
|
104
|
+
}
|
|
105
|
+
return history.map(entry => React.createElement(ai_history_communication_card_1.CommunicationCard, { key: entry.requestId, entry: entry }));
|
|
106
|
+
}
|
|
107
|
+
onClick(e, agent) {
|
|
108
|
+
e.stopPropagation();
|
|
109
|
+
this.selectAgent(agent);
|
|
110
|
+
}
|
|
111
|
+
sortHistory(chronological) {
|
|
112
|
+
this.state = { ...(0, core_1.deepClone)(this.state), chronological: chronological };
|
|
113
|
+
}
|
|
114
|
+
get isChronological() {
|
|
115
|
+
return this.state.chronological === true;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
exports.AIHistoryView = AIHistoryView;
|
|
119
|
+
AIHistoryView.ID = 'ai-history-widget';
|
|
120
|
+
AIHistoryView.LABEL = '✨ AI Agent History [Experimental]';
|
|
121
|
+
tslib_1.__decorate([
|
|
122
|
+
(0, inversify_1.inject)(ai_core_1.CommunicationRecordingService),
|
|
123
|
+
tslib_1.__metadata("design:type", Object)
|
|
124
|
+
], AIHistoryView.prototype, "recordingService", void 0);
|
|
125
|
+
tslib_1.__decorate([
|
|
126
|
+
(0, inversify_1.inject)(ai_core_1.AgentService),
|
|
127
|
+
tslib_1.__metadata("design:type", Object)
|
|
128
|
+
], AIHistoryView.prototype, "agentService", void 0);
|
|
129
|
+
tslib_1.__decorate([
|
|
130
|
+
(0, inversify_1.postConstruct)(),
|
|
131
|
+
tslib_1.__metadata("design:type", Function),
|
|
132
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
133
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
134
|
+
], AIHistoryView.prototype, "init", null);
|
|
135
|
+
exports.AIHistoryView = AIHistoryView = AIHistoryView_1 = tslib_1.__decorate([
|
|
136
|
+
(0, inversify_1.injectable)(),
|
|
137
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
138
|
+
], AIHistoryView);
|
|
139
|
+
//# sourceMappingURL=ai-history-widget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-history-widget.js","sourceRoot":"","sources":["../../src/browser/ai-history-widget.tsx"],"names":[],"mappings":";;;;;AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,4CAA2I;AAC3I,qDAA+E;AAC/E,4DAAiF;AACjF,kDAAkD;AAClD,mFAAoE;AACpE,uFAAiG;AACjG,sCAAwC;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AC;IAEM,WAAW,CAAC,aAAsB;QACrC,IAAI,CAAC,KAAK,GAAG,EAAE,GAAG,IAAA,gBAAS,EAAC,IAAI,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC;IAC5E,CAAC;IAED,IAAI,eAAe;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;IAC7C,CAAC;;AArHQ,sCAAa;AAMR,gBAAE,GAAG,mBAAmB,AAAtB,CAAuB;AAChC,mBAAK,GAAG,mCAAmC,AAAtC,CAAuC;AALzC;IADT,IAAA,kBAAM,EAAC,uCAA6B,CAAC;;uDACoB;AAEvC;IADlB,IAAA,kBAAM,EAAC,sBAAY,CAAC;;mDACyB;AAwCpC;IADT,IAAA,yBAAa,GAAE;;;;yCAOf;wBAlDQ,aAAa;IADzB,IAAA,sBAAU,GAAE;;GACA,aAAa,CAsHzB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CommunicationHistory, CommunicationRecordingService, CommunicationRequestEntry, CommunicationRequestEntryParam, CommunicationResponseEntry, CommunicationResponseEntryParam } from '@theia/ai-core';
|
|
2
|
+
import { Emitter, Event, ILogger } from '@theia/core';
|
|
3
|
+
export declare class DefaultCommunicationRecordingService implements CommunicationRecordingService {
|
|
4
|
+
protected logger: ILogger;
|
|
5
|
+
protected onDidRecordRequestEmitter: Emitter<CommunicationRequestEntry>;
|
|
6
|
+
readonly onDidRecordRequest: Event<CommunicationRequestEntry>;
|
|
7
|
+
protected onDidRecordResponseEmitter: Emitter<CommunicationResponseEntry>;
|
|
8
|
+
readonly onDidRecordResponse: Event<CommunicationResponseEntry>;
|
|
9
|
+
protected onStructuralChangeEmitter: Emitter<void>;
|
|
10
|
+
readonly onStructuralChange: Event<void>;
|
|
11
|
+
protected history: Map<string, CommunicationHistory>;
|
|
12
|
+
getHistory(agentId: string): CommunicationHistory;
|
|
13
|
+
getSessionHistory(sessionId: string): CommunicationHistory;
|
|
14
|
+
recordRequest(requestEntry: CommunicationRequestEntryParam): void;
|
|
15
|
+
recordResponse(responseEntry: CommunicationResponseEntryParam): void;
|
|
16
|
+
clearHistory(): void;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=communication-recording-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communication-recording-service.d.ts","sourceRoot":"","sources":["../../src/common/communication-recording-service.ts"],"names":[],"mappings":"AAeA,OAAO,EACH,oBAAoB,EACpB,6BAA6B,EAC7B,yBAAyB,EACzB,8BAA8B,EAC9B,0BAA0B,EAC1B,+BAA+B,EAClC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAGtD,qBACa,oCAAqC,YAAW,6BAA6B;IAGtF,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC;IAE1B,SAAS,CAAC,yBAAyB,qCAA4C;IAC/E,QAAQ,CAAC,kBAAkB,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAwC;IAErG,SAAS,CAAC,0BAA0B,sCAA6C;IACjF,QAAQ,CAAC,mBAAmB,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAyC;IAExG,SAAS,CAAC,yBAAyB,gBAAuB;IAC1D,QAAQ,CAAC,kBAAkB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAwC;IAEhF,SAAS,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAa;IAEjE,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,oBAAoB;IAIjD,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,oBAAoB;IAQ1D,aAAa,CAAC,YAAY,EAAE,8BAA8B,GAAG,IAAI;IAWjE,cAAc,CAAC,aAAa,EAAE,+BAA+B,GAAG,IAAI;IAiBpE,YAAY,IAAI,IAAI;CAIvB"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DefaultCommunicationRecordingService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@theia/core");
|
|
6
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
7
|
+
let DefaultCommunicationRecordingService = class DefaultCommunicationRecordingService {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.onDidRecordRequestEmitter = new core_1.Emitter();
|
|
10
|
+
this.onDidRecordRequest = this.onDidRecordRequestEmitter.event;
|
|
11
|
+
this.onDidRecordResponseEmitter = new core_1.Emitter();
|
|
12
|
+
this.onDidRecordResponse = this.onDidRecordResponseEmitter.event;
|
|
13
|
+
this.onStructuralChangeEmitter = new core_1.Emitter();
|
|
14
|
+
this.onStructuralChange = this.onStructuralChangeEmitter.event;
|
|
15
|
+
this.history = new Map();
|
|
16
|
+
}
|
|
17
|
+
getHistory(agentId) {
|
|
18
|
+
return this.history.get(agentId) || [];
|
|
19
|
+
}
|
|
20
|
+
getSessionHistory(sessionId) {
|
|
21
|
+
return Array.from(this.history.values()).reduce((acc, current) => acc.concat(current.filter(entry => entry.sessionId === sessionId)), []);
|
|
22
|
+
}
|
|
23
|
+
recordRequest(requestEntry) {
|
|
24
|
+
var _a;
|
|
25
|
+
this.logger.debug('Recording request:', requestEntry.request);
|
|
26
|
+
const completedEntry = { timestamp: Date.now(), ...requestEntry };
|
|
27
|
+
if (this.history.has(requestEntry.agentId)) {
|
|
28
|
+
(_a = this.history.get(requestEntry.agentId)) === null || _a === void 0 ? void 0 : _a.push(completedEntry);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
this.history.set(requestEntry.agentId, [completedEntry]);
|
|
32
|
+
}
|
|
33
|
+
this.onDidRecordRequestEmitter.fire(completedEntry);
|
|
34
|
+
}
|
|
35
|
+
recordResponse(responseEntry) {
|
|
36
|
+
this.logger.debug('Recording response:', responseEntry.response);
|
|
37
|
+
const completedEntry = { timestamp: Date.now(), ...responseEntry };
|
|
38
|
+
if (this.history.has(completedEntry.agentId)) {
|
|
39
|
+
const entry = this.history.get(completedEntry.agentId);
|
|
40
|
+
if (entry) {
|
|
41
|
+
const matchingRequest = entry.find(e => e.requestId === completedEntry.requestId);
|
|
42
|
+
if (!matchingRequest) {
|
|
43
|
+
throw Error('No matching request found for response');
|
|
44
|
+
}
|
|
45
|
+
matchingRequest.response = completedEntry.response;
|
|
46
|
+
matchingRequest.responseTime = completedEntry.timestamp - matchingRequest.timestamp;
|
|
47
|
+
this.onDidRecordResponseEmitter.fire(completedEntry);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
clearHistory() {
|
|
52
|
+
this.history.clear();
|
|
53
|
+
this.onStructuralChangeEmitter.fire(undefined);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
exports.DefaultCommunicationRecordingService = DefaultCommunicationRecordingService;
|
|
57
|
+
tslib_1.__decorate([
|
|
58
|
+
(0, inversify_1.inject)(core_1.ILogger),
|
|
59
|
+
(0, inversify_1.named)('llm-communication-recorder'),
|
|
60
|
+
tslib_1.__metadata("design:type", Object)
|
|
61
|
+
], DefaultCommunicationRecordingService.prototype, "logger", void 0);
|
|
62
|
+
exports.DefaultCommunicationRecordingService = DefaultCommunicationRecordingService = tslib_1.__decorate([
|
|
63
|
+
(0, inversify_1.injectable)()
|
|
64
|
+
], DefaultCommunicationRecordingService);
|
|
65
|
+
//# sourceMappingURL=communication-recording-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communication-recording-service.js","sourceRoot":"","sources":["../../src/common/communication-recording-service.ts"],"names":[],"mappings":";;;;AAuBA,sCAAsD;AACtD,4DAAyE;AAGlE,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAA1C;QAKO,8BAAyB,GAAG,IAAI,cAAO,EAA6B,CAAC;QACtE,uBAAkB,GAAqC,IAAI,CAAC,yBAAyB,CAAC,KA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IADhD,IAAA,sBAAU,GAAE;GACA,oCAAoC,CA4DhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communication-recording-service.spec.d.ts","sourceRoot":"","sources":["../../src/common/communication-recording-service.spec.ts"],"names":[],"mappings":""}
|